Guest User

Untitled

a guest
Aug 28th, 2021
53
272 days
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.      
  2. package de.minelag.main;
  3.  
  4. import org.bukkit.Bukkit;
  5. import org.bukkit.plugin.PluginManager;
  6. import org.bukkit.plugin.java.JavaPlugin;
  7.  
  8. import de.minelag.main.bank.bank;
  9. import de.minelag.main.commands.MessageCommand;
  10. import de.minelag.main.commands.OnlineShop;
  11. import de.minelag.main.commands.commands;
  12. import de.minelag.main.commands.discord;
  13. import de.minelag.main.commands.forum;
  14. import de.minelag.main.commands.minirucksack;
  15. import de.minelag.main.commands.teamspeak;
  16. import listener.PlayerJoinListener;
  17. import listener.PlayerQuitListener;
  18.  
  19. public class Main extends JavaPlugin{
  20.  
  21.     private static Plugin plugin; // Globale Variable
  22.  
  23.     public void onEnable() {
  24.  
  25.         plugin = this; //Variable initialisieren       
  26.  
  27.         getLogger().info("Das Plugin wurde erfolgreich gestartet");
  28.  
  29.         getCommand("commands").setExecutor(new commands());
  30.         getCommand("test").setExecutor(new MessageCommand());
  31.         getCommand("shop").setExecutor(new OnlineShop());
  32.         getCommand("teamspeak").setExecutor(new teamspeak());
  33.         getCommand("forum").setExecutor(new forum());
  34.         getCommand("discord").setExecutor(new discord());
  35.         getCommand("rucksack").setExecutor(new minirucksack());
  36.         getCommand("bank").setExecutor(new bank());
  37.  
  38.  
  39.         PluginManager pm = Bukkit.getPluginManager();
  40.         pm.registerEvents(new PlayerJoinListener(), this);
  41.         pm.registerEvents(new PlayerQuitListener(), this);
  42.         }
  43.     public static JavaPlugin getPlugin() {
  44.         // TODO Auto-generated method stub
  45.         return plugin;  // Plugin-variable zur├╝ckgeben
  46.     }
  47. }
RAW Paste Data