Animated-TabList

Animated-TabList

65.2k Downloads

After entering command the server crashes

Tvhee-Dev opened this issue ยท 4 comments

commented

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 ".

commented

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.

commented

Better fix will be to change the permission variable

private String team, prefix, suffix, tabName = "", permission;

and it will be initialized with a default "" (empty) string.

commented

Yes good idea, I am also a programmer that is why I tried helping you

commented

d763a69

This commit contains the fix for this exception, you can install the newest build from Actions page, select the first one and find Artifacts.