This commit is contained in:
RayzsYT committed 2024-05-17 23:27:58 +02:00
1 parent 95c401c7c4
commit de76ea5b80
3 files changed
+4 -4

No files matched your search

@@ -68,7 +68,7 @@ public class VelocityLoader {
metricsFactory.make(this, 21638);
server.getCommandManager().register("pat", new VelocityCommand(), "bpat", "bungeeproantitab", "proantitab");
server.getCommandManager().register("bpat", new VelocityCommand(), "bungeeproantitab");
server.getEventManager().register(this, new VelocityBlockCommandListener(server));
server.getEventManager().register(this, new VelocityAntiTabListener(server));
server.getEventManager().register(this, new VelocityConnectionListener(server, this));
@@ -8,7 +8,7 @@ public class VelocityCommand implements SimpleCommand {
@Override
public void execute(Invocation invocation) {
CommandProcess.handleCommand(invocation.source(), invocation.arguments(), "vpat");
CommandProcess.handleCommand(invocation.source(), invocation.arguments(), "bpat");
}
@Override
@@ -17,7 +17,7 @@ public class VelocityAntiTabListener {
VelocityAntiTabListener.server = server;
}
@Subscribe
@Subscribe (order = PostOrder.LAST)
public void onTabComplete(TabCompleteEvent event) {
Player player = event.getPlayer();
@@ -26,7 +26,7 @@ public class VelocityAntiTabListener {
event.getSuggestions().removeIf(command -> Storage.hasNoAccess(player, command));
}
@Subscribe (order = PostOrder.FIRST)
@Subscribe (order = PostOrder.LAST)
public void onPlayerAvailableCommands(PlayerAvailableCommandsEvent event) {
Player player = event.getPlayer();