Package org.bukkit.entity

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


              } 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);
                player.sendMessage("BigDig will place tracks on flat surfaces and stop if there is a gap");
              } else {
                player.sendMessage("track value can be : none, follow, bridge, flat");
View Full Code Here


              } 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);
                player.sendMessage("BigDig will place tracks on flat surfaces and stop if there is a gap");
              } else {
                player.sendMessage("track value can be : none, follow, bridge, flat");
              }
            }
          } else {
View Full Code Here

                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);
                player.sendMessage("BigDig will place tracks on flat surfaces and stop if there is a gap");
              } else {
                player.sendMessage("track value can be : none, follow, bridge, flat");
              }
            }
          } else {
            player.sendMessage("You do not have bigdig.track permission.");
          }
View Full Code Here

              } else {
                player.sendMessage("track value can be : none, follow, bridge, flat");
              }
            }
          } else {
            player.sendMessage("You do not have bigdig.track permission.");
          }
          commandValid = true;
        }
        if (args[0].equalsIgnoreCase("tracklength")) {
          if (player.hasPermission("bigdig.track")) {
View Full Code Here

          if (player.hasPermission("bigdig.track")) {
            if (args.length > 1) {
              int trackLen = Integer.parseInt(args[1]);
              if (trackLen > 0 && trackLen <= maxTrackLength) {
                DigSettings.setTrackLength(player, trackLen);
                player.sendMessage("BigDig tracklength set to " + String.valueOf(trackLen));
              } else {
                player.sendMessage("BigDig tracklength not set, must be 1.."
                    + String.valueOf(maxTrackLength));
              }
            }
View Full Code Here

              int trackLen = Integer.parseInt(args[1]);
              if (trackLen > 0 && trackLen <= maxTrackLength) {
                DigSettings.setTrackLength(player, trackLen);
                player.sendMessage("BigDig tracklength set to " + String.valueOf(trackLen));
              } else {
                player.sendMessage("BigDig tracklength not set, must be 1.."
                    + String.valueOf(maxTrackLength));
              }
            }
          } else {
            player.sendMessage("You do not have bigdig.track permission.");
View Full Code Here

                player.sendMessage("BigDig tracklength not set, must be 1.."
                    + String.valueOf(maxTrackLength));
              }
            }
          } else {
            player.sendMessage("You do not have bigdig.track permission.");
          }
          commandValid = true;
        }
        if (args[0].equalsIgnoreCase("boostlength")) {
          if (player.hasPermission("bigdig.track")) {
View Full Code Here

          if (player.hasPermission("bigdig.track")) {
            if (args.length > 1) {
              int boostLen = Integer.parseInt(args[1]);
              if (boostLen > 0 && boostLen <= maxTrackLength) {
                DigSettings.setBoostLength(player, boostLen);
                player.sendMessage("BigDig boostlength set to " + String.valueOf(boostLen));
              } else {
                player.sendMessage("BigDig boostlength not set, must be 1.."
                    + String.valueOf(maxTrackLength));
              }
            }
View Full Code Here

              int boostLen = Integer.parseInt(args[1]);
              if (boostLen > 0 && boostLen <= maxTrackLength) {
                DigSettings.setBoostLength(player, boostLen);
                player.sendMessage("BigDig boostlength set to " + String.valueOf(boostLen));
              } else {
                player.sendMessage("BigDig boostlength not set, must be 1.."
                    + String.valueOf(maxTrackLength));
              }
            }
          } else {
            player.sendMessage("You do not have bigdig.track permission.");
View Full Code Here

                player.sendMessage("BigDig boostlength not set, must be 1.."
                    + String.valueOf(maxTrackLength));
              }
            }
          } else {
            player.sendMessage("You do not have bigdig.track permission.");
          }
          commandValid = true;
        }
        // =====================Debug Mode =====================
        if (args[0].equalsIgnoreCase("debug")) {
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.