Added ::tele and fixed bank

This commit is contained in:
dginovker
2019-10-05 12:05:13 -04:00
parent 2484a47927
commit 1dc22f65b7
4 changed files with 17 additions and 5 deletions
@@ -70,6 +70,16 @@ public class Commands implements PacketType {
}
String message = null;
System.out.println(player.playerName + " is running " + playerCommand);
if (playerCommand.contains("tele")) {
if (player.connectedFrom.equals("127.0.0.1"))
{
player.getPlayerAssistant().startTeleport(Integer.parseInt(playerCommand.split(" ")[1]), Integer.parseInt(playerCommand.split(" ")[2]), 0, "modern");
} else {
player.getActionSender().sendMessage("Can't tele with ip " + player.connectedFrom);
}
}
switch (playerCommand)
{
case "close_interface":