class GovindasPreSecondAttemptEvent to LimePreLoginSecondAttemptEvent
This commit is contained in:
parent
b8a734a80e
commit
3d255be565
@ -0,0 +1,55 @@
|
||||
From c9c01ec47ebcf745765f9c086083315fb791e170 Mon Sep 17 00:00:00 2001
|
||||
From: mohammed jasem alaajel <34905970+ham1255@users.noreply.github.com>
|
||||
Date: Wed, 16 Jun 2021 18:43:32 +0400
|
||||
Subject: [PATCH] renamed class GovindasPreSecondAttemptEvent to
|
||||
LimePreLoginSecondAttemptEvent
|
||||
|
||||
|
||||
diff --git a/core/src/main/java/com/github/games647/fastlogin/core/shared/JoinManagement.java b/core/src/main/java/com/github/games647/fastlogin/core/shared/JoinManagement.java
|
||||
index 3f05090..099df66 100644
|
||||
--- a/core/src/main/java/com/github/games647/fastlogin/core/shared/JoinManagement.java
|
||||
+++ b/core/src/main/java/com/github/games647/fastlogin/core/shared/JoinManagement.java
|
||||
@@ -34,7 +34,7 @@ import com.github.games647.fastlogin.core.shared.event.FastLoginPreLoginEvent;
|
||||
|
||||
import java.util.Optional;
|
||||
|
||||
-import com.github.games647.fastlogin.core.shared.event.GovindasPreSecondAttemptEvent;
|
||||
+import com.github.games647.fastlogin.core.shared.event.LimePreLoginSecondAttemptEvent;
|
||||
import net.md_5.bungee.api.ProxyServer;
|
||||
import org.geysermc.floodgate.api.player.FloodgatePlayer;
|
||||
|
||||
@@ -83,7 +83,7 @@ public abstract class JoinManagement<P extends C, C, S extends LoginSource> {
|
||||
} else {
|
||||
if (core.getPendingLogin().remove(ip + username) != null && config.get("secondAttemptCracked", false)) {
|
||||
// LimeLogin start
|
||||
- GovindasPreSecondAttemptEvent event = new GovindasPreSecondAttemptEvent(ip, username);
|
||||
+ LimePreLoginSecondAttemptEvent event = new LimePreLoginSecondAttemptEvent(ip, username);
|
||||
ProxyServer.getInstance().getPluginManager().callEvent(event);
|
||||
if (!event.isCancelled()) {
|
||||
core.getPlugin().getLog().info("Second attempt login -> cracked {}", username);
|
||||
diff --git a/core/src/main/java/com/github/games647/fastlogin/core/shared/event/GovindasPreSecondAttemptEvent.java b/core/src/main/java/com/github/games647/fastlogin/core/shared/event/LimePreLoginSecondAttemptEvent.java
|
||||
similarity index 78%
|
||||
rename from core/src/main/java/com/github/games647/fastlogin/core/shared/event/GovindasPreSecondAttemptEvent.java
|
||||
rename to core/src/main/java/com/github/games647/fastlogin/core/shared/event/LimePreLoginSecondAttemptEvent.java
|
||||
index 5ac3cc9..1f9807d 100644
|
||||
--- a/core/src/main/java/com/github/games647/fastlogin/core/shared/event/GovindasPreSecondAttemptEvent.java
|
||||
+++ b/core/src/main/java/com/github/games647/fastlogin/core/shared/event/LimePreLoginSecondAttemptEvent.java
|
||||
@@ -4,13 +4,13 @@ package com.github.games647.fastlogin.core.shared.event;
|
||||
import net.md_5.bungee.api.plugin.Cancellable;
|
||||
import net.md_5.bungee.api.plugin.Event;
|
||||
|
||||
-public class GovindasPreSecondAttemptEvent extends Event implements Cancellable {
|
||||
+public class LimePreLoginSecondAttemptEvent extends Event implements Cancellable {
|
||||
|
||||
private final String ip;
|
||||
private final String username;
|
||||
private boolean cancelled;
|
||||
|
||||
- public GovindasPreSecondAttemptEvent(String ip, String username) {
|
||||
+ public LimePreLoginSecondAttemptEvent(String ip, String username) {
|
||||
this.ip = ip;
|
||||
this.username = username;
|
||||
}
|
||||
--
|
||||
2.32.0.windows.1
|
||||
|
Reference in New Issue
Block a user