Package com.massivecraft.mcore.ps

Examples of com.massivecraft.mcore.ps.PS


 
    // if not a sticky piston, retraction should be fine
    if (!event.isSticky()) return;

    Block retractBlock = event.getRetractLocation().getBlock();
    PS retractPs = PS.valueOf(retractBlock);

    // if potentially retracted block is just air/water/lava, no worries
    if (retractBlock.isEmpty() || retractBlock.isLiquid()) return;

    Faction pistonFaction = BoardColls.get().getFactionAt(PS.valueOf(event.getBlock()));
View Full Code Here


    if (MConf.get().playersWhoBypassAllProtection.contains(name)) return true;

    UPlayer me = UPlayer.get(player);
    if (me.isUsingAdminMode()) return true;
   
    PS ps = PS.valueOf(block);
    Material material = block.getType();
   
    if (Const.MATERIALS_EDIT_ON_INTERACT.contains(material) && ! FPerm.BUILD.has(me, ps, ! justCheck)) return false;
    if (Const.MATERIALS_CONTAINER.contains(material) && ! FPerm.CONTAINER.has(me, ps, ! justCheck)) return false;
    if (Const.MATERIALS_DOOR.contains(material) && ! FPerm.DOOR.has(me, ps, ! justCheck)) return false;
View Full Code Here

      for (Entry<String,TerritoryAccess> entry2 : entry.getValue().entrySet())
      {
        String[] ChunkCoordParts = entry2.getKey().trim().split("[,\\s]+");
        int chunkX = Integer.parseInt(ChunkCoordParts[0]);
        int chunkZ = Integer.parseInt(ChunkCoordParts[1]);
        PS ps = new PSBuilder().chunkX(chunkX).chunkZ(chunkZ).build();
       
        TerritoryAccess territoryAccess = entry2.getValue();
       
        board.setTerritoryAccessAt(ps, territoryAccess);
      }
View Full Code Here

  }
 
  public void setHome(PS home)
  {
    // Clean input
    PS target = home;
   
    // Detect Nochange
    if (MUtil.equals(this.home, target)) return;
   
    // Apply
View Full Code Here

 
  @Override
  public void perform()
  {
    // Args
    PS chunk = PS.valueOf(me).getChunk(true);
    Faction newFaction = FactionColls.get().get(me).getNone();

    // Apply
    if (usender.tryClaim(newFaction, chunk, true, true)) return;
  }
View Full Code Here

TOP

Related Classes of com.massivecraft.mcore.ps.PS

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.