removed small stupid cast issue

This commit is contained in:
Alastair 2017-07-12 14:48:09 +01:00
parent 68bffc2c7e
commit ac8d5a9725

View File

@ -35,7 +35,7 @@ public class DestinationCommand implements CommandExecutor, TabCompleter {
String posX = config.getConfig().getString(args[1].toLowerCase() + ".pos.X");
if (posX == null) {
sender.sendMessage(PluginMessages.customPrefix + " You have created a new destination called \u00A7e" + args[1] + "!");
Player player = sender.getServer().getPlayer(sender.getName());
Player player = (Player) sender;
Destination.create(player.getLocation(), args[1]);
} else {
sender.sendMessage(PluginMessages.customPrefixFail + " A destination by that name already exists!");