refactor: remove unused code

This commit is contained in:
Simon Giesel 2020-05-25 16:15:00 +02:00
parent 876d718ccb
commit 3ccc008b55

View file

@ -100,17 +100,8 @@ public class GameTimeManager {
private void startPlayTimeTimer() { private void startPlayTimeTimer() {
new BukkitRunnable() { new BukkitRunnable() {
boolean playersTeleported = false;
@Override @Override
public void run() { public void run() {
if (isLoginTimeOver()) {
if (!this.playersTeleported) {
this.playersTeleported = true;
System.out.println("TODO: Teleport Players!");
// plugin.getTeamManager().
}
}
if (isPlayTimeOver()) { if (isPlayTimeOver()) {
for (final Player p : Bukkit.getOnlinePlayers()) { for (final Player p : Bukkit.getOnlinePlayers()) {
p.kickPlayer("Spielzeit abgelaufen"); p.kickPlayer("Spielzeit abgelaufen");