Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package de.mittelego.lernen.main;
- import org.bukkit.Bukkit;
- import org.bukkit.plugin.PluginManager;
- import org.bukkit.plugin.java.JavaPlugin;
- import de.mittelego.lernen.commands.CountdownCommand;
- import de.mittelego.lernen.commands.HealCommand;
- import de.mittelego.lernen.commands.PresentCommand;
- import de.mittelego.lernen.listeners.JoinListener;
- public class Main extends JavaPlugin {
- public void onEnable() {
- getCommand("heal").setExecutor(new HealCommand());
- getCommand("gift").setExecutor(new PresentCommand());
- getCommand("Countdown").setExecutor(new CountdownCommand());
- PluginManager pluginManager = Bukkit.getPluginManager();
- pluginManager.registerEvents(new JoinListener(), this);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment