File tree Expand file tree Collapse file tree 3 files changed +9
-5
lines changed
src/main/java/net/elytrium/limbofilter/listener Expand file tree Collapse file tree 3 files changed +9
-5
lines changed Original file line number Diff line number Diff line change 1- 1.1.11
1+ 1.1.12
Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ plugins {
99}
1010
1111setGroup(" net.elytrium" )
12- setVersion(" 1.1.11 " )
12+ setVersion(" 1.1.12 " )
1313
1414compileJava {
1515 getOptions(). setEncoding(" UTF-8" )
Original file line number Diff line number Diff line change 2424import com .velocitypowered .api .event .proxy .ProxyPingEvent ;
2525import com .velocitypowered .api .event .query .ProxyQueryEvent ;
2626import com .velocitypowered .api .proxy .Player ;
27+ import java .net .InetSocketAddress ;
2728import net .elytrium .limboapi .api .event .LoginLimboRegisterEvent ;
2829import net .elytrium .limbofilter .LimboFilter ;
2930import net .elytrium .limbofilter .Settings ;
@@ -49,9 +50,12 @@ public void onProxyConnect(PreLoginEvent event) {
4950
5051 @ Subscribe
5152 public void onProxyDisconnect (DisconnectEvent event ) {
52- Statistics statistics = this .plugin .getStatistics ();
53- if (statistics != null ) {
54- statistics .removeAddress (event .getPlayer ().getRemoteAddress ().getAddress ());
53+ InetSocketAddress address = event .getPlayer ().getRemoteAddress ();
54+ if (address != null ) {
55+ Statistics statistics = this .plugin .getStatistics ();
56+ if (statistics != null ) {
57+ statistics .removeAddress (address .getAddress ());
58+ }
5559 }
5660 }
5761
You can’t perform that action at this time.
0 commit comments