1920212223242526
public class Commands { public static void permission(CommandSender sender, String node) throws NoPermissionException { if (sender instanceof Player && !((Player) sender).hasPermission(node)) { throw new NoPermissionException(); } }