Package org.bukkit.entity

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


            DigSettings.setAutoLamp(player, Material.GLOWSTONE.getId());
            DigSettings.setDropAll(player, false);
            DigSettings.setTrackLength(player, 16);
            DigSettings.setBoostLength(player, 8);
            DigSettings.setTrackMode(player, Common.TRACK_MODE_FLAT);
            player.sendMessage("BigDig set to 3x3 auto-glowstone !dropall tracklen 16 flat");
            commandValid = true;
          } else {
            player.sendMessage("You do not have bigdig.debug permission.");
          }
          commandValid = true;
View Full Code Here


            DigSettings.setBoostLength(player, 8);
            DigSettings.setTrackMode(player, Common.TRACK_MODE_FLAT);
            player.sendMessage("BigDig set to 3x3 auto-glowstone !dropall tracklen 16 flat");
            commandValid = true;
          } else {
            player.sendMessage("You do not have bigdig.debug permission.");
          }
          commandValid = true;
        }
      }
    }
View Full Code Here

        doAutoLight(world, player, vecL.getCoordX(), vecL.getCoordY(), vecL.getCoordZ());
      }

      Enumeration<String> k = messages.keys();
      while (k.hasMoreElements()) {
        player.sendMessage(k.nextElement());
      }

      // event.setCancelled(true);
    }
  }
View Full Code Here

        message = message.replace("%joblevel%", ""+prog.getLevel());
        for (String line: message.split("\n")) {
            if (ConfigManager.getJobsConfiguration().isBroadcastingLevelups()) {
                Bukkit.getServer().broadcastMessage(line);
            } else if (player != null) {
                player.sendMessage(line);
            }
        }
       
        Title newTitle = ConfigManager.getJobsConfiguration().getTitleForLevel(prog.getLevel());
        if (newTitle != null && !newTitle.equals(oldTitle)) {
View Full Code Here

                Player player = Bukkit.getServer().getPlayer(offlinePlayer.getUniqueId());
                if (player != null) {
                    String message = Language.getMessage("command.promote.output.target");
                    message = message.replace("%jobname%", job.getChatColor() + job.getName() + ChatColor.WHITE);
                    message = message.replace("%levelsgained%", Integer.valueOf(levelsGained).toString());
                    player.sendMessage(message);
                }
               
                sender.sendMessage(Language.getMessage("command.admin.success"));
            }
        } catch (Exception e) {
View Full Code Here

                Player player = Bukkit.getServer().getPlayer(offlinePlayer.getUniqueId());
                if (player != null) {
                    String message = Language.getMessage("command.demote.output.target");
                    message = message.replace("%jobname%", job.getChatColor() + job.getName() + ChatColor.WHITE);
                    message = message.replace("%levelslost%", Integer.valueOf(levelsLost).toString());
                    player.sendMessage(message);
                }
               
                sender.sendMessage(Language.getMessage("command.admin.success"));
            }
        }
View Full Code Here

            Player player = Bukkit.getServer().getPlayer(offlinePlayer.getUniqueId());
            if (player != null) {
                String message = Language.getMessage("command.grantxp.output.target");
                message = message.replace("%jobname%", job.getChatColor() + job.getName() + ChatColor.WHITE);
                message = message.replace("%xpgained%", Double.valueOf(xpGained).toString());
                player.sendMessage(message);
            }
           
            sender.sendMessage(Language.getMessage("command.admin.success"));
        }
        return true;
View Full Code Here

            Player player = Bukkit.getServer().getPlayer(offlinePlayer.getUniqueId());
            if (player != null) {
                String message = Language.getMessage("command.removexp.output.target");
                message = message.replace("%jobname%", job.getChatColor() + job.getName() + ChatColor.WHITE);
                message = message.replace("%xplost%", Double.valueOf(xpLost).toString());
                player.sendMessage(message);
            }
           
            sender.sendMessage(Language.getMessage("command.admin.success"));
        }
        return true;
View Full Code Here

                Player player = Bukkit.getServer().getPlayer(offlinePlayer.getUniqueId());
                if (player != null) {
                    String message = Language.getMessage("command.transfer.output.target");
                    message = message.replace("%oldjobname%", oldjob.getChatColor() + oldjob.getName() + ChatColor.WHITE);
                    message = message.replace("%newjobname%", newjob.getChatColor() + newjob.getName() + ChatColor.WHITE);
                    player.sendMessage(message);
                }
               
                sender.sendMessage(Language.getMessage("command.admin.success"));
            }
        } catch (Exception e) {
View Full Code Here

            message = message.replace("%jobname%", job.getChatColor() + job.getName() + ChatColor.WHITE);
            for (String line: message.split("\n")) {
                if (ConfigManager.getJobsConfiguration().isBroadcastingLevelups()) {
                    Bukkit.getServer().broadcastMessage(line);
                } else if (player != null) {
                    player.sendMessage(line);
                }
            }
        }
        jPlayer.reloadHonorific();
        Jobs.getPermissionHandler().recalculatePermissions(jPlayer);
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.