Change int parameters to long type (#5008)
This commit is contained in:
@@ -223,7 +223,7 @@ abstract class PlayerComp implements UnitController, Entityc, Syncc, Timerc, Dra
|
|||||||
con.kick(reason);
|
con.kick(reason);
|
||||||
}
|
}
|
||||||
|
|
||||||
void kick(String reason, int duration){
|
void kick(String reason, long duration){
|
||||||
con.kick(reason, duration);
|
con.kick(reason, duration);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -62,7 +62,7 @@ public abstract class NetConnection{
|
|||||||
}
|
}
|
||||||
|
|
||||||
/** Kick with an arbitrary reason, and a kick duration in milliseconds. */
|
/** Kick with an arbitrary reason, and a kick duration in milliseconds. */
|
||||||
public void kick(String reason, int kickDuration){
|
public void kick(String reason, long kickDuration){
|
||||||
if(kicked) return;
|
if(kicked) return;
|
||||||
|
|
||||||
Log.info("Kicking connection @; Reason: @", address, reason.replace("\n", " "));
|
Log.info("Kicking connection @; Reason: @", address, reason.replace("\n", " "));
|
||||||
|
|||||||
Reference in New Issue
Block a user