Examples of sendChatMessage()


Examples of com.sijobe.spc.wrapper.Player.sendChatMessage()

      if (params.size() > 0) {
         value = !(Boolean)params.get(0);
      }
      if (!value) {
         config.set("scuba", true);
         player.sendChatMessage("Scuba mode is " + FontColour.AQUA + "enabled");
      } else {
         config.set("scuba", false);
         player.sendChatMessage("Scuba mode is " + FontColour.AQUA + "disabled");
      }
      config.save();
View Full Code Here

Examples of com.sijobe.spc.wrapper.Player.sendChatMessage()

      if (!value) {
         config.set("scuba", true);
         player.sendChatMessage("Scuba mode is " + FontColour.AQUA + "enabled");
      } else {
         config.set("scuba", false);
         player.sendChatMessage("Scuba mode is " + FontColour.AQUA + "disabled");
      }
      config.save();
   }
  
   /**
 
View Full Code Here

Examples of com.sijobe.spc.wrapper.Player.sendChatMessage()

      if(player.getMinecraftPlayer().noClip == false) {
         ascendPlayer(player);
      }
      Minecraft.getMinecraft().thePlayer.noClip = player.getMinecraftPlayer().noClip;
      player.sendChatMessage("Noclip is now " + FontColour.AQUA + (!player.getMinecraftPlayer().noClip ? "disabled" : "enabled"));
   }

   @Override
   public Parameters getParameters() {
      return Parameters.DEFAULT_BOOLEAN;
View Full Code Here

Examples of com.sijobe.spc.wrapper.Player.sendChatMessage()

      if (params.size() == 0) {
         player.getWorld().setCheats(!player.getWorld().isCheats());
      } else {
         player.getWorld().setCheats((Boolean)params.get(0));
      }
      player.sendChatMessage("Cheats are " + FontColour.AQUA
               + (player.getWorld().isCheats() ? "enabled" : "disabled"));
   }
  
   @Override
   public Parameters getParameters() {
View Full Code Here

Examples of com.sijobe.spc.wrapper.Player.sendChatMessage()

      if (params.size() > 0) {
         world.setHardcore((Boolean)params.get(0));
      } else {
         world.setHardcore(!world.isHardcore());
      }
      player.sendChatMessage("Hardcore mode was " +
               FontColour.AQUA + (world.isHardcore() ? "enabled" : "disabled"));
   }

   /**
    * @see com.sijobe.spc.wrapper.CommandBase#getParameters()
View Full Code Here

Examples of com.sijobe.spc.wrapper.Player.sendChatMessage()

      Coordinate previous = player.getPosition();
      int y = previous.getBlockY() - 1;
      while (y > 0) {
         if (player.isClear(new Coordinate(previous.getBlockX(), y--, previous.getBlockZ()))) {
            player.setPosition(new Coordinate(previous.getBlockX() + 0.5F, ++y, previous.getBlockZ() + 0.5F));
            player.sendChatMessage("You descended " + FontColour.AQUA + (previous.getBlockY() - y) +
                     FontColour.WHITE + " blocks.");
            break;
         }
      }
   }
View Full Code Here

Examples of com.sijobe.spc.wrapper.Player.sendChatMessage()

      if (params.size() == 0) {
         removeDrops ^= true;
      } else {
         removeDrops = ((Boolean)params.get(0));
      }
      player.sendChatMessage("Do mob and block drops? " + !removeDrops);
   }

   @Override
   public Parameters getParameters() {
      return Parameters.DEFAULT_BOOLEAN;
View Full Code Here

Examples of com.sijobe.spc.wrapper.Player.sendChatMessage()

   @Override
   public void execute(CommandSender sender, List<?> params) throws CommandException {
      Player player = CommandBase.getSenderAsPlayer(sender);
      int removedDrops = removeItemDrops(player, 128);
      player.sendChatMessage("Cleared " + removedDrops + " item drop(s).");
   }

   public static int removeItemDrops(Player player, int radius) {
      Coordinate pos = player.getPosition();
      World world = player.getWorld().getMinecraftWorld();
View Full Code Here

Examples of com.sijobe.spc.wrapper.Player.sendChatMessage()

      } else if (action.equalsIgnoreCase("max")) {
         player.setHealth(20);
      } else if (action.equalsIgnoreCase("infinite")) {
         player.setHealth(Short.MAX_VALUE);
      }
      player.sendChatMessage("Your health is " + FontColour.AQUA + player.getHealth());
   }

   /**
    * @see com.sijobe.spc.wrapper.CommandBase#getParameters()
    */
 
View Full Code Here

Examples of com.sijobe.spc.wrapper.Player.sendChatMessage()

      } else {
         prefixSlash = ((Boolean)params.get(0));
      }
      config.set("prefixSlash", prefixSlash);
      super.saveSettings(player);
      player.sendChatMessage("Slash prefixing is now " + FontColour.AQUA
               + (prefixSlash ? "enabled" : "disabled"));
   }
  
   @Override
   public Parameters getParameters() {
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.