Guest User

Console logs upon crash

a guest
Jun 1st, 2017
81
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. package vexmc.practiceplugin.events;
  2.  
  3. import org.bukkit.ChatColor;
  4. import org.bukkit.entity.Player;
  5. import org.bukkit.event.EventHandler;
  6. import org.bukkit.event.Listener;
  7. import org.bukkit.event.player.PlayerJoinEvent;
  8.  
  9. import com.connorlinfoot.actionbarapi.ActionBarAPI;
  10.  
  11. public class EventsClass implements Listener {
  12.    
  13.     public int playerLevel = 1;
  14.    
  15.     @EventHandler
  16.     public void onJoin(PlayerJoinEvent event) {
  17.         Player player = event.getPlayer();
  18.        
  19.         while(playerLevel >= 1) {
  20.             ActionBarAPI.sendActionBar(player, ChatColor.YELLOW + "" + ChatColor.BOLD + "<<< " + ChatColor.GOLD + ""+ ChatColor.BOLD + playerLevel + ChatColor.YELLOW + "" + ChatColor.BOLD + ">>>");
  21.         }
  22.     }
  23. }
RAW Paste Data