Examples of describeTo()


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

    // 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
    if ( newRelation != Rel.TRUCE && otherFaction.getFlag(FFlag.PEACEFUL))
View Full Code Here

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

    msg("<i>You have promoted %s<i> to the position of faction leader.", newLeader.describeTo(usender, true));
   
    // Inform all players
    for (UPlayer uplayer : UPlayerColls.get().get(sender).getAllOnline())
    {
      uplayer.msg("%s<i> gave %s<i> the leadership of %s<i>.", senderIsConsole ? "A server admin" : RelationUtil.describeThatToMe(usender, uplayer, true), newLeader.describeTo(uplayer), targetFaction.describeTo(uplayer));
    }
  }
}
View Full Code Here

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

    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.Faction.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.Faction.describeTo()

    Faction faction = this.arg(0, ARFaction.get(usenderFaction), usenderFaction);
    if (faction == null) return;
   
    if ( ! this.argIsSet(1))
    {
      msg(Txt.titleize("Perms for " + faction.describeTo(usender, true)));
      msg(FPerm.getStateHeaders());
      for (FPerm perm : FPerm.values())
      {
        msg(perm.getStateInfo(faction.getPermittedRelations(perm), true));
      }
View Full Code Here

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

    if (perm == null) return;
    //System.out.println("perm = "+perm);
   
    if ( ! this.argIsSet(2))
    {
      msg(Txt.titleize("Perm for " + faction.describeTo(usender, true)));
      msg(FPerm.getStateHeaders());
      msg(perm.getStateInfo(faction.getPermittedRelations(perm), true));
      return;
    }
   
View Full Code Here

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

    if (perm == FPerm.PERMS && FPerm.PERMS.getDefault(faction).contains(Rel.LEADER))
    {
      faction.setRelationPermitted(FPerm.PERMS, Rel.LEADER, true);
    }
   
    msg(Txt.titleize("Perm for " + faction.describeTo(usender, true)));
    msg(FPerm.getStateHeaders());
    msg(perm.getStateInfo(faction.getPermittedRelations(perm), true));
  }
 
}
View Full Code Here

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

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

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

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

   
    boolean success = Econ.transferMoney(usender, usender, faction, amount);
   
    if (success && MConf.get().logMoneyTransactions)
    {
      Factions.get().log(ChatColor.stripColor(Txt.parse("%s deposited %s in the faction bank: %s", usender.getName(), Money.format(usender, amount), faction.describeTo(null))));
    }
  }
 
}
View Full Code Here

Examples of com.massivecraft.factions.entity.Faction.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 faction \"%s\"", usender.getName(), Money.format(from, amount), from.describeTo(null), to.describeTo(null))));
    }
  }
}
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.