add canJoinFull method

This commit is contained in:
ajgeiss0702
2021-10-08 14:58:41 -07:00
parent 4d91663e20
commit 74ee9fcf0e
5 changed files with 17 additions and 7 deletions
@@ -54,6 +54,7 @@ public class BaseCommand implements IBaseCommand {
sender.sendMessage(Component.text("Unimplemented command"));
}
@SuppressWarnings("BooleanMethodIsAlwaysInverted")
public boolean checkPermission(ICommandSender sender) {
if(getPermission() != null && !sender.hasPermission(getPermission())) {
sender.sendMessage(getMessages().getComponent("noperm"));