Examples of UConf


Examples of com.massivecraft.factions.entity.UConf

  }
 
  @Override
  public String createErrorMessage(CommandSender sender, MCommand command)
  {
    UConf uconf = UConf.get(sender);
    if (!uconf.bankEnabled)
    {
      return Txt.parse("<b>Faction banks are disabled in the <h>%s <b>universe.", uconf.getUniverse());
    }
    return Txt.parse("<b>Faction economy features are disabled in the <h>%s <b>universe.", uconf.getUniverse());
  }
View Full Code Here

Examples of com.massivecraft.factions.entity.UConf

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

    Faction defendFaction = fdefender.getFaction();
    Faction attackFaction = fattacker.getFaction();
    UConf uconf = UConf.get(attackFaction);

    if (attackFaction.isNone() && uconf.disablePVPForFactionlessPlayers)
    {
      if (notify) fattacker.msg("<i>You can't hurt other players until you join a faction.");
      return false;
View Full Code Here

Examples of com.massivecraft.factions.entity.UConf

  {
    if (!isEnabled(usender)) return true;
    if (cost == 0D) return true;
   
    if (usender.isUsingAdminMode()) return true;
    UConf uconf = UConf.get(usender);
    Faction usenderFaction = usender.getFaction();
   
    if (uconf.bankEnabled && uconf.bankFactionPaysCosts && usenderFaction.isNormal())
    {
      return modifyMoney(usenderFaction, -cost, actionDescription);
View Full Code Here

Examples of com.massivecraft.factions.entity.UConf

  // -------------------------------------------- //

  public static void modifyUniverseMoney(Object universe, double delta)
  {
    if (!isEnabled(universe)) return;
    UConf uconf = UConf.get(universe);

    if (uconf.econUniverseAccount == null) return;
    if (uconf.econUniverseAccount.length() == 0) return;
   
    if (!Money.exists(universe, uconf.econUniverseAccount)) return;
View Full Code Here

Examples of com.massivecraft.factions.entity.UConf

  @EventHandler(priority = EventPriority.MONITOR, ignoreCancelled = true)
  public void removeProtectionsOnChunkChange(FactionsEventChunkChange event)
  {
    // If we are supposed to clear at this chunk change type ...
    Faction newFaction = event.getNewFaction();
    UConf uconf = UConf.get(newFaction);
    FactionsEventChunkChangeType type = event.getType();
    Boolean remove = uconf.lwcRemoveOnChange.get(type);
    if (remove == null) return;
    if (remove == false) return;
   
View Full Code Here

Examples of com.massivecraft.factions.entity.UConf

  }
 
  @Override
  public void perform()
  {
    UConf uconf = UConf.get(sender);
   
    // TODO: Hide this command on help also.
    if ( ! uconf.homesEnabled)
    {
      usender.msg("<b>Sorry, Faction homes are disabled on this server.");
View Full Code Here

Examples of com.massivecraft.factions.entity.UConf

 
  @EventHandler(priority = EventPriority.HIGH, ignoreCancelled = true)
  public void payForAction(FactionsEventChunkChange event)
  {
    Faction newFaction = event.getNewFaction();
    UConf uconf = UConf.get(newFaction);
    FactionsEventChunkChangeType type = event.getType();
    Double cost = uconf.econChunkCost.get(type);
   
    String desc = type.toString().toLowerCase() + " this land";
   
View Full Code Here

Examples of com.massivecraft.factions.entity.UConf

  public void payForAction(FactionsEventMembershipChange event)
  {
    Double cost = null;   
    String desc = null;
   
    UConf uconf = UConf.get(event.getSender());
    if (uconf == null) return;
   
    if (event.getReason() == MembershipChangeReason.JOIN)
    {
      cost = uconf.econCostJoin;
View Full Code Here

Examples of com.massivecraft.factions.entity.UConf

    // Args
    Faction faction = this.arg(0, ARFaction.get(usenderFaction), usenderFaction);
    if (faction == null) return;
   
    // Data precalculation
    UConf uconf = UConf.get(faction);
    //boolean none = faction.isNone();
    boolean normal = faction.isNormal();
   
    // INFO: Title
    msg(Txt.titleize(Txt.upperCaseFirst(faction.getUniverse()) + " Faction " + faction.getName(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.