Examples of describeTo()


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 player \"%s\" to the faction \"%s\"", usender.getName(), Money.format(from, amount), from.describeTo(null), to.describeTo(null))));
    }
  }
}
View Full Code Here

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

    // FPerm
    if (forFaction.isNormal() && !FPerm.TERRITORY.has(usender, forFaction, true)) return;
   
    usender.setAutoClaimFaction(forFaction);
   
    msg("<i>Now auto-claiming land for <h>%s<i>.", forFaction.describeTo(usender));
    usender.tryClaim(forFaction, PS.valueOf(me), true, true);
  }
 
}
View Full Code Here

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

    Faction faction = this.arg(0, ARFaction.get(sender), usenderFaction);
    if (faction == null) return;
   
    if ( ! this.argIsSet(1))
    {
      msg(Txt.titleize("Flags for " + faction.describeTo(usender, true)));
      for (FFlag flag : FFlag.values())
      {
        msg(flag.getStateInfo(faction.getFlag(flag), true));
      }
      return;
View Full Code Here

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

    FFlag flag = this.arg(1, ARFFlag.get());
    if (flag == null) return;
   
    if ( ! this.argIsSet(2))
    {
      msg(Txt.titleize("Flag for " + faction.describeTo(usender, true)));
      msg(flag.getStateInfo(faction.getFlag(flag), true));
      return;
    }
   
    Boolean targetValue = this.arg(2, ARBoolean.get());
View Full Code Here

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

    // Do the sender have the right to change flags?
    if ( ! Perm.FLAG_SET.has(sender, true)) return;
   
    // Do the change
    msg(Txt.titleize("Flag for " + faction.describeTo(usender, true)));
    faction.setFlag(flag, targetValue);
    msg(flag.getStateInfo(faction.getFlag(flag), 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 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.Faction.describeTo()

      if (eattacker instanceof Player)
      {
        if (notify)
        {
          UPlayer attacker = UPlayer.get(eattacker);
          attacker.msg("<i>PVP is disabled in %s.", defenderPsFaction.describeTo(attacker));
        }
        return false;
      }
      return defenderPsFaction.getFlag(FFlag.MONSTERS);
    }
View Full Code Here

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

    // ... PVP flag may cause a damage block ...
    // (just checking the defender as above isn't enough. What about the attacker? It could be in a no-pvp area)
    // NOTE: This check is probably not that important but we could keep it anyways.
    if (attackerPsFaction.getFlag(FFlag.PVP) == false)
    {
      if (notify) fattacker.msg("<i>PVP is disabled in %s.", attackerPsFaction.describeTo(fattacker));
      return false;
    }

    // ... are PVP rules completely ignored in this world? ...
    if (MConf.get().worldsIgnorePvP.contains(defenderPs.getWorld())) return true;
View Full Code Here

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

    if (!FPerm.BUILD.has(uplayer, ps, false) && FPerm.PAINBUILD.has(uplayer, ps, false))
    {
      if (verboose)
      {
        Faction hostFaction = BoardColls.get().getFactionAt(ps);
        uplayer.msg("<b>It is painful to build in the territory of %s<b>.", hostFaction.describeTo(uplayer));
        player.damage(UConf.get(player).actionDeniedPainAmount);
      }
      return true;
    }
   
View Full Code Here

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

    // 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
    {
      otherFaction.msg("%s<i> wishes to be %s.", usenderFaction.describeTo(otherFaction, true), newRelation.getColor()+newRelation.getDescFactionOne());
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.