Advertisement
Guest User

Untitled

a guest
Dec 28th, 2014
272
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.88 KB | None | 0 0
  1. package mpgc.bot;
  2.  
  3. import java.io.IOException;
  4.  
  5. import org.bukkit.plugin.java.JavaPlugin;
  6.  
  7.  
  8.  
  9. public class BotMain extends JavaPlugin {
  10.  
  11.     public void OnEnable() {
  12.         System.out.println("+++ OnEnable wir gelesen +++");
  13.         new Config();
  14.         getCommand("botsetup").setExecutor(new AdminCMD());
  15.         getCommand("botbattle").setExecutor(new UserCMD());
  16.         System.out.println("+++ Kommandos geladen +++");
  17.         try {
  18.             Config.loadConfig();
  19.         } catch (IOException e) {
  20.             e.printStackTrace();
  21.         }
  22.         System.out.println("+++ Hier bin ich angekommen +++");
  23.  
  24.     }
  25.  
  26.     public void onDisable() {
  27.  
  28.     }
  29.  
  30. }
  31. /--------------------------------------------------- plugin.yml
  32. name: BotBattle
  33. version: 1.0
  34. author: 615Power
  35.  
  36. main: mpgc.bot.BotMain
  37.  
  38. commands:
  39.   botbattle:
  40.     description: Wenn ich das Wueste
  41.     aliases: bot
  42.   botsetup:
  43.     description: Wenn ich das Wueste
  44.     aliases: botadmin
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement