Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package br.com.playdreamcraft.primeplu;
- import me.confuser.barapi.BarAPI;
- import org.bukkit.Bukkit;
- import org.bukkit.ChatColor;
- import org.bukkit.event.Listener;
- import org.bukkit.event.player.PlayerLoginEvent;
- import org.bukkit.plugin.java.JavaPlugin;
- public class PrimeiroPlugin extends JavaPlugin
- implements Listener
- {
- public void onEnable(){
- getLogger().info("Teste Enable");
- Bukkit.getServer().getPluginManager().registerEvents(this, this);
- }
- public void onPlayerLogin(PlayerLoginEvent e) {
- System.out.println("Player Login Event Fired");
- BarAPI.setMessage(e.getPlayer(), ChatColor.GREEN + "MC.PLAYDREAMCRAFT.COM.BR!", 100f);
- return;
- }
- public void onDisable(){
- getLogger().info("Text Disable");
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement