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() {
5252 final Map <String , Map <String , Integer >> result = new HashMap <>();
5353 final String handler = ess .getPermissionsHandler ().getName ();
5454 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 );
5657 result .put (handler , backend );
5758 return result ;
5859 }));
Original file line number Diff line number Diff line change @@ -198,6 +198,9 @@ public void checkPermissions() {
198198 String enabledPermsPlugin = ((AbstractVaultHandler ) handler ).getEnabledPermsPlugin ();
199199 if (enabledPermsPlugin == null ) enabledPermsPlugin = "generic" ;
200200 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." );
201204 } else if (handler .getClass () == SuperpermsHandler .class ) {
202205 if (handler .tryProvider (ess )) {
203206 ess .getLogger ().warning ("Detected supported permissions plugin " +
@@ -206,9 +209,6 @@ public void checkPermissions() {
206209 "work until you install Vault." );
207210 }
208211 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." );
212212 }
213213 }
214214
Original file line number Diff line number Diff line change @@ -171,10 +171,6 @@ public String getEnabledPermsPlugin() {
171171 }
172172 }
173173
174- if (enabledPermsPlugin == null ) {
175- enabledPermsPlugin = "Other" ;
176- }
177-
178174 return enabledPermsPlugin ;
179175 }
180176}
You can’t perform that action at this time.
0 commit comments