Check if vault has group support in case no permission plugin is found or used permission plugin does not support groups

This commit is contained in:
Evan Lindsay 2015-03-30 18:51:50 -07:00 committed by drtshock
parent ced36df08f
commit 3c23e1078d

View File

@ -315,7 +315,7 @@ public class P extends MPlugin {
}
public String getPrimaryGroup(OfflinePlayer player) {
return perms == null ? " " : perms.getPrimaryGroup(Bukkit.getWorlds().get(0).toString(), player);
return perms == null || !perms.hasGroupSupport() ? " " : perms.getPrimaryGroup(Bukkit.getWorlds().get(0).toString(), player);
}
public void debug(Level level, String s) {