Removed debug code

This commit is contained in:
mathias 2019-08-03 00:22:29 +03:00
parent 4dc64ae1d9
commit 4348eef96c
3 changed files with 0 additions and 24 deletions

View file

@ -613,7 +613,6 @@ public class Main extends JavaPlugin {
this.getServer().getPluginManager().registerEvents(new PlayerInteract(this), this);
/* Server-related modules */
new AutosaveCheck().runTaskTimerAsynchronously(this, 0, 20);
this.getServer().getPluginManager().registerEvents(new ServerCommand(this), this);
this.getServer().getPluginManager().registerEvents(new ServerPing(), this);
}

View file

@ -32,8 +32,6 @@ import com.destroystokyo.paper.profile.ProfileProperty;
import com.google.gson.JsonObject;
import com.google.gson.JsonParser;
import org.bukkit.event.world.WorldSaveEvent;
class PlayerConnection implements Listener {
private Main main;
public PlayerConnection(Main main) {
@ -150,9 +148,4 @@ class PlayerConnection implements Listener {
}
main.playerProfile.remove(player.getName());
}
@EventHandler
void onWorldSave(WorldSaveEvent event) {
System.out.println("1");
}
}

View file

@ -1,16 +0,0 @@
package pw.kaboom.extras;
import org.bukkit.Bukkit;
import org.bukkit.World;
import org.bukkit.scheduler.BukkitRunnable;
class AutosaveCheck extends BukkitRunnable {
public void run() {
/*for (final World world : Bukkit.getWorlds()) {
if (world.isAutoSave() == false) {
world.setAutoSave(true);
}
}*/
}
}