SHARE
TWEET

Untitled

a guest May 22nd, 2019 76 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.  public static boolean permissionservice = Bukkit.getPluginManager().isPluginEnabled("CloudNetAPI");
  2.  
  3.  
  4.  
  5.     public static void setScoreboard(Player player){
  6.  
  7.         PermissionGroup permissionGroup = permissionservice
  8.                 ? CloudServer.getInstance().getCachedPlayer(player.getUniqueId()).getPermissionEntity()
  9.                 .getHighestPermissionGroup(CloudAPI.getInstance().getPermissionPool())
  10.                 : null;
  11.         if (permissionGroup == null) {
  12.             return;
  13.         }
  14.  
  15.         Scoreboard board = Bukkit.getScoreboardManager().getNewScoreboard();
  16.         Objective obj = board.registerNewObjective("lobbyscore", "score");
  17.         obj.setDisplaySlot(DisplaySlot.SIDEBAR);
  18.         obj.setDisplayName("§7» §6§lMLGWool §7«");
  19.         obj.getScore("§7§m-------------").setScore(6);
  20.         obj.getScore("§bRang;").setScore(5);
  21.         obj.getScore("§m§7» §9" + permissionGroup.getDisplay()).setScore(4);
  22.         obj.getScore("§1§e§f").setScore(3);
  23.         obj.getScore("§bWolle:").setScore(2);
  24.         obj.getScore("§2§4§7» §2"+Stats.getWool(player.getUniqueId())).setScore(1);
  25.         obj.getScore("§a§7§m-------------").setScore(0);
  26.         player.setScoreboard(board);
  27.  
  28.         CloudServer.getInstance().updateNameTags(player);
  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