fixed a lot of velocity and packet efficiency stuff, also worked a bit on the agent

This commit is contained in:
batchprogrammer314
2021-07-10 23:51:14 -05:00
parent 7bd2e50afd
commit 7c2de37bd8
11 changed files with 281 additions and 78 deletions

View File

@@ -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

View File

@@ -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();