Finally did the duty

The guillotine has dropped. Contact Ali *directly* and *personally* if
you have complaints or a valid reason to use non-survival inventory.
(Written at 5:21 AM, I might have been salty as fuck when I made this
decision)
This commit is contained in:
alisolarflare 2016-12-22 05:22:04 -05:00
parent 01cc741e33
commit f65cd9210c

View file

@ -16,12 +16,7 @@ public class CreativeKillLoop extends BukkitRunnable implements Listener {
@Override @Override
public void run() { public void run() {
plugin.getServer().broadcastMessage("CreativeLoop");
for (Player player : plugin.getServer().getOnlinePlayers()){ for (Player player : plugin.getServer().getOnlinePlayers()){
player.sendMessage("Player: " + player.getName());
player.sendMessage("World: " + player.getWorld());
player.sendMessage("Gamemode : " + player.getGameMode().toString());
player.sendMessage("IsOP: " + player.isOp());
if(player.getGameMode() != GameMode.SURVIVAL && player.getWorld().getName().equalsIgnoreCase("world") && player.isOp() == false){ if(player.getGameMode() != GameMode.SURVIVAL && player.getWorld().getName().equalsIgnoreCase("world") && player.isOp() == false){
player.sendMessage("[Hotfix] Every Gamemode other than survival is disabled in the new world!"); player.sendMessage("[Hotfix] Every Gamemode other than survival is disabled in the new world!");
player.setGameMode(GameMode.SURVIVAL); player.setGameMode(GameMode.SURVIVAL);