fuck, wrong upload
This commit is contained in:
parent
853f656529
commit
2bea958fb0
1 changed files with 0 additions and 31 deletions
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue