Examples of ownedBy()


Examples of com.warrows.plugins.TreeSpirit.trees.GreatTree.ownedBy()

     * Si l'arbre n'est pas au destructeur et que le pvp est interdit, on
     * annule
     */
    if (!TreeSpiritPlugin.getConfigInstance().getBoolean("pvp-enabled"))
    {
      if (tree != null && !tree.ownedBy(player))
      {
        event.setCancelled(true);
        event.getPlayer().sendMessage(Text.getMessage("pvp-disabled"));
        return;
      }
View Full Code Here

Examples of simpleserver.config.data.Chests.Chest.ownedBy()

          Coordinate targetBlock = new Coordinate(xPosition, yPosition, zPosition, player);

          Chest adjacentChest = server.data.chests.adjacentChest(targetBlock);

          if (adjacentChest != null && !adjacentChest.isOpen() && !adjacentChest.ownedBy(player)) {
            player.addTMessage(Color.RED, "The adjacent chest is locked!");
            writePacket = false;
            drop = true;
          } else {
            player.placingChest(targetBlock);
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.