1
0
forked from xjboss/KCauldronX

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.
This commit is contained in:
Sergey Shatunov 2016-01-05 02:00:44 +07:00
parent 90386d0abf
commit 955af15697

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