1.0.0
Production Release
This commit is contained in:
commit
fcb6e756f7
38 files changed
+2388
No files matched your search
@@ -0,0 +1,42 @@
|
||||
package com.rsscripting.mobcage;
|
||||
|
||||
import com.rsscripting.mobcage.item.CageRecipe;
|
||||
import com.rsscripting.mobcage.listener.MobCageListener;
|
||||
import com.rsscripting.mobcage.listener.MobReleaseListener;
|
||||
import com.rsscripting.mobcage.util.Keys;
|
||||
import org.bukkit.plugin.java.JavaPlugin;
|
||||
|
||||
public final class MobCage extends JavaPlugin {
|
||||
|
||||
private static MobCage instance;
|
||||
|
||||
@Override
|
||||
public void onEnable() {
|
||||
instance = this;
|
||||
|
||||
saveDefaultConfig();
|
||||
|
||||
Keys.initialize(this);
|
||||
CageRecipe.register(this);
|
||||
|
||||
getServer().getPluginManager().registerEvents(
|
||||
new MobCageListener(),
|
||||
this
|
||||
);
|
||||
|
||||
getServer().getPluginManager().registerEvents(
|
||||
new MobReleaseListener(),
|
||||
this
|
||||
);
|
||||
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onDisable() {
|
||||
// Plugin shutdown logic
|
||||
}
|
||||
|
||||
public static MobCage getInstance() {
|
||||
return instance;
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user