fuck, wrong upload

This commit is contained in:
Martin Dvořák 2026-08-04 20:10:53 +02:00
commit 2bea958fb0

View file

@ -1,31 +0,0 @@
package one.eim.gravitycontrol;
import org.bstats.bukkit.Metrics;
import org.bukkit.plugin.java.JavaPlugin;
public final class GravityControl extends JavaPlugin {
public Configuration config;
WorldGuardHook worldGuardHook = null;
@Override
public void onLoad() {
if (this.getServer().getPluginManager().getPlugin("WorldGuard") != null) {
this.worldGuardHook = new WorldGuardHook(this);
if (!this.worldGuardHook.register()) this.worldGuardHook = null;
}
}
@Override
public void onEnable() {
this.saveDefaultConfig();
this.config = new Configuration(this, this.getConfig());
this.getServer().getPluginManager().registerEvents(new GravityListener(this), this);
this.getCommand("gcr").setExecutor(new ReloadCommand(this));
if (this.config.updateChecker) new UpdateChecker(this).check();
new Metrics(this, 13384);
}
}