simplified BanEvasion
This commit is contained in:
1 parent
0800793e64
commit
6590513d56
10 files changed
+455
-531
No files matched your search
+3
-2
@@ -6,6 +6,7 @@ import eu.mhsl.craftattack.spawn.core.api.server.HttpServer;
|
||||
import eu.mhsl.craftattack.spawn.core.appliance.Appliance;
|
||||
import eu.mhsl.craftattack.spawn.core.database.Database;
|
||||
import eu.mhsl.craftattack.spawn.core.event.LoginAttemptRecordedEvent;
|
||||
import eu.mhsl.craftattack.spawn.core.event.SpawnEvent;
|
||||
import eu.mhsl.craftattack.spawn.core.util.network.Networks;
|
||||
import eu.mhsl.craftattack.spawn.core.util.server.Floodgate;
|
||||
import net.kyori.adventure.text.Component;
|
||||
@@ -126,8 +127,8 @@ public class LoginLog extends Appliance {
|
||||
id = keys.getLong(1);
|
||||
}
|
||||
}
|
||||
Bukkit.getPluginManager().callEvent(new LoginAttemptRecordedEvent(new LoginAttemptRecordedEvent.RecordedAttempt(
|
||||
id, attempt.at(), attempt.uuid(), attempt.name(), attempt.ip(), network, attempt.stage(), attempt.result()
|
||||
SpawnEvent.call(new LoginAttemptRecordedEvent(new LoginAttemptRecordedEvent.RecordedAttempt(
|
||||
id, attempt.at(), attempt.uuid(), attempt.name(), network, attempt.stage(), attempt.result()
|
||||
)));
|
||||
});
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user