Bugfixes
This commit is contained in:
@@ -262,7 +262,7 @@ public class NetServer implements ApplicationListener{
|
||||
}
|
||||
|
||||
boolean checkPass(){
|
||||
if(votes >= votesRequired() && target.isAdded() && target.con.isConnected()){
|
||||
if(votes >= votesRequired()){
|
||||
Call.sendMessage(Strings.format("[orange]Vote passed.[scarlet] {0}[orange] will be banned from the server for {1} minutes.", target.name, (kickDuration/60)));
|
||||
target.getInfo().lastKicked = Time.millis() + kickDuration*1000;
|
||||
playerGroup.all().each(p -> p.uuid != null && p.uuid.equals(target.uuid), p -> p.con.kick(KickReason.vote));
|
||||
|
||||
@@ -36,6 +36,10 @@ public abstract class FlyingUnit extends BaseUnit{
|
||||
|
||||
if(target == null) targetClosestEnemyFlag(BlockFlag.producer);
|
||||
if(target == null) targetClosestEnemyFlag(BlockFlag.turret);
|
||||
|
||||
if(target == null && isCommanded() && getCommand() != UnitCommand.attack){
|
||||
onCommand(getCommand());
|
||||
}
|
||||
}
|
||||
|
||||
if(getClosestSpawner() == null && getSpawner() != null && target == null){
|
||||
|
||||
Reference in New Issue
Block a user