mirror of
https://github.com/Anuken/Mindustry.git
synced 2024-11-11 03:31:19 +03:00
Ban player ID before IP
This commit is contained in:
parent
aa7936100e
commit
bfa9d65314
@ -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){
|
||||
|
@ -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){
|
||||
|
@ -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.*;
|
||||
|
@ -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.*;
|
||||
|
@ -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.*;
|
||||
|
Loading…
Reference in New Issue
Block a user