Skip to content

Commit

Permalink
Expose NetServer currentlyKicking for plugin access
Browse files Browse the repository at this point in the history
  • Loading branch information
BalaM314 authored Jul 15, 2023
1 parent 93daa7a commit 046574d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions core/src/mindustry/core/NetServer.java
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,8 @@ public class NetServer implements ApplicationListener{
private boolean closing = false, pvpAutoPaused = true;
private Interval timer = new Interval(10);
private IntSet buildHealthChanged = new IntSet();
/** Current kick sessions. */
public VoteSession[] currentlyKicking = {null};

private ReusableByteOutStream writeBuffer = new ReusableByteOutStream(127);
private Writes outputBuffer = new Writes(new DataOutputStream(writeBuffer));
Expand Down Expand Up @@ -394,8 +396,6 @@ boolean checkPass(){

//cooldowns per player
ObjectMap<String, Timekeeper> cooldowns = new ObjectMap<>();
//current kick sessions
VoteSession[] currentlyKicking = {null};

clientCommands.<Player>register("votekick", "[player] [reason...]", "Vote to kick a player with a valid reason.", (args, player) -> {
if(!Config.enableVotekick.bool()){
Expand Down

0 comments on commit 046574d

Please sign in to comment.