Guest User

Untitled

a guest
Jan 26th, 2019
168
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.73 KB | None | 0 0
  1. package de.mittelego.lernen.main;
  2.  
  3. import org.bukkit.Bukkit;
  4. import org.bukkit.plugin.PluginManager;
  5. import org.bukkit.plugin.java.JavaPlugin;
  6.  
  7. import de.mittelego.lernen.commands.CountdownCommand;
  8. import de.mittelego.lernen.commands.HealCommand;
  9. import de.mittelego.lernen.commands.PresentCommand;
  10. import de.mittelego.lernen.listeners.JoinListener;
  11.  
  12.  
  13. public class Main extends JavaPlugin {
  14.  
  15. public void onEnable() {
  16. getCommand("heal").setExecutor(new HealCommand());
  17. getCommand("gift").setExecutor(new PresentCommand());
  18. getCommand("Countdown").setExecutor(new CountdownCommand());
  19.  
  20.  
  21. PluginManager pluginManager = Bukkit.getPluginManager();
  22. pluginManager.registerEvents(new JoinListener(), this);
  23.  
  24. }
  25.  
  26. }
Advertisement
Add Comment
Please, Sign In to add comment