daily pastebin goal
4%
SHARE
TWEET

Untitled

a guest Jun 24th, 2018 93 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.         public void refreshRanks(){
  2.             for(Player p : Bukkit.getOnlinePlayers()){
  3.                 Scoreboard board = Bukkit.getServer().getScoreboardManager().getNewScoreboard();
  4.            
  5.            
  6.                
  7.                 Objective objective = board.registerNewObjective("Scoreboard", "dummy");
  8.                 objective.setDisplaySlot(DisplaySlot.SIDEBAR);
  9.                 objective.setDisplayName(ChatColor.translateAlternateColorCodes('&', "&b&lMyServerP"));
  10.                 Score score = objective.getScore(ChatColor.translateAlternateColorCodes("Hello"));
  11.                 score.setScore(0);
  12.                
  13.                 Score blank1 = objective.getScore(" ");
  14.  
  15.                
  16.                 Score blank11 = objective.getScore(" ");
  17.                 blank11.setScore(3);
  18.                
  19.  
  20.             p.setScoreboard(board);
  21.            
  22.             }
  23.            
  24.         }
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