mirror of
https://github.com/kaboomserver/extras.git
synced 2024-11-27 09:55:36 -05:00
Removed debug code
This commit is contained in:
parent
4dc64ae1d9
commit
4348eef96c
3 changed files with 0 additions and 24 deletions
|
@ -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);
|
||||
}
|
||||
|
|
|
@ -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");
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
}*/
|
||||
}
|
||||
}
|
Loading…
Reference in a new issue