Merge branch 'master' of ssh://184.154.0.242:7999/min/mineplex
This commit is contained in:
commit
e03c65769d
@ -32,7 +32,7 @@ public class PlayerTracker implements Listener
|
|||||||
{
|
{
|
||||||
public void run()
|
public void run()
|
||||||
{
|
{
|
||||||
_repository.updatePlayerServer(event.getPlayer().getName(), event.getPlayer().getServer().getInfo().getName());
|
_repository.updatePlayerServer(event.getPlayer().getName(), event.getServer().getInfo().getName());
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
@ -1303,29 +1303,4 @@ public class GameLobbyManager implements Listener, IPacketHandler
|
|||||||
event.setCancelled(true);
|
event.setCancelled(true);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* DEBUG
|
|
||||||
*/
|
|
||||||
@EventHandler
|
|
||||||
public void command(PlayerCommandPreprocessEvent event)
|
|
||||||
{
|
|
||||||
Player player = event.getPlayer();
|
|
||||||
if (event.getMessage().startsWith("/enable"))
|
|
||||||
{
|
|
||||||
player.setGameMode(GameMode.CREATIVE);
|
|
||||||
player.setFlying(true);
|
|
||||||
player.setFlySpeed(0.1f);
|
|
||||||
((CraftPlayer) player).getHandle().spectating = true;
|
|
||||||
((CraftPlayer) player).getHandle().k = false;
|
|
||||||
}
|
|
||||||
else if (event.getMessage().startsWith("/disable"))
|
|
||||||
{
|
|
||||||
player.setGameMode(GameMode.SURVIVAL);
|
|
||||||
player.setFlying(false);
|
|
||||||
player.setFlySpeed(0.1f);
|
|
||||||
((CraftPlayer) player).getHandle().spectating = false;
|
|
||||||
((CraftPlayer) player).getHandle().k = true;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user