5
5
import com .massivecraft .factions .struct .Role ;
6
6
import com .massivecraft .factions .util .WarmUpUtil ;
7
7
import com .massivecraft .factions .zcore .MCommand ;
8
- import com .massivecraft .factions .zcore .fperms .Access ;
9
- import com .massivecraft .factions .zcore .fperms .PermissableAction ;
10
8
import com .massivecraft .factions .zcore .util .TL ;
11
9
import org .bukkit .command .CommandSender ;
12
10
import org .bukkit .entity .Player ;
@@ -27,7 +25,6 @@ public abstract class FCommand extends MCommand<P> {
27
25
public boolean senderMustBeModerator ;
28
26
public boolean senderMustBeAdmin ;
29
27
public boolean senderMustBeColeader ;
30
- protected PermissableAction actionPermission ;
31
28
32
29
public boolean isMoneyCommand ;
33
30
@@ -46,47 +43,6 @@ public FCommand() {
46
43
senderMustBeAdmin = false ;
47
44
}
48
45
49
- public boolean hasAccess () {
50
- if (this .permission == null || this .fme == null ) return false ;
51
- if (!this .fme .isAdminBypassing ()) {
52
- Access access = myFaction .getAccess (this .fme , permission );
53
- if (access != Access .ALLOW && this .fme .getRole () != Role .ADMIN ) {
54
- return false ;
55
- }
56
- }
57
- return true ;
58
- }
59
- public boolean hasAccess (boolean isAdmin ) {
60
- if (this .actionPermission == null || this .fme == null ) return false ;
61
- if (!this .fme .isAdminBypassing () && isAdmin ) {
62
- Access access = myFaction .getAccess (this .fme , this .actionPermission );
63
- if (access != Access .ALLOW && this .fme .getRole () != Role .ADMIN ) {
64
- return false ;
65
- }
66
- }
67
- return true ;
68
- }
69
- public boolean hasAccess (PermissableAction perm ) {
70
- if (this .permission == null || this .fme == null ) return false ;
71
- if (!this .fme .isAdminBypassing ()) {
72
- Access access = myFaction .getAccess (this .fme , perm );
73
- if (access != Access .ALLOW && this .fme .getRole () != Role .ADMIN ) {
74
- return false ;
75
- }
76
- }
77
- return true ;
78
- }
79
- public boolean hasAccess (PermissableAction perm , boolean isAdmin ) {
80
- if (this .permission == null || this .fme == null ) return false ;
81
- if (!this .fme .isAdminBypassing () && isAdmin ) {
82
- Access access = myFaction .getAccess (this .fme , perm );
83
- if (access != Access .ALLOW && this .fme .getRole () != Role .ADMIN ) {
84
- return false ;
85
- }
86
- }
87
- return true ;
88
- }
89
-
90
46
@ Override
91
47
public void execute (CommandSender sender , List <String > args , List <MCommand <?>> commandChain ) {
92
48
if (sender instanceof Player ) {
0 commit comments