Set creative gamemode on join
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
8a86f15996
commit
8bc992a707
@ -1,6 +1,7 @@
|
|||||||
package wtf.beatrice.limbomanager.listeners;
|
package wtf.beatrice.limbomanager.listeners;
|
||||||
|
|
||||||
import org.bukkit.Bukkit;
|
import org.bukkit.Bukkit;
|
||||||
|
import org.bukkit.GameMode;
|
||||||
import org.bukkit.entity.Player;
|
import org.bukkit.entity.Player;
|
||||||
import org.bukkit.event.EventHandler;
|
import org.bukkit.event.EventHandler;
|
||||||
import org.bukkit.event.Listener;
|
import org.bukkit.event.Listener;
|
||||||
@ -33,6 +34,9 @@ public class PlayerChecker implements Listener
|
|||||||
// disable flight
|
// disable flight
|
||||||
joiner.setAllowFlight(false);
|
joiner.setAllowFlight(false);
|
||||||
joiner.setFlying(false);
|
joiner.setFlying(false);
|
||||||
|
|
||||||
|
// set gamemode
|
||||||
|
joiner.setGameMode(GameMode.CREATIVE);
|
||||||
}
|
}
|
||||||
|
|
||||||
@EventHandler
|
@EventHandler
|
||||||
|
Loading…
Reference in New Issue
Block a user