Removed null value from AbstractVaultHandler (#1327)

I'm in the process of writing a permissions plugin, and every time I try to talk it threw an error. The error was caused by this null value that was existing. I removed it and changed it to get the Player's world name. This should fix my error.
This commit is contained in:
NJDaeger 2017-06-24 10:41:51 -04:00 committed by Ali 'SupaHam' M
parent 11a03bbce9
commit 341263b934

View File

@ -48,7 +48,7 @@ public abstract class AbstractVaultHandler extends SuperpermsHandler {
String playerPrefix = chat.getPlayerPrefix(base);
if (playerPrefix == null) {
String playerGroup = perms.getPrimaryGroup(base);
return chat.getGroupPrefix((String) null, playerGroup);
return chat.getGroupPrefix(base.getWorld().getName(), playerGroup);
} else {
return playerPrefix;
}
@ -59,7 +59,7 @@ public abstract class AbstractVaultHandler extends SuperpermsHandler {
String playerSuffix = chat.getPlayerSuffix(base);
if (playerSuffix == null) {
String playerGroup = perms.getPrimaryGroup(base);
return chat.getGroupSuffix((String) null, playerGroup);
return chat.getGroupSuffix(base.getWorld().getName(), playerGroup);
} else {
return playerSuffix;
}