mirror of
https://github.com/CarmJos/cn2b2t-project.git
synced 2024-09-19 22:05:45 +00:00
修复积分板不更新的问题
This commit is contained in:
parent
ff15f54427
commit
4089a5cb3f
@ -27,7 +27,7 @@ public class ScoreboardListener implements Listener {
|
||||
}
|
||||
|
||||
public static void addScoreboard(Player p) {
|
||||
ScoreboardManager sm = new ScoreboardManager(p, "§f生存 §8| §6§lCN2B2T");
|
||||
ScoreboardManager sm = new ScoreboardManager(p, "§f生存 §8| §6§lcn2b2t");
|
||||
sm.create();
|
||||
ScoreboardManager.scoreboards.put(p, sm);
|
||||
|
||||
@ -36,7 +36,7 @@ public class ScoreboardListener implements Listener {
|
||||
new BukkitRunnable() {
|
||||
@Override
|
||||
public void run() {
|
||||
if (!p.isOnline() || !ProfileData.get(p).showScoreboard) {
|
||||
if (!p.isOnline() || (ProfileData.get(p) != null && !ProfileData.get(p).showScoreboard)) {
|
||||
cancel();
|
||||
}
|
||||
if (ScoreboardManager.scoreboards.containsKey(p)) {
|
||||
@ -50,7 +50,7 @@ public class ScoreboardListener implements Listener {
|
||||
new BukkitRunnable() {
|
||||
@Override
|
||||
public void run() {
|
||||
if (p == null || !p.isOnline() || ProfileData.get(p) != null || !ProfileData.get(p).showScoreboard) {
|
||||
if (p == null || !p.isOnline() || (ProfileData.get(p) != null && !ProfileData.get(p).showScoreboard)) {
|
||||
cancel();
|
||||
}
|
||||
if (ScoreboardManager.scoreboards.containsKey(p)) {
|
||||
|
Loading…
Reference in New Issue
Block a user