Advertisement
TechManDylan

SlimeyVines.java

Mar 28th, 2012
196
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 1.49 KB | None | 0 0
  1. package me.TechManDylan.bukkit.SlimeyVines;
  2.  
  3. import org.bukkit.Bukkit;
  4. import org.bukkit.plugin.PluginManager;
  5. import org.bukkit.plugin.java.JavaPlugin;
  6.  
  7. public class SlimeyVines extends JavaPlugin{
  8.     public void onEnable(){
  9.         //////////////////////////
  10.         //Get the plugin manager.//
  11.         //////////////////////////
  12.         PluginManager pm = this.getServer().getPluginManager();
  13.         ///////////////////////////////
  14.         //If PermissonsEx is enabled.//
  15.         ///////////////////////////////
  16.            if(Bukkit.getServer().getPluginManager().isPluginEnabled("PermissionsEx")){
  17.                /////////////////////////////////////////
  18.                //Register the events in SlimeyVinesPL.//
  19.                /////////////////////////////////////////
  20.         pm.registerEvents(new SimeyVinesPL(), this);
  21.        /////////////////////////////////////////
  22.        //Else if PermissionsEx is not enabled.//
  23.        /////////////////////////////////////////
  24.            } else {
  25.                ////////////////////////////////////////////////////////////////////////////////////
  26.                //Issue a warning that PermissionsEx is not enabled and will default to all users.//
  27.                ////////////////////////////////////////////////////////////////////////////////////
  28.                Bukkit.getServer().getLogger().warning("[Slimey Vines] PermissionsEx is not enabled.");
  29.                Bukkit.getServer().getLogger().warning("[Slimey Vines] Will be enabled for all users.");
  30.             pm.registerEvents(new SimeyVinesPL(), this);
  31.            }
  32.     }
  33.     public void onDisable(){
  34.        
  35.     }
  36. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement