Package com.massivecraft.factions

Examples of com.massivecraft.factions.FFlag


        msg(flag.getStateInfo(faction.getFlag(flag), true));
      }
      return;
    }
   
    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());
    if (targetValue == null) return;

    // 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

TOP

Related Classes of com.massivecraft.factions.FFlag

Copyright © 2018 www.massapicom. 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.