Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package ro.flaviusDolha.multiCommands;
- import java.util.logging.Logger;
- import org.bukkit.plugin.PluginDescriptionFile;
- import org.bukkit.plugin.java.JavaPlugin;
- import ro.flaviusDolha.multiCommands.commands.Goodbye;
- import ro.flaviusDolha.multiCommands.commands.Hello;
- public class mainClass extends JavaPlugin {
- @Override
- public void onEnable() {
- PluginDescriptionFile pdfFile = getDescription();
- Logger logger = getLogger();
- getCommand("hello").setExecutor(new Hello());
- getCommand("goodbye").setExecutor(new Goodbye());
- logger.info(pdfFile.getName() + " has been enabled (V."
- + pdfFile.getVersion() + ")");
- }
- @Override
- public void onDisable() {
- PluginDescriptionFile pdfFile = getDescription();
- Logger logger = getLogger();
- logger.info(pdfFile.getName() + " has been disabler (V."
- + pdfFile.getVersion() + ")");
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement