Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on Jul 22nd, 2012  |  syntax: None  |  size: 0.65 KB  |  hits: 17  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. import org.anjocaido.groupmanager.GroupManager;
  2. import org.anjocaido.groupmanager.dataholder.worlds.WorldsHolder;
  3. import org.anjocaido.groupmanager.dataholder.WorldDataHolder;
  4. public void onEnable() {
  5.         Plugin p = this.getServer().getPluginManager().getPlugin("GroupManager");
  6.         if (p != null) {
  7.             if (!this.getServer().getPluginManager().isPluginEnabled(p)) {
  8.                 this.getServer().getPluginManager().enablePlugin(p);
  9.             }
  10.             GroupManager gm = (GroupManager) p;
  11.             WorldsHolder wd = gm.getWorldsHolder();
  12.         } else {
  13.             this.getPluginLoader().disablePlugin(this);
  14.         }
  15.     }