Plugin Help Scoreboard isn't working

Discussion in 'Plugin Help/Development/Requests' started by BizarrePlatinum, Apr 6, 2015.

Thread Status:
Not open for further replies.
  1. Offline

    BizarrePlatinum

    Code:
        private Scoreboard board;
        Objective o;
       
        public void setup() {
            board = Bukkit.getServer().getScoreboardManager().getNewScoreboard();
           
            o = board.registerNewObjective("money", "dummy");
            o.setDisplayName("R");
            o.setDisplaySlot(DisplaySlot.SIDEBAR);
        }
       
        @EventHandler
        public void onPlayerJoin(PlayerJoinEvent e) {
            Player p = e.getPlayer();
           
            p.setScoreboard(board);
           
           
        }
       
       
    }
    
    Setup is being called in Main class.
     
Thread Status:
Not open for further replies.

Share This Page