File tree Expand file tree Collapse file tree 3 files changed +5
-8
lines changed
Essentials/src/main/java/com/earth2me/essentials Expand file tree Collapse file tree 3 files changed +5
-8
lines changed Original file line number Diff line number Diff line change @@ -52,7 +52,8 @@ private void addPermsChart() {
52
52
final Map <String , Map <String , Integer >> result = new HashMap <>();
53
53
final String handler = ess .getPermissionsHandler ().getName ();
54
54
final Map <String , Integer > backend = new HashMap <>();
55
- backend .put (ess .getPermissionsHandler ().getBackendName (), 1 );
55
+ final String backendName = ess .getPermissionsHandler ().getBackendName ();
56
+ backend .put (backendName != null ? backendName : "Other" , 1 );
56
57
result .put (handler , backend );
57
58
return result ;
58
59
}));
Original file line number Diff line number Diff line change @@ -198,6 +198,9 @@ public void checkPermissions() {
198
198
String enabledPermsPlugin = ((AbstractVaultHandler ) handler ).getEnabledPermsPlugin ();
199
199
if (enabledPermsPlugin == null ) enabledPermsPlugin = "generic" ;
200
200
ess .getLogger ().info ("Using Vault based permissions (" + enabledPermsPlugin + ")" );
201
+ } else if (handler .getClass () == ConfigPermissionsHandler .class ) {
202
+ ess .getLogger ().info ("Using config file enhanced permissions." );
203
+ ess .getLogger ().info ("Permissions listed in as player-commands will be given to all users." );
201
204
} else if (handler .getClass () == SuperpermsHandler .class ) {
202
205
if (handler .tryProvider (ess )) {
203
206
ess .getLogger ().warning ("Detected supported permissions plugin " +
@@ -206,9 +209,6 @@ public void checkPermissions() {
206
209
"work until you install Vault." );
207
210
}
208
211
ess .getLogger ().info ("Using superperms-based permissions." );
209
- } else if (handler .getClass () == ConfigPermissionsHandler .class ) {
210
- ess .getLogger ().info ("Using config file enhanced permissions." );
211
- ess .getLogger ().info ("Permissions listed in as player-commands will be given to all users." );
212
212
}
213
213
}
214
214
Original file line number Diff line number Diff line change @@ -171,10 +171,6 @@ public String getEnabledPermsPlugin() {
171
171
}
172
172
}
173
173
174
- if (enabledPermsPlugin == null ) {
175
- enabledPermsPlugin = "Other" ;
176
- }
177
-
178
174
return enabledPermsPlugin ;
179
175
}
180
176
}
You can’t perform that action at this time.
0 commit comments