Stellrow

Untitled

Jul 2nd, 2018
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.56 KB | None | 0 0
  1. package main;
  2.  
  3. import org.bukkit.event.Listener;
  4. import org.bukkit.plugin.java.JavaPlugin;
  5.  
  6. import net.md_5.bungee.api.ChatColor;
  7.  
  8. public class main extends JavaPlugin implements Listener{
  9.  
  10. public void onEnable() {
  11. this.getCommand("nume").setExecutor(new Command(this));
  12. getServer().getConsoleSender().sendMessage(ChatColor.GREEN + "Prefix a fost activat");
  13. getServer().getPluginManager().registerEvents(this, this);
  14.  
  15.  
  16. }
  17. public void onDisable() {
  18. getServer().getConsoleSender().sendMessage(ChatColor.RED + "Prefix a fost dezactivat");
  19. }
  20.  
  21. }
Add Comment
Please, Sign In to add comment