Examples of describeTo()


Examples of com.massivecraft.factions.entity.UPlayer.describeTo()

   
    // Inform
    if (newInvited)
    {
      uplayer.msg("%s<i> invited you to %s", usender.describeTo(uplayer, true), usenderFaction.describeTo(uplayer));
      usenderFaction.msg("%s<i> invited %s<i> to your faction.", usender.describeTo(usenderFaction, true), uplayer.describeTo(usenderFaction));
    }
    else
    {
      uplayer.msg("%s<i> revoked your invitation to <h>%s<i>.", usender.describeTo(uplayer), usenderFaction.describeTo(uplayer));
      usenderFaction.msg("%s<i> revoked %s's<i> invitation.", usender.describeTo(usenderFaction), uplayer.describeTo(usenderFaction));
View Full Code Here

Examples of com.massivecraft.factions.entity.UPlayer.describeTo()

      usenderFaction.msg("%s<i> invited %s<i> to your faction.", usender.describeTo(usenderFaction, true), uplayer.describeTo(usenderFaction));
    }
    else
    {
      uplayer.msg("%s<i> revoked your invitation to <h>%s<i>.", usender.describeTo(uplayer), usenderFaction.describeTo(uplayer));
      usenderFaction.msg("%s<i> revoked %s's<i> invitation.", usender.describeTo(usenderFaction), uplayer.describeTo(usenderFaction));
    }
  }
 
}
View Full Code Here

Examples of com.massivecraft.factions.entity.UPlayer.describeTo()

   
    boolean success = Econ.transferMoney(usender, from, to, amount);

    if (success && MConf.get().logMoneyTransactions)
    {
      Factions.get().log(ChatColor.stripColor(Txt.parse("%s transferred %s from the faction \"%s\" to the player \"%s\"", usender.getName(), Money.format(from, amount), from.describeTo(null), to.describeTo(null))));
    }
  }
}
View Full Code Here

Examples of com.massivecraft.factions.entity.UPlayer.describeTo()

    UPlayer you = this.arg(0, ARUPlayer.getStartAny(sender));
    if (you == null) return;
   
    if (you.getFaction() != usenderFaction)
    {
      msg("%s<b> is not a member in your faction.", you.describeTo(usender, true));
      return;
    }
   
    if (you == usender)
    {
View Full Code Here

Examples of com.massivecraft.factions.entity.UPlayer.describeTo()

      {
        msg("<b>You must be an officer to promote someone to member.");
        return;
      }
      you.setRole(Rel.MEMBER);
      usenderFaction.msg("%s<i> was promoted to being a member of your faction.", you.describeTo(usenderFaction, true));
    }
    else if (you.getRole() == Rel.MEMBER)
    {
      if (!usender.getRole().isAtLeast(Rel.LEADER))
      {
View Full Code Here

Examples of com.massivecraft.factions.entity.UPlayer.describeTo()

        msg("<b>You must be the leader to promote someone to officer.");
        return;
      }
      // Give
      you.setRole(Rel.OFFICER);
      usenderFaction.msg("%s<i> was promoted to being a officer in your faction.", you.describeTo(usenderFaction, true));
    }
  }
 
}
View Full Code Here

Examples of com.massivecraft.factions.entity.UPlayer.describeTo()

    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

Examples of com.massivecraft.factions.entity.UPlayer.describeTo()

    // 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));
    }

    if (MConf.get().logFactionKick)
    {
      Factions.get().log(usender.getDisplayName() + " kicked " + uplayer.getName() + " from the faction " + uplayerFaction.getName());
View Full Code Here

Examples of com.massivecraft.factions.entity.UPlayer.describeTo()

    // Apply
    you.setTitle(newTitle);
   
    // Inform
    usenderFaction.msg("%s<i> changed a title: %s", usender.describeTo(usenderFaction, true), you.describeTo(usenderFaction, true));
  }
 
}
View Full Code Here

Examples of com.massivecraft.factions.entity.UPlayer.describeTo()

    if (fdefender.hasFaction() && ownTerritory && relation == Rel.NEUTRAL)
    {
      if (notify)
      {
        fattacker.msg("<i>You can't hurt %s<i> in their own territory unless you declare them as an enemy.", fdefender.describeTo(fattacker));
        fdefender.msg("%s<i> tried to hurt you.", fattacker.describeTo(fdefender, true));
      }
      return false;
    }

    // Damage will be dealt. However check if the damage should be reduced.
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.