check if rsp is null

This commit is contained in:
Taah
2022-05-10 23:06:56 -07:00
parent b78f71c238
commit ebfba89994
3 changed files with 16 additions and 1 deletions

View File

@ -119,6 +119,10 @@ public class RankManager
}
if (Bukkit.getServer().getPluginManager().isPluginEnabled("Vault") && Plex.get().getSystem().equalsIgnoreCase("permissions"))
{
if (VaultHook.getChat() == null || VaultHook.getPermission() == null)
{
return null;
}
Player bukkitPlayer = Bukkit.getPlayer(player.getUuid());
String group = VaultHook.getPermission().getPrimaryGroup(bukkitPlayer);
String vaultPrefix = VaultHook.getChat().getGroupPrefix(bukkitPlayer.getWorld(), group);