Removed "on" prefix from all remote methods
This commit is contained in:
@@ -138,7 +138,7 @@ public class Net{
|
||||
*/
|
||||
public void closeServer(){
|
||||
for(NetConnection con : getConnections()){
|
||||
Call.onKick(con, KickReason.serverClose);
|
||||
Call.kick(con, KickReason.serverClose);
|
||||
}
|
||||
|
||||
provider.closeServer();
|
||||
|
||||
@@ -46,7 +46,7 @@ public abstract class NetConnection{
|
||||
info.lastKicked = Math.max(Time.millis() + 30 * 1000, info.lastKicked);
|
||||
}
|
||||
|
||||
Call.onKick(this, reason);
|
||||
Call.kick(this, reason);
|
||||
|
||||
Time.runTask(2f, this::close);
|
||||
|
||||
@@ -66,7 +66,7 @@ public abstract class NetConnection{
|
||||
info.timesKicked++;
|
||||
info.lastKicked = Math.max(Time.millis() + kickDuration, info.lastKicked);
|
||||
|
||||
Call.onKick(this, reason);
|
||||
Call.kick(this, reason);
|
||||
|
||||
Time.runTask(2f, this::close);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user