Package com.massivecraft.factions.entity

Examples of com.massivecraft.factions.entity.Faction.msg()


    if (you.getRole() == Rel.OFFICER)
    {
      // Revoke
      you.setRole(Rel.MEMBER);
      targetFaction.msg("%s<i> is no longer officer in your faction.", you.describeTo(targetFaction, true));
      msg("<i>You have removed officer status from %s<i>.", you.describeTo(usender, true));
    }
    else
    {
      // Give
View Full Code Here


    }
    else
    {
      // Give
      you.setRole(Rel.OFFICER);
      targetFaction.msg("%s<i> was promoted to officer in your faction.", you.describeTo(targetFaction, true));
      msg("<i>You have promoted %s<i> to officer.", you.describeTo(usender, true));
    }
  }
 
}
View Full Code Here

    // Apply
    faction.setHome(newHome);
   
    // Inform
    faction.msg("%s<i> set the home for your faction. You can now use:", usender.describeTo(usenderFaction, true));
    faction.sendMessage(Factions.get().getOuterCmdFactions().cmdFactionsHome.getUseageTemplate());
    if (faction != usenderFaction)
    {
      usender.msg("<b>You have set the home for the "+faction.getName(usender)+"<i> faction.");
    }
View Full Code Here

    Rel currentRelation = usenderFaction.getRelationTo(otherFaction, true);

    // if the relation change was successful
    if (newRelation == currentRelation)
    {
      otherFaction.msg("%s<i> is now %s.", usenderFaction.describeTo(otherFaction, true), newRelation.getDescFactionOne());
      usenderFaction.msg("%s<i> is now %s.", otherFaction.describeTo(usenderFaction, true), newRelation.getDescFactionOne());
    }
    // inform the other faction of your request
    else
    {
View Full Code Here

      usenderFaction.msg("%s<i> is now %s.", otherFaction.describeTo(usenderFaction, true), newRelation.getDescFactionOne());
    }
    // inform the other faction of your request
    else
    {
      otherFaction.msg("%s<i> wishes to be %s.", usenderFaction.describeTo(otherFaction, true), newRelation.getColor()+newRelation.getDescFactionOne());
      otherFaction.msg("<i>Type <c>/"+ConfServer.baseCommandAliases.get(0)+" "+newRelation+" "+usenderFaction.getName()+"<i> to accept.");
      usenderFaction.msg("%s<i> were informed that you wish to be %s<i>.", otherFaction.describeTo(usenderFaction, true), newRelation.getColor()+newRelation.getDescFactionOne());
    }
   
    // TODO: The ally case should work!!
View Full Code Here

    }
    // inform the other faction of your request
    else
    {
      otherFaction.msg("%s<i> wishes to be %s.", usenderFaction.describeTo(otherFaction, true), newRelation.getColor()+newRelation.getDescFactionOne());
      otherFaction.msg("<i>Type <c>/"+ConfServer.baseCommandAliases.get(0)+" "+newRelation+" "+usenderFaction.getName()+"<i> to accept.");
      usenderFaction.msg("%s<i> were informed that you wish to be %s<i>.", otherFaction.describeTo(usenderFaction, true), newRelation.getColor()+newRelation.getDescFactionOne());
    }
   
    // TODO: The ally case should work!!
    //   * this might have to be bumped up to make that happen, & allow ALLY,NEUTRAL only
View Full Code Here

   
    // TODO: The ally case should work!!
    //   * this might have to be bumped up to make that happen, & allow ALLY,NEUTRAL only
    if ( newRelation != Rel.TRUCE && otherFaction.getFlag(FFlag.PEACEFUL))
    {
      otherFaction.msg("<i>This will have no effect while your faction is peaceful.");
      usenderFaction.msg("<i>This will have no effect while their faction is peaceful.");
    }
   
    if ( newRelation != Rel.TRUCE && usenderFaction.getFlag(FFlag.PEACEFUL))
    {
View Full Code Here

      usenderFaction.msg("<i>This will have no effect while their faction is peaceful.");
    }
   
    if ( newRelation != Rel.TRUCE && usenderFaction.getFlag(FFlag.PEACEFUL))
    {
      otherFaction.msg("<i>This will have no effect while their faction is peaceful.");
      usenderFaction.msg("<i>This will have no effect while your faction is peaceful.");
    }
  }
}
View Full Code Here

    FactionsEventMembershipChange event = new FactionsEventMembershipChange(sender, uplayer, FactionColls.get().get(uplayer).getNone(), MembershipChangeReason.KICK);
    event.run();
    if (event.isCancelled()) return;

    // Inform
    uplayerFaction.msg("%s<i> kicked %s<i> from the faction! :O", usender.describeTo(uplayerFaction, true), uplayer.describeTo(uplayerFaction, true));
    uplayer.msg("%s<i> kicked you from %s<i>! :O", usender.describeTo(uplayer, true), uplayerFaction.describeTo(uplayer));
    if (uplayerFaction != usenderFaction)
    {
      usender.msg("<i>You kicked %s<i> from the faction %s<i>!", uplayer.describeTo(usender), uplayerFaction.describeTo(usender));
    }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.