Spigot's 0098-Cap-Channel-Registrations.patch (close #82)
This commit is contained in:
parent
6149fc0c35
commit
5dabc4e42e
@ -1059,6 +1059,7 @@ public class CraftPlayer extends CraftHumanEntity implements Player {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public void addChannel(String channel) {
|
public void addChannel(String channel) {
|
||||||
|
com.google.common.base.Preconditions.checkState( channels.size() < 128, "Too many channels registered" ); // Spigot
|
||||||
if (channels.add(channel)) {
|
if (channels.add(channel)) {
|
||||||
server.getPluginManager().callEvent(new PlayerRegisterChannelEvent(this, channel));
|
server.getPluginManager().callEvent(new PlayerRegisterChannelEvent(this, channel));
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user