world optimization and beginning of messages stuff

This commit is contained in:
Super_
2020-10-31 11:09:13 -04:00
parent 2fa5afe40f
commit 2aba16cff2
15 changed files with 247 additions and 103 deletions

View File

@ -16,6 +16,8 @@ import java.util.List;
public abstract class PlexCommand extends Command implements TabExecutor, IPlexCommand
{
protected static Plex plugin = Plex.get();
private final CommandParameters params;
private final CommandPermissions perms;

View File

@ -21,7 +21,7 @@ public class TestCMD extends PlexCommand
@Override
public void execute(CommandSender sender, String[] args) {
sender.sendMessage("HIIII BICH");
sender.sendMessage(plugin.getMessageManager().getMessage("test"));
}
@Override

View File

@ -20,6 +20,4 @@ public class CommandSource
this.player = sender instanceof Player ? Bukkit.getPlayer(sender.getName()) : null;
this.plexPlayer = sender instanceof Player ? PlayerCache.getPlexPlayerMap().get(((Player)sender).getUniqueId()) : null;
}
}