SHARE
TWEET

Untitled

a guest Aug 25th, 2019 62 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. package be.cecemel.denesia;
  2.  
  3. import java.util.HashMap;
  4. import java.util.Map;
  5.  
  6. import org.bukkit.entity.Player;
  7. import org.bukkit.event.EventHandler;
  8. import org.bukkit.event.Listener;
  9. import org.bukkit.event.player.PlayerJoinEvent;
  10. import org.bukkit.plugin.java.JavaPlugin;
  11.  
  12. public class Main extends JavaPlugin implements Listener {
  13.  
  14.     public Map<Player, ScoreboardSign> boards = new HashMap<>();
  15.     @Override
  16.     public void onEnable() {
  17.         getServer().getPluginManager().registerEvents(this, this);
  18.     }
  19.    
  20.     @EventHandler
  21.     public void onJoin(PlayerJoinEvent event) {
  22.         Player player = event.getPlayer();
  23.         ScoreboardSign scoreboard = new ScoreboardSign(player, "&6Denesia");
  24.         scoreboard.create();
  25.         scoreboard.setLine(0, "&eplay.denesia.tk");
  26.         boards.put(player, scoreboard);
  27.     }
  28.  
  29. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top