Advertisement
Guest User

Untitled

a guest
Feb 27th, 2020
106
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.00 KB | None | 0 0
  1. /* */ package net.fateuhc.plugin.holograms;
  2. /* */
  3. /* */ import net.fateuhc.plugin.UHC;
  4. /* */ import net.fateuhc.plugin.utilties.uhc.Manager;
  5. /* */
  6. /* */
  7. /* */
  8. /* */
  9. /* */ public class HologramsManager
  10. /* */ extends Manager
  11. /* */ {
  12. /* */ private UHCHologram winsHologram;
  13. /* */ private UHCHologram killsHologram;
  14. /* */ private UHCHologram pointsHologram;
  15. /* */
  16. /* 16 */ public void setWinsHologram(UHCHologram winsHologram) { this.winsHologram = winsHologram; } public void setKillsHologram(UHCHologram killsHologram) { this.killsHologram = killsHologram; } public void setPointsHologram(UHCHologram pointsHologram) { this.pointsHologram = pointsHologram; }
  17. /* */
  18. /* */
  19. /* 19 */ public UHCHologram getWinsHologram() { return this.winsHologram; } public UHCHologram getKillsHologram() { return this.killsHologram; } public UHCHologram getPointsHologram() { return this.pointsHologram; }
  20. /* */
  21. /* */
  22. /* 22 */ public HologramsManager(UHC plugin) { super(plugin); }
  23. /* */
  24. /* */
  25. /* */ public void loadHolograms() {
  26. /* 26 */ if (this.plugin.getServer().getPluginManager().getPlugin("HologramAPI") == null)
  27. /* */ return;
  28. /* 28 */ this.winsHologram = new UHCHologram("WINS", this.plugin.getLeaderboardsManager().getLeaderboardByValue("wins"));
  29. /* */
  30. /* 30 */ this.pointsHologram = new UHCHologram("POINTS", this.plugin.getLeaderboardsManager().getLeaderboardByValue("points"));
  31. /* */ }
  32. /* */
  33. /* */ public void updateHolograms() {
  34. /* 34 */ if (this.plugin.getServer().getPluginManager().getPlugin("HologramAPI") == null)
  35. /* */ return;
  36. /* 36 */ this.winsHologram.reloadHolograms();
  37. /* 37 */ this.pointsHologram.reloadHolograms();
  38. /* */ }
  39. /* */ }
  40.  
  41.  
  42. /* Location: C:\Users\gamin\Downloads\FateUHC.jar!\net\fateuhc\plugin\holograms\HologramsManager.class
  43. * Java compiler version: 8 (52.0)
  44. * JD-Core Version: 1.0.7
  45. */
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement