Introduced Brigadier Command System. More Formatting Coming in next commit.
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
package com.massivecraft.factions.struct;
|
||||
|
||||
import com.massivecraft.factions.P;
|
||||
import com.massivecraft.factions.FactionsPlugin;
|
||||
import org.bukkit.command.CommandSender;
|
||||
|
||||
public enum Permission {
|
||||
@@ -35,6 +35,7 @@ public enum Permission {
|
||||
DISBAND_ANY("disband.any"),
|
||||
FLY("fly"),
|
||||
FOCUS("focus"),
|
||||
GLOBALCHAT("globalchat"),
|
||||
GRACE("grace"),
|
||||
HELP("help"),
|
||||
HOME("home"),
|
||||
@@ -66,6 +67,7 @@ public enum Permission {
|
||||
MONEY_F2P("money.f2p"),
|
||||
MONEY_P2F("money.p2f"),
|
||||
MONITOR_LOGINS("monitorlogins"),
|
||||
NEAR("near"),
|
||||
NO_BOOM("noboom"),
|
||||
OPEN("open"),
|
||||
OWNER("owner"),
|
||||
@@ -77,6 +79,7 @@ public enum Permission {
|
||||
PAYPAL("paypal"),
|
||||
PAYPALSET("setpaypal"),
|
||||
PERMISSIONS("permissions"),
|
||||
POINTS("points"),
|
||||
POWERBOOST("powerboost"),
|
||||
POWER("power"),
|
||||
POWER_ANY("power.any"),
|
||||
@@ -103,6 +106,7 @@ public enum Permission {
|
||||
SCOREBOARD("scoreboard"),
|
||||
SEECHUNK("seechunk"),
|
||||
SETWARP("setwarp"),
|
||||
SHOP("shop"),
|
||||
TOP("top"),
|
||||
VIEWCHEST("viewchest"),
|
||||
ADDPOINTS("addpoints"),
|
||||
@@ -131,7 +135,7 @@ public enum Permission {
|
||||
}
|
||||
|
||||
public boolean has(CommandSender sender, boolean informSenderIfNot) {
|
||||
return P.p.perm.has(sender, this.node, informSenderIfNot);
|
||||
return FactionsPlugin.getInstance().perm.has(sender, this.node, informSenderIfNot);
|
||||
}
|
||||
|
||||
public boolean has(CommandSender sender) {
|
||||
|
||||
Reference in New Issue
Block a user