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.kcx-1614
parent
90386d0abf
commit
955af15697
|
@ -452,7 +452,7 @@ public final class CraftServer implements Server {
|
|||
|
||||
@Override
|
||||
public List<CraftPlayer> getOnlinePlayers() {
|
||||
return this.playerView;
|
||||
return ImmutableList.copyOf(this.playerView);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
Loading…
Reference in New Issue