Closed makindotcc closed 9 years ago
Not sure what you mean.. getOfflinePlayer returns an OfflinePlayer, and it should work fine in SportBukkit AFAIK
But it doesn't work. I have an error in the console:
Caused by: java.lang.IllegalArgumentException: WARNING: OfflinePlayer lookups are blocking and unsupported in SportBukkit. Please either use online players or the new string methods.
Right, we disabled the username lookups. Just add players to the team by username. Don't use OfflinePlayer.
We disabled getOfflinePlayer
because it is blocking and will break your plugins. Just use strings.
Now it works! Thanks for help! :)
@Thefilippop1PL How did you fix??? please tell me how to fixed it!
I replaced team.addPlayer(player); with team.add(string);
I want to send to the player a customized tablist. Here is my code
The method Bukkit.getOfflinePlayer(String) returns a String, but SportBukkit don't supports it. Also Bukkit.getPlayer(String) returns
null
when they is offline.What can I do now? Please help!