Permission registering

This commit is contained in:
William committed 2022-06-10 00:20:52 +01:00
1 parent f78c6618bd
commit 14e27d5f2f
9 files changed
+214 -14

No files matched your search

@@ -2,6 +2,7 @@ package net.william278.huskhomes.command;
import net.william278.huskhomes.HuskHomes;
import net.william278.huskhomes.player.Player;
import net.william278.huskhomes.util.Permission;
import org.jetbrains.annotations.NotNull;
/**
@@ -30,9 +31,9 @@ public abstract class CommandBase {
public final HuskHomes plugin;
public CommandBase(@NotNull String command, @NotNull String permission, @NotNull HuskHomes implementor, String... aliases) {
public CommandBase(@NotNull String command, @NotNull Permission permission, @NotNull HuskHomes implementor, String... aliases) {
this.command = command;
this.permission = permission;
this.permission = permission.node;
this.plugin = implementor;
this.aliases = aliases;
}