update bots handling, spawn bot on player

This commit is contained in:
RedSparr0w
2019-11-22 19:11:03 +13:00
parent 07472a9a90
commit a91dc597e9
4 changed files with 64 additions and 26 deletions
@@ -93,11 +93,8 @@ public class Commands implements PacketType {
player.getActionSender().sendMessage("There is currently " + PlayerHandler.getPlayerCount() + " player online.");
}
break;
case "bots":
if (arguments.length == 0)
player.getActionSender().sendMessage("Must have 1 argument: ::bots 5");
else
BotHandler.connectBots(Integer.parseInt(arguments[0]));
case "shop":
BotHandler.playerShop(player);
break;
case "wealth":
int totalWealth = player.getPlayerAssistant().totalGold();