Skip to content

Commit 1ff866c

Browse files
fix: Fix intent registration
Signed-off-by: ByteExceptionM <git@byteexception.eu>
1 parent f2898b6 commit 1ff866c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

bungee/src/main/java/ls/ni/networkfilter/bungee/listeners/PostLoginListener.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,10 +54,10 @@ public void onEvent(PostLoginEvent event) {
5454
return;
5555
}
5656

57+
event.registerIntent(this.plugin);
58+
5759
this.plugin.getProxy().getScheduler().runAsync(this.plugin, () -> {
5860
try {
59-
event.registerIntent(this.plugin);
60-
6161
NetworkFilterResult result = NetworkFilterCommon.getInstance().check(address);
6262

6363
if (!result.blocked()) {

0 commit comments

Comments
 (0)