mirror of
https://github.com/2006-Scape/2006Scape.git
synced 2026-07-04 08:39:05 +00:00
initial bots
This commit is contained in:
@@ -3,6 +3,7 @@ package redone.net.packets.impl;
|
||||
import redone.Connection;
|
||||
import redone.Constants;
|
||||
import redone.Server;
|
||||
import redone.game.bots.BotHandler;
|
||||
import redone.game.items.ItemAssistant;
|
||||
import redone.game.npcs.NpcHandler;
|
||||
import redone.game.players.*;
|
||||
@@ -92,6 +93,12 @@ 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]));
|
||||
break;
|
||||
case "wealth":
|
||||
int totalWealth = player.getPlayerAssistant().totalGold();
|
||||
player.getActionSender().sendMessage("You currently have " + totalWealth + "gp.");
|
||||
|
||||
Reference in New Issue
Block a user