Set creative gamemode on join
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Bea 2022-11-11 23:17:15 +01:00
parent 8a86f15996
commit 8bc992a707

View File

@ -1,6 +1,7 @@
package wtf.beatrice.limbomanager.listeners;
import org.bukkit.Bukkit;
import org.bukkit.GameMode;
import org.bukkit.entity.Player;
import org.bukkit.event.EventHandler;
import org.bukkit.event.Listener;
@ -33,6 +34,9 @@ public class PlayerChecker implements Listener
// disable flight
joiner.setAllowFlight(false);
joiner.setFlying(false);
// set gamemode
joiner.setGameMode(GameMode.CREATIVE);
}
@EventHandler