updates
This commit is contained in:
parent
48c2fdb257
commit
177eb9b1c2
@ -79,6 +79,7 @@ public class InteractListener implements Listener {
|
||||
break;
|
||||
case CREATE_PARTY:
|
||||
this.plugin.getPartyManager().createParty(player);
|
||||
|
||||
break;
|
||||
case COSMETICS_MENU:
|
||||
// open cosmetics menu
|
||||
|
@ -9,8 +9,6 @@ import rip.tilly.bedwars.utils.CC;
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
import static rip.tilly.bedwars.utils.CC.translate;
|
||||
|
||||
public class ScoreboardProvider implements AssembleAdapter {
|
||||
|
||||
private BedWars main = BedWars.getInstance();
|
||||
@ -41,15 +39,15 @@ public class ScoreboardProvider implements AssembleAdapter {
|
||||
}
|
||||
|
||||
private List<String> spawnScoreboard(PlayerData playerData) {
|
||||
List<String> strings = new ArrayList<>();
|
||||
List<String> lines = new ArrayList<String>();
|
||||
|
||||
strings.add(CC.scoreboardBar);
|
||||
strings.add("&fOnline: &d" + this.main.getServer().getOnlinePlayers().size());
|
||||
strings.add("&fPlaying: &d");
|
||||
strings.add(" ");
|
||||
lines.add(CC.scoreboardBar);
|
||||
lines.add("&fOnline: &d" + this.main.getServer().getOnlinePlayers().size());
|
||||
lines.add("&fPlaying: &d");
|
||||
lines.add(" ");
|
||||
|
||||
if (true) {
|
||||
strings.add("&fLevel: &d" + playerData.getLevel());
|
||||
lines.add("&fLevel: &d" + playerData.getLevel());
|
||||
|
||||
String finishedProgress = "";
|
||||
|
||||
@ -69,13 +67,31 @@ public class ScoreboardProvider implements AssembleAdapter {
|
||||
leftOverProgress += "⬛";
|
||||
}
|
||||
|
||||
strings.add("&8" + finishedProgress + "&7" + leftOverProgress + " &7(" + ((int) (playerData.getXp() * 100)) + "%&7)");
|
||||
strings.add(" ");
|
||||
lines.add("&8" + finishedProgress + "&7" + leftOverProgress + " &7(" + ((int) (playerData.getXp() * 100)) + "%&7)");
|
||||
lines.add(" ");
|
||||
}
|
||||
|
||||
strings.add("&dtilly.rip");
|
||||
strings.add(CC.scoreboardBar);
|
||||
lines.add("&dtilly.rip");
|
||||
lines.add(CC.scoreboardBar);
|
||||
|
||||
return translate(strings);
|
||||
return CC.translate(lines);
|
||||
}
|
||||
|
||||
private List<String> playingScoreboard(PlayerData playerData) {
|
||||
List<String> lines = new ArrayList<String>();
|
||||
|
||||
lines.add(CC.scoreboardBar);
|
||||
lines.add(CC.scoreboardBar);
|
||||
|
||||
return CC.translate(lines);
|
||||
}
|
||||
|
||||
private List<String> spectatingScoreboard(PlayerData playerData) {
|
||||
List<String> lines = new ArrayList<String>();
|
||||
|
||||
lines.add(CC.scoreboardBar);
|
||||
lines.add(CC.scoreboardBar);
|
||||
|
||||
return CC.translate(lines);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user