Package com.massivecraft.factions.event

Examples of com.massivecraft.factions.event.FactionsEventChunkChangeType


  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;
   
    // ... then remove for all other factions than the new one.
View Full Code Here


  @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";
   
    payForAction(event, cost, desc);
  }
View Full Code Here

TOP

Related Classes of com.massivecraft.factions.event.FactionsEventChunkChangeType

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.