Removed a stray call to getInstance() and fixed an an.

This commit is contained in:
Max Lee 2015-07-08 00:30:51 +02:00
parent 023dd8d8b7
commit 98175a0b86
2 changed files with 2 additions and 2 deletions

View File

@ -63,7 +63,7 @@ public class SignListener implements Listener {
event.getPlayer().sendMessage(ChatColor.RED + "The RandomTeleport preset " + ChatColor.GOLD + preset + ChatColor.RED + " does not exist!"); event.getPlayer().sendMessage(ChatColor.RED + "The RandomTeleport preset " + ChatColor.GOLD + preset + ChatColor.RED + " does not exist!");
} else { } else {
String cmd = "rtp " + preset + " " + event.getPlayer().getName(); String cmd = "rtp " + preset + " " + event.getPlayer().getName();
plugin.getServer().dispatchCommand(RandomTeleport.getInstance().getServer().getConsoleSender(), cmd); plugin.getServer().dispatchCommand(plugin.getServer().getConsoleSender(), cmd);
} }
} else { } else {
event.getPlayer().sendMessage(ChatColor.RED + "You don't have permission to use the preset " + preset + "! " + ChatColor.ITALIC + " (randomteleport.sign.preset." + preset + ")"); event.getPlayer().sendMessage(ChatColor.RED + "You don't have permission to use the preset " + preset + "! " + ChatColor.ITALIC + " (randomteleport.sign.preset." + preset + ")");

View File

@ -284,7 +284,7 @@ public class RandomTeleport extends JavaPlugin implements CommandExecutor {
setSpawnpoint = true; setSpawnpoint = true;
} }
} else { } else {
sender.sendMessage(ChatColor.DARK_RED + "Error:" + ChatColor.RED + " Your input contains a invalid option (" + args[i] + ")!"); sender.sendMessage(ChatColor.DARK_RED + "Error:" + ChatColor.RED + " Your input contains an invalid option (" + args[i] + ")!");
return false; return false;
} }
} }