mirror of
https://github.com/TotalFreedomMC/TF-EssentialsX.git
synced 2025-02-12 04:20:41 +00: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
1 changed files with 2 additions and 2 deletions
|
@ -48,7 +48,7 @@ public abstract class AbstractVaultHandler extends SuperpermsHandler {
|
||||||
String playerPrefix = chat.getPlayerPrefix(base);
|
String playerPrefix = chat.getPlayerPrefix(base);
|
||||||
if (playerPrefix == null) {
|
if (playerPrefix == null) {
|
||||||
String playerGroup = perms.getPrimaryGroup(base);
|
String playerGroup = perms.getPrimaryGroup(base);
|
||||||
return chat.getGroupPrefix((String) null, playerGroup);
|
return chat.getGroupPrefix(base.getWorld().getName(), playerGroup);
|
||||||
} else {
|
} else {
|
||||||
return playerPrefix;
|
return playerPrefix;
|
||||||
}
|
}
|
||||||
|
@ -59,7 +59,7 @@ public abstract class AbstractVaultHandler extends SuperpermsHandler {
|
||||||
String playerSuffix = chat.getPlayerSuffix(base);
|
String playerSuffix = chat.getPlayerSuffix(base);
|
||||||
if (playerSuffix == null) {
|
if (playerSuffix == null) {
|
||||||
String playerGroup = perms.getPrimaryGroup(base);
|
String playerGroup = perms.getPrimaryGroup(base);
|
||||||
return chat.getGroupSuffix((String) null, playerGroup);
|
return chat.getGroupSuffix(base.getWorld().getName(), playerGroup);
|
||||||
} else {
|
} else {
|
||||||
return playerSuffix;
|
return playerSuffix;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue