After entering command the server crashes
Tvhee-Dev opened this issue ยท 4 comments
Type of bug
Error in console
TabList version
TabList version 5.5.5
Software version
This server is running Paper version git-Paper-259 (MC: 1.17.1) (Implementing API version 1.17.1-R0.1-SNAPSHOT) (Git: 810d200)
Relevant plugins
No response
Console error (if applicable)
https://paste.gg/p/anonymous/56077e55711c45a0947df96dd3ced501
TabList configuration files
https://paste.gg/p/anonymous/2d9940c9f0eb47baa541dfd632ae083c
Bug description
You have to fix your null error. This occurs if I type "/tablist player tvhee prefix "Test ".
public static boolean hasPermission(Player player, String perm) {
if(perm == null)
return false;
if (PLUGIN.isPluginEnabled("PermissionsEx")) {
try {
return ru.tehkode.permissions.bukkit.PermissionsEx.getPermissionManager().has(player, perm);
} catch (Throwable e) {
// Pex2 supports bukkit provided "hasPermission" check
}
}
return player.hasPermission(perm);
}
Just null check the perm, if null return false.
Better fix will be to change the permission
variable
and it will be initialized with a default ""
(empty) string.