Guest User

Untitled

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