Advertisement
Guest User

Untitled

a guest
Jun 24th, 2018
55
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.83 KB | None | 0 0
  1. package me.Rycoh.com.tutoriol;
  2.  
  3. import org.bukkit.Bukkit;
  4. import org.bukkit.plugin.java.JavaPlugin;
  5.  
  6. import me.Rycoh.com.tutoriol.Events.PlayerJoin;
  7.  
  8. public class Main extends JavaPlugin {
  9.  
  10. private static Main instance;
  11.  
  12. public void onEnable() {
  13.  
  14. instance = this;
  15.  
  16. //Chat messages\\
  17. Bukkit.getConsoleSender().sendMessage("Il plugin è stato attivato");
  18. Bukkit.getConsoleSender().sendMessage("author: rycoh");
  19. Bukkit.getConsoleSender().sendMessage("version: 0.0.1");
  20.  
  21. /////ABILITAZIONE EVENTI\\\\\
  22. Bukkit.getServer().getPluginManager().registerEvents(new PlayerJoin(), this);
  23.  
  24. }
  25.  
  26. public void onDisable() {
  27.  
  28. instance = null;
  29.  
  30. Bukkit.getConsoleSender().sendMessage("Il plugin è stato disattivato");
  31.  
  32. }
  33.  
  34. public static Main getInstance() {
  35.  
  36. return instance;
  37.  
  38. }
  39.  
  40.  
  41. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement