1
0
Fork 0

Make Server.getOnlinePlayers returns immutable collection, like it said

in docs. This is also fix crash with /stop and /restart commands while
any players had been online.
kcx-1614
Sergey Shatunov 2016-01-05 02:00:44 +07:00
parent 90386d0abf
commit 955af15697
1 changed files with 1 additions and 1 deletions

View File

@ -452,7 +452,7 @@ public final class CraftServer implements Server {
@Override
public List<CraftPlayer> getOnlinePlayers() {
return this.playerView;
return ImmutableList.copyOf(this.playerView);
}
@Override