Examples of addCakeThief()


Examples of com.tommytony.war.Warzone.addCakeThief()

          // player just broke the cake block: cancel to avoid drop, give player the block, set block to air
          ItemStack cakeBlock = new ItemStack(Material.CAKE);
          cakeBlock.setDurability((short)8);
          player.getInventory().clear();
          player.getInventory().addItem(cakeBlock);
          warzone.addCakeThief(cake, player.getName());
          block.setType(Material.AIR);
          for (Team t : warzone.getTeams()) {
            t.teamcast("zone.steal.cake.broadcast", team.getKind().getColor() + player.getName() + ChatColor.WHITE, ChatColor.GREEN + cake.getName() + ChatColor.WHITE);
            if (War.war.isSpoutServer()) {
              for (Player p : t.getPlayers()) {
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.