SHARE
TWEET

Main

a guest Jun 27th, 2019 59 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. package de.etCraft.PrimeCraft.main;
  2.  
  3.  
  4. import org.bukkit.Bukkit;
  5. import org.bukkit.plugin.PluginManager;
  6. import org.bukkit.plugin.java.JavaPlugin;
  7. import de.etCraft.PrimeCraft.commands.AFKCommand;
  8. import de.etCraft.PrimeCraft.commands.CBSystemCommand;
  9. import de.etCraft.PrimeCraft.commands.Chat;
  10. import de.etCraft.PrimeCraft.commands.ChatClearCommand;
  11. import de.etCraft.PrimeCraft.commands.FeedCommand;
  12. import de.etCraft.PrimeCraft.commands.FlyCommand;
  13. import de.etCraft.PrimeCraft.commands.HeadCommand;
  14. import de.etCraft.PrimeCraft.commands.HealCommand;
  15. import de.etCraft.PrimeCraft.commands.MSGCommand;
  16. import de.etCraft.PrimeCraft.listeners.ChatListener;
  17. import de.etCraft.PrimeCraft.listeners.JoinListener;
  18. import de.etCraft.PrimeCraft.listeners.QuitListener;
  19. import de.etCraft.PrimeCraft.listeners.ScoreboardListener;
  20. import de.etCraft.PrimeCraft.util.Broadcaster;
  21.  
  22.  
  23.  
  24. public class Main extends JavaPlugin {
  25.     private static Main plugin;
  26.     public void onEnable() {
  27.         plugin = this;
  28.        
  29.     System.out.println("Der Server wird gestartet...");
  30.  
  31.     PluginManager pluginManager = Bukkit.getPluginManager();
  32.    
  33.     //Features
  34.     getCommand("fly").setExecutor(new FlyCommand());
  35.     getCommand("heal").setExecutor(new HealCommand());
  36.     getCommand("feed").setExecutor(new FeedCommand());
  37.     getCommand("head").setExecutor(new HeadCommand());
  38.     getCommand("afk").setExecutor(new AFKCommand());
  39.    
  40.     //Broadcaster
  41.     new Broadcaster(this).startBroadcast();
  42.    
  43.     //Chat
  44.     getCommand("chatclear").setExecutor(new ChatClearCommand());
  45.     getCommand("chat").setExecutor(new Chat());
  46.     pluginManager.registerEvents(new ChatListener(), this);
  47.     getCommand("msg").setExecutor(new MSGCommand());
  48.     getCommand("CBSystem").setExecutor(new CBSystemCommand());
  49.    
  50.     //JoinQuitMessage
  51.     pluginManager.registerEvents(new JoinListener(), this);
  52.     pluginManager.registerEvents(new QuitListener(), this);
  53.     pluginManager.registerEvents(new ScoreboardListener(), this);
  54.            
  55.     System.out.println("Der Server wurde gestartet...");
  56.    
  57.  
  58.         }
  59.  public static Main getPlugin() {
  60.      return plugin;
  61.     }
  62. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top