Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package me.TechManDylan.bukkit.SlimeyVines;
- import org.bukkit.Bukkit;
- import org.bukkit.plugin.PluginManager;
- import org.bukkit.plugin.java.JavaPlugin;
- public class SlimeyVines extends JavaPlugin{
- public void onEnable(){
- //////////////////////////
- //Get the plugin manager.//
- //////////////////////////
- PluginManager pm = this.getServer().getPluginManager();
- ///////////////////////////////
- //If PermissonsEx is enabled.//
- ///////////////////////////////
- if(Bukkit.getServer().getPluginManager().isPluginEnabled("PermissionsEx")){
- /////////////////////////////////////////
- //Register the events in SlimeyVinesPL.//
- /////////////////////////////////////////
- pm.registerEvents(new SimeyVinesPL(), this);
- /////////////////////////////////////////
- //Else if PermissionsEx is not enabled.//
- /////////////////////////////////////////
- } else {
- ////////////////////////////////////////////////////////////////////////////////////
- //Issue a warning that PermissionsEx is not enabled and will default to all users.//
- ////////////////////////////////////////////////////////////////////////////////////
- Bukkit.getServer().getLogger().warning("[Slimey Vines] PermissionsEx is not enabled.");
- Bukkit.getServer().getLogger().warning("[Slimey Vines] Will be enabled for all users.");
- pm.registerEvents(new SimeyVinesPL(), this);
- }
- }
- public void onDisable(){
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement