mirror of
https://github.com/Phoenix616/RandomTeleport.git
synced 2024-11-22 18:46:50 +01:00
Removed a stray call to getInstance() and fixed an an.
This commit is contained in:
parent
023dd8d8b7
commit
98175a0b86
@ -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 + ")");
|
||||||
|
@ -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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user