1
0
mirror of https://github.com/Anuken/Mindustry.git synced 2024-09-21 13:28:12 +03:00

Ban player ID before IP

This commit is contained in:
Anuken 2021-03-18 12:57:27 -04:00
parent aa7936100e
commit bfa9d65314
5 changed files with 3 additions and 4 deletions

View File

@ -736,8 +736,8 @@ public class NetServer implements ApplicationListener{
logic.skipWave();
info("&lc@ has skipped the wave.", player.name);
}else if(action == AdminAction.ban){
netServer.admins.banPlayerIP(other.con.address);
netServer.admins.banPlayerID(other.con.uuid);
netServer.admins.banPlayerIP(other.con.address);
other.kick(KickReason.banned);
info("&lc@ has banned @.", player.name, other.name);
}else if(action == AdminAction.kick){

View File

@ -419,6 +419,7 @@ public class EventType{
}
public static class PlayerBanEvent{
@Nullable
public final Player player;
public PlayerBanEvent(Player player){
@ -427,6 +428,7 @@ public class EventType{
}
public static class PlayerUnbanEvent{
@Nullable
public final Player player;
public PlayerUnbanEvent(Player player){

View File

@ -3,7 +3,6 @@ package mindustry.graphics;
import arc.*;
import arc.graphics.*;
import arc.graphics.Texture.*;
import arc.graphics.VertexAttributes.*;
import arc.graphics.gl.*;
import arc.math.geom.*;
import arc.util.*;

View File

@ -1,7 +1,6 @@
package mindustry.graphics;
import arc.graphics.*;
import arc.graphics.VertexAttributes.*;
import arc.graphics.g2d.*;
import arc.graphics.gl.*;
import arc.math.*;

View File

@ -1,7 +1,6 @@
package mindustry.graphics.g3d;
import arc.graphics.*;
import arc.graphics.VertexAttributes.*;
import arc.graphics.gl.*;
import arc.math.geom.*;
import mindustry.graphics.g3d.PlanetGrid.*;