mirror of
https://github.com/GeyserMC/Floodgate.git
synced 2025-12-19 14:59:20 +00:00
Fixed bug in Bungee platform
This commit is contained in:
@@ -131,6 +131,9 @@ public final class BungeeListener implements Listener {
|
|||||||
@EventHandler(priority = EventPriority.LOWEST)
|
@EventHandler(priority = EventPriority.LOWEST)
|
||||||
public void onPostLogin(PostLoginEvent event) {
|
public void onPostLogin(PostLoginEvent event) {
|
||||||
FloodgatePlayer player = api.getPlayer(event.getPlayer().getUniqueId());
|
FloodgatePlayer player = api.getPlayer(event.getPlayer().getUniqueId());
|
||||||
|
if (player == null) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
// Skin look up (on Spigot and friends) would result in it failing, so apply a default skin
|
// Skin look up (on Spigot and friends) would result in it failing, so apply a default skin
|
||||||
if (!player.isLinked()) {
|
if (!player.isLinked()) {
|
||||||
|
|||||||
Reference in New Issue
Block a user