Skip to content

Commit 700c55e

Browse files
committed
オフラインのプレイヤーは無効 観戦者として扱いにする
1 parent fbdd194 commit 700c55e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/main/java/com/github/elic0de/hungergames/game/HungerGame.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -211,6 +211,7 @@ public boolean checkTeamDead(GameUser user) {
211211
if (getUserTeam(user).isPresent()) {
212212
final Team team = getUserTeam(user).get();
213213
for (String name : team.getEntries()) {
214+
if (Bukkit.getPlayer(name) == null) continue;
214215
if (deadPlayers.contains(name)) continue;
215216
return false;
216217
}

0 commit comments

Comments
 (0)