mirror of
https://github.com/EssentialsX/Essentials.git
synced 2024-11-10 04:50:12 +01:00
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:
parent
11a03bbce9
commit
341263b934
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user