Advertisement
Guest User

Untitled

a guest
Feb 6th, 2016
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.87 KB | None | 0 0
  1. package ro.flaviusDolha.multiCommands;
  2.  
  3. import java.util.logging.Logger;
  4. import org.bukkit.plugin.PluginDescriptionFile;
  5. import org.bukkit.plugin.java.JavaPlugin;
  6.  
  7. import ro.flaviusDolha.multiCommands.commands.Goodbye;
  8. import ro.flaviusDolha.multiCommands.commands.Hello;
  9.  
  10. public class mainClass extends JavaPlugin {
  11.  
  12. @Override
  13. public void onEnable() {
  14. PluginDescriptionFile pdfFile = getDescription();
  15. Logger logger = getLogger();
  16. getCommand("hello").setExecutor(new Hello());
  17. getCommand("goodbye").setExecutor(new Goodbye());
  18. logger.info(pdfFile.getName() + " has been enabled (V."
  19. + pdfFile.getVersion() + ")");
  20. }
  21.  
  22. @Override
  23. public void onDisable() {
  24. PluginDescriptionFile pdfFile = getDescription();
  25. Logger logger = getLogger();
  26. logger.info(pdfFile.getName() + " has been disabler (V."
  27. + pdfFile.getVersion() + ")");
  28. }
  29. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement