Package org.bukkit.entity

Examples of org.bukkit.entity.Player.sendMessage()


              if (args[1].equalsIgnoreCase("torch")) {
                DigSettings.setAutoLamp(player, Material.TORCH.getId());
                player.sendMessage("BigDig will auto-place : "+ DigSettings.getAutoLampName(player));
              } else if (args[1].equalsIgnoreCase("glowstone")) {
                DigSettings.setAutoLamp(player, Material.GLOWSTONE.getId());
                player.sendMessage("BigDig will auto-place : "+ DigSettings.getAutoLampName(player));
              } else if (args[1].equalsIgnoreCase("none")) {
                DigSettings.setAutoLamp(player, 0);
                player.sendMessage("BigDig will not place any lightsource");

              } else {
View Full Code Here


              } else if (args[1].equalsIgnoreCase("glowstone")) {
                DigSettings.setAutoLamp(player, Material.GLOWSTONE.getId());
                player.sendMessage("BigDig will auto-place : "+ DigSettings.getAutoLampName(player));
              } else if (args[1].equalsIgnoreCase("none")) {
                DigSettings.setAutoLamp(player, 0);
                player.sendMessage("BigDig will not place any lightsource");

              } else {
                player.sendMessage("autolight value must be either none, torch or glowstone");
              }
            }
View Full Code Here

              } else if (args[1].equalsIgnoreCase("none")) {
                DigSettings.setAutoLamp(player, 0);
                player.sendMessage("BigDig will not place any lightsource");

              } else {
                player.sendMessage("autolight value must be either none, torch or glowstone");
              }
            }
          } else {
            player.sendMessage("You do not have bigdig.dig permission.");
          }
View Full Code Here

              } else {
                player.sendMessage("autolight value must be either none, torch or glowstone");
              }
            }
          } else {
            player.sendMessage("You do not have bigdig.dig permission.");
          }
          commandValid = true;
        }
        if (args[0].equalsIgnoreCase("dropall")) {
          if (player.hasPermission("bigdig.dig")) {
View Full Code Here

        if (args[0].equalsIgnoreCase("dropall")) {
          if (player.hasPermission("bigdig.dig")) {
            if (args.length > 1) {
              if (args[1].equalsIgnoreCase("on")) {
                DigSettings.setDropAll(player, true);
                player.sendMessage("BigDig will drop all blocks");

              } else if (args[1].equalsIgnoreCase("off")) {
                DigSettings.setDropAll(player, false);
                player.sendMessage("BigDig will not drop common blocks");
View Full Code Here

                DigSettings.setDropAll(player, true);
                player.sendMessage("BigDig will drop all blocks");

              } else if (args[1].equalsIgnoreCase("off")) {
                DigSettings.setDropAll(player, false);
                player.sendMessage("BigDig will not drop common blocks");

              } else {
                player.sendMessage("dropall value must be either on or off");
              }
            }
View Full Code Here

              } else if (args[1].equalsIgnoreCase("off")) {
                DigSettings.setDropAll(player, false);
                player.sendMessage("BigDig will not drop common blocks");

              } else {
                player.sendMessage("dropall value must be either on or off");
              }
            }
          } else {
            player.sendMessage("You do not have bigdig.dig permission.");
          }
View Full Code Here

              } else {
                player.sendMessage("dropall value must be either on or off");
              }
            }
          } else {
            player.sendMessage("You do not have bigdig.dig permission.");
          }
          commandValid = true;
        }
        // ====================Track Settings====================
        if (args[0].equalsIgnoreCase("track")) {
View Full Code Here

        if (args[0].equalsIgnoreCase("track")) {
          if (player.hasPermission("bigdig.track")) {
            if (args.length > 1) {
              if (args[1].equalsIgnoreCase("none")) {
                DigSettings.setTrackMode(player, Common.TRACK_MODE_NONE);
                player.sendMessage("BigDig will not place tracks");
              } else if (args[1].equalsIgnoreCase("follow")) {
                DigSettings.setTrackMode(player, Common.TRACK_MODE_FOLLOW);
                player.sendMessage("BigDig will place tracks to follow the terrain");
              } else if (args[1].equalsIgnoreCase("bridge")) {
                DigSettings.setTrackMode(player, Common.TRACK_MODE_BRIDGE);
View Full Code Here

              if (args[1].equalsIgnoreCase("none")) {
                DigSettings.setTrackMode(player, Common.TRACK_MODE_NONE);
                player.sendMessage("BigDig will not place tracks");
              } else if (args[1].equalsIgnoreCase("follow")) {
                DigSettings.setTrackMode(player, Common.TRACK_MODE_FOLLOW);
                player.sendMessage("BigDig will place tracks to follow the terrain");
              } else if (args[1].equalsIgnoreCase("bridge")) {
                DigSettings.setTrackMode(player, Common.TRACK_MODE_BRIDGE);
                player.sendMessage("BigDig will place tracks and create bridges to cross gaps");
              } else if (args[1].equalsIgnoreCase("flat")) {
                DigSettings.setTrackMode(player, Common.TRACK_MODE_FLAT);
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.