Fixed typo in findip command / Tweaks to kicking criteria
This commit is contained in:
@@ -172,12 +172,12 @@ public class NetServer extends Module{
|
|||||||
TraceInfo info = admins.getTrace(Net.getConnection(id).address);
|
TraceInfo info = admins.getTrace(Net.getConnection(id).address);
|
||||||
Weapon weapon = (Weapon)Upgrade.getByID(packet.weaponid);
|
Weapon weapon = (Weapon)Upgrade.getByID(packet.weaponid);
|
||||||
|
|
||||||
float wtrc = 60;
|
float wtrc = 80;
|
||||||
|
|
||||||
if(!Timers.get("fastshoot-" + id + "-" + weapon.id, wtrc)){
|
if(!Timers.get("fastshoot-" + id + "-" + weapon.id, wtrc)){
|
||||||
info.fastShots.getAndIncrement(weapon.id, 0, 1);
|
info.fastShots.getAndIncrement(weapon.id, 0, 1);
|
||||||
|
|
||||||
if(info.fastShots.get(weapon.id, 0) > (int)(wtrc / (weapon.getReload() / 2f)) + 2){
|
if(info.fastShots.get(weapon.id, 0) > (int)(wtrc / (weapon.getReload() / 2f)) + 6){
|
||||||
kick(id, KickReason.kick);
|
kick(id, KickReason.kick);
|
||||||
}
|
}
|
||||||
}else{
|
}else{
|
||||||
|
|||||||
@@ -592,7 +592,7 @@ public class ServerControl extends Module {
|
|||||||
}
|
}
|
||||||
Log.info("&lcUse the info command to examine each person individually.");
|
Log.info("&lcUse the info command to examine each person individually.");
|
||||||
}else{
|
}else{
|
||||||
info("Nobody with that name could be found.");
|
info("Nobody with that IP could be found.");
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user