daily pastebin goal
29%
SHARE
TWEET

Untitled

CuzImFl4mer Feb 19th, 2019 56 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. package de.CuzImFl4mer.scoreboard;
  2.  
  3. import org.bukkit.Bukkit;
  4. import org.bukkit.entity.Player;
  5. import org.bukkit.scheduler.BukkitRunnable;
  6. import org.bukkit.scoreboard.DisplaySlot;
  7. import org.bukkit.scoreboard.Objective;
  8. import org.bukkit.scoreboard.Scoreboard;
  9. import org.bukkit.scoreboard.Team;
  10.  
  11. public class ScoreAPI {
  12.    
  13.     public static void setScoreboard(Player p) {
  14.         Scoreboard sb = Bukkit.getScoreboardManager().getNewScoreboard();
  15.         Objective obj = sb.getObjective("aaa");
  16.         if(obj == null) {
  17.             obj = sb.registerNewObjective("aaa", "bbb");
  18.         }
  19.        
  20.         obj.setDisplayName("§4§k§lii§6§6" + p.getName() + "§4§k§lii");
  21.         obj.setDisplaySlot(DisplaySlot.SIDEBAR);
  22.        
  23.         obj.getScore("§a ").setScore(11);
  24.         obj.getScore("§6Dein Rang:").setScore(10);
  25.        
  26.         if (p.hasPermission("Owner")) {
  27.             obj.getScore("§8>> §4Owner").setScore(9);
  28.         } else if (p.hasPermission("sradmin")) {
  29.             obj.getScore("§8>> §4SrAdmin").setScore(9);
  30.         } else if (p.hasPermission("admin")) {
  31.             obj.getScore("§8>> §4Admin").setScore(9);
  32.         } else if (p.hasPermission("dev")) {
  33.             obj.getScore("§8>> §cDev").setScore(9);
  34.         } else if (p.hasPermission("b")) {
  35.             obj.getScore("§8>> §2B").setScore(9);
  36.         } else if (p.hasPermission("tb")) {
  37.             obj.getScore("§8>> §2TB").setScore(9);
  38.         } else if (p.hasPermission("supp")) {
  39.             obj.getScore("§8>> §3Supp").setScore(9); 
  40.         } else if (p.hasPermission("tsupp")) {
  41.             obj.getScore("§8>> §3TSupp").setScore(9);
  42.         } else if (p.hasPermission("helfer")) {
  43.             obj.getScore("§8>> §dHelfer").setScore(9);               
  44.         } else if (p.hasPermission("YT+")) {
  45.             obj.getScore("§8>> §5YT§4+").setScore(9);
  46.         } else if (p.hasPermission("YT")) {
  47.             obj.getScore("§8>> §5YT").setScore(9);
  48.         } else if (p.hasPermission("spo+")) {
  49.             obj.getScore("§8>> §9Spo+").setScore(9);
  50.         } else if (p.hasPermission("spo")) {
  51.             obj.getScore("§8>> §9Spo").setScore(9);
  52.         } else if (p.hasPermission("e")) {
  53.             obj.getScore("§8>> §aE").setScore(9);
  54.         } else if (p.hasPermission("dia")) {
  55.             obj.getScore("§8>> §bDia").setScore(9);
  56.         } else if (p.hasPermission("p+")) {
  57.             obj.getScore("§8>> §6P§4+").setScore(9);
  58.         } else if (p.hasPermission("p")) {
  59.             obj.getScore("§8>> §6P").setScore(9);
  60.         } else if (p.hasPermission("vip")) {
  61.             obj.getScore("§8>> §eVip").setScore(9);
  62.         } else {
  63.             obj.getScore("§8>> §7Spieler").setScore(9);
  64.         }
  65.        
  66.         obj.getScore("§a ").setScore(8);
  67.         obj.getScore("§6Dein Geld:").setScore(7);
  68.         obj.getScore("§8>> §b").setScore(6);
  69.         obj.getScore("§c ").setScore(5);
  70.         obj.getScore("§6Onlinezeit").setScore(4);
  71.         obj.getScore("§8>> §b0h").setScore(3);
  72.         obj.getScore("§d ").setScore(2);
  73.         obj.getScore("§6Discord:").setScore(1);
  74.         obj.getScore("§8>> §bDiscord,Minijoshi.de").setScore(0);
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