fixed a lot of velocity and packet efficiency stuff, also worked a bit on the agent
This commit is contained in:
@@ -5,7 +5,7 @@ import com.jonahseguin.drink.annotation.Command;
|
||||
import com.jonahseguin.drink.command.DrinkCommandService;
|
||||
import com.jonahseguin.drink.utils.ChatUtils;
|
||||
import net.nuggetmc.ai.PlayerAI;
|
||||
import net.nuggetmc.ai.command.commands.PlayerAICommand;
|
||||
import net.nuggetmc.ai.command.commands.MainCommand;
|
||||
import org.bukkit.ChatColor;
|
||||
|
||||
import java.lang.reflect.Method;
|
||||
@@ -22,11 +22,11 @@ public class CommandHandler {
|
||||
|
||||
public CommandHandler(PlayerAI plugin) {
|
||||
drink = (DrinkCommandService) Drink.get(plugin);
|
||||
drink.register(new PlayerAICommand(this), "playerai.manage", "bot", "playerai", "pai", "ai", "npc");
|
||||
drink.register(new MainCommand(this), "playerai.manage", "bot", "playerai", "pai", "ai", "npc");
|
||||
drink.registerCommands();
|
||||
|
||||
help = new HashMap<>();
|
||||
setHelps(PlayerAICommand.class);
|
||||
setHelps(MainCommand.class);
|
||||
}
|
||||
|
||||
@SafeVarargs
|
||||
|
||||
@@ -14,12 +14,12 @@ import org.bukkit.entity.Player;
|
||||
import java.text.NumberFormat;
|
||||
import java.util.Locale;
|
||||
|
||||
public class PlayerAICommand extends CommandInstance {
|
||||
public class MainCommand extends CommandInstance {
|
||||
|
||||
private PlayerAI plugin;
|
||||
private BotManager manager;
|
||||
|
||||
public PlayerAICommand(CommandHandler commandHandler) {
|
||||
public MainCommand(CommandHandler commandHandler) {
|
||||
super(commandHandler);
|
||||
|
||||
this.plugin = PlayerAI.getInstance();
|
||||
Reference in New Issue
Block a user