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