Examples of sendChatMessage()


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

   @Override
   public void execute(CommandSender sender, List<?> params) throws CommandException {
      Player player = super.getSenderAsPlayer(sender);
      if (getName().equalsIgnoreCase("set")) {
         setWaypoint((String)params.get(0), player);
         player.sendChatMessage("Waypoint was set at " + FontColour.AQUA + getLocationAsString(player.getPosition()));
      } else if (getName().equalsIgnoreCase("rem")) {
         if (removeWaypoint((String)params.get(0), player)) {
            player.sendChatMessage("Waypoint was removed.");
         } else {
            throw new CommandException("Waypoint does not exist.");
View Full Code Here

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

      if (getName().equalsIgnoreCase("set")) {
         setWaypoint((String)params.get(0), player);
         player.sendChatMessage("Waypoint was set at " + FontColour.AQUA + getLocationAsString(player.getPosition()));
      } else if (getName().equalsIgnoreCase("rem")) {
         if (removeWaypoint((String)params.get(0), player)) {
            player.sendChatMessage("Waypoint was removed.");
         } else {
            throw new CommandException("Waypoint does not exist.");
         }
      } else if (getName().equalsIgnoreCase("goto")) {
         if (gotoWaypoint((String)params.get(0), player)) {
View Full Code Here

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

         } else {
            throw new CommandException("Waypoint does not exist.");
         }
      } else if (getName().equalsIgnoreCase("goto")) {
         if (gotoWaypoint((String)params.get(0), player)) {
            player.sendChatMessage("Whoosh");
         } else {
            throw new CommandException("Waypoint does not exist.");
         }
      } else {
         assert false : "Unexpected call not being handled: " + params.get(0);
View Full Code Here

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

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

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

         player.getWorld().setSpawn(player.getPosition());
      } else {
         player.getWorld().setSpawn(new Coordinate((Integer)params.get(0),(Integer)params.get(1),(Integer)params.get(2)));
      }
      Coordinate spawn = player.getWorld().getSpawn();
      player.sendChatMessage("Spawn point set to "
               + FontColour.AQUA + spawn.getBlockX() + FontColour.WHITE + ","
               + FontColour.AQUA + spawn.getBlockY() + FontColour.WHITE + ","
               + FontColour.AQUA + spawn.getBlockZ()
      );
   }
View Full Code Here

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

      } else if (action.equalsIgnoreCase("full")) {
         player.setHunger(20);
      } else if (action.equalsIgnoreCase("infinite")) {
         player.setHunger(Short.MAX_VALUE);
      } else if (action.equalsIgnoreCase("enable")) {
         player.sendChatMessage(FontColour.ORANGE + "Cannot enable/disable hunger");
         return;
      } else if (action.equalsIgnoreCase("disable")) {
         player.sendChatMessage(FontColour.ORANGE + "Cannot enable/disable hunger");
         return;
      }
View Full Code Here

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

         player.setHunger(Short.MAX_VALUE);
      } else if (action.equalsIgnoreCase("enable")) {
         player.sendChatMessage(FontColour.ORANGE + "Cannot enable/disable hunger");
         return;
      } else if (action.equalsIgnoreCase("disable")) {
         player.sendChatMessage(FontColour.ORANGE + "Cannot enable/disable hunger");
         return;
      }
      player.sendChatMessage("Your hunger level is set at " + FontColour.AQUA + player.getHunger());
   }
View Full Code Here

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

         return;
      } else if (action.equalsIgnoreCase("disable")) {
         player.sendChatMessage(FontColour.ORANGE + "Cannot enable/disable hunger");
         return;
      }
      player.sendChatMessage("Your hunger level is set at " + FontColour.AQUA + player.getHunger());
   }

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

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

      if (params.size() == 0) {
         player.setAllowFlying(!player.getAllowFlying());
      } else {
         player.setAllowFlying((Boolean)params.get(0));
      }
      player.sendChatMessage("Flying is now " + FontColour.AQUA + (player.getAllowFlying() ? "permitted" : "disabled"));
   }
  
   @Override
   public Parameters getParameters() {
      return Parameters.DEFAULT_BOOLEAN;
View Full Code Here

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

         sender.sendMessageToPlayer(achievements);
      } else if (((String)params.get(0)).equalsIgnoreCase("unlock")) {
         Player player = Minecraft.getPlayer();
         if (params.size() == 2) {
            if (player.addAchievement((String)params.get(1))) {
               player.sendChatMessage("The " + FontColour.AQUA + (String)params.get(1)
                        + FontColour.WHITE + " achievement was unlocked.");
            }
         } else {
            for (String name : Stats.getAchievementNames()) {
               player.addAchievement(name);
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.