#How to handle BukkitPlayer undefined exception?
1 messages · Page 1 of 1 (latest)
stack trace: https://paste.helpch.at/rolobimoti.vbnet
JavaScript written by me: https://paste.helpch.at/luzinidufu.csharp
yeah that is intended, the BukkitPlayer object is defined only when the player is online.
But sometimes he appears, sometimes not, and only happens when the player exits.
ig it depends when the placeholder is parsed.
I want to handle BukkitPlayer undefined in JavaScript, but I don't know how to do it, I tried many ways, such as BukkitPlayer == 'null', but it doesn't work, I want to know the correct way to handle it...
Handling BukkitPlayer undefined in JavaScript, is it possible?
How to handle BukkitPlayer undefined exception?
My guess is that this might happen when the player is online, the plugin tries to parse, and the player leaves the server while parsing.