mirror of
https://github.com/SunNetservers/MiniGames.git
synced 2024-12-05 00:43:15 +01:00
Fixes joining not fixing non-location player options
This commit is contained in:
parent
206a85b23a
commit
4a3329459e
@ -5,6 +5,7 @@ import net.knarcraft.minigames.arena.ArenaPlayerRegistry;
|
||||
import net.knarcraft.minigames.arena.ArenaSession;
|
||||
import net.knarcraft.minigames.arena.PlayerEntryState;
|
||||
import net.knarcraft.minigames.arena.parkour.ParkourArenaSession;
|
||||
import org.bukkit.Bukkit;
|
||||
import org.bukkit.Location;
|
||||
import org.bukkit.entity.Player;
|
||||
import org.bukkit.event.EventHandler;
|
||||
@ -81,7 +82,7 @@ public class PlayerStateChangeListener implements Listener {
|
||||
". Attempting to restore the player's state.");
|
||||
playerRegistry.removePlayer(player.getUniqueId(), false);
|
||||
|
||||
entryState.restore(player);
|
||||
Bukkit.getScheduler().runTaskLater(MiniGames.getInstance(), () -> entryState.restore(player), 1);
|
||||
return entryState.getEntryLocation();
|
||||
} else {
|
||||
return null;
|
||||
|
Loading…
Reference in New Issue
Block a user