finish up player converter

This commit is contained in:
2021-12-14 23:03:58 +04:00
parent a5d0613c69
commit 562e8ff014
7 changed files with 81 additions and 18 deletions

View File

@@ -11,17 +11,26 @@ public class Messages {
&2&m &2&m &2&m &2&m &2&m &2&m &2&m &2&m &2&m &2&m &2&m &2&m &2&m &2&m &2&m &2&m &2&m &2&m &2&m &2&m &2&m &2&m &2&m &2&m &2&m &2&m &2&m &2&m &2&m &2&m &2&m &2&m &2&m &2&m &2&m &2&m &2&m &2&m &2&m &2&m &2&m &2&m &2&m &2&m &2&m &2&m &2&m &2&m &2&m &2&m &2&m &2&m\040\040\040\040\040\040\040\040\040\040\040\040\040\040\040\040\040\040\040
&6- &a&lGovindas Limework&6 -
&c&oYour connection has failed to authenticate and cracked mode was enabled!
&c[&oIssue was detected in your last connection&c]
&c&ofailed to authenticate and offline mode (Cracked) was enabled for next 48 Hours!
&7&o This could happen because:
1. Mojang / Microsoft api is down\040\040\040\040\040\040\040\040\040
2. Using cracked minecraft (if you are using cracked Minecraft please relog!)
2. Disconnecting when connection to a server faster!
3. Using cracked minecraft (if you are using cracked Minecraft please reconnect!
&6If this a mistake and you own a Minecraft account\040
&cPlease connect to &a&lreset.limework.net\040\040
&7&oPro tip: use Direct connection
&2&m &2&m &2&m &2&m &2&m &2&m &2&m &2&m &2&m &2&m &2&m &2&m &2&m &2&m &2&m &2&m &2&m &2&m &2&m &2&m &2&m &2&m &2&m &2&m &2&m &2&m &2&m &2&m &2&m &2&m &2&m &2&m &2&m &2&m &2&m &2&m &2&m &2&m &2&m &2&m &2&m &2&m &2&m &2&m &2&m &2&m &2&m &2&m &2&m &2&m &2&m &2&m""".replace("&", "§");
public final static String RESET_MESSAGE = """
&2&m &2&m &2&m &2&m &2&m &2&m &2&m &2&m &2&m &2&m &2&m &2&m &2&m &2&m &2&m &2&m &2&m &2&m &2&m &2&m &2&m &2&m &2&m &2&m &2&m &2&m &2&m &2&m &2&m &2&m &2&m &2&m &2&m &2&m &2&m &2&m &2&m &2&m &2&m &2&m &2&m &2&m &2&m &2&m &2&m &2&m &2&m &2&m &2&m &2&m &2&m &2&m
&6- &a&lGovindas Limework&6 -
&aOffline mode has been disabled &l✔
&cNow try reconnecting to server now!
&2&m &2&m &2&m &2&m &2&m &2&m &2&m &2&m &2&m &2&m &2&m &2&m &2&m &2&m &2&m &2&m &2&m &2&m &2&m &2&m &2&m &2&m &2&m &2&m &2&m &2&m &2&m &2&m &2&m &2&m &2&m &2&m &2&m &2&m &2&m &2&m &2&m &2&m &2&m &2&m &2&m &2&m &2&m &2&m &2&m &2&m &2&m &2&m &2&m &2&m &2&m &2&m""".replace("&", "§");
}

View File

@@ -21,6 +21,11 @@ public class PlayerNamesUtils {
if (username.length() >= 16) {
username = username.substring(0, 15);
}
if (configuration.useTheContainMethod() && !username.contains(configuration.getCrackedCharString())) {
username = configuration.getCrackedChar() + username;
} else if (username.charAt(0) != configuration.getCrackedChar()) {
username = configuration.getCrackedChar() + username;
}
return username;
}

View File

@@ -11,6 +11,8 @@ public interface Configuration {
AntiBot getAntiBot();
String getResetDomain();

View File

@@ -5,5 +5,6 @@
"simple-anti-bot": {
"max-connections": 590,
"reset": 10
}
},
"reset-domain": "reset.limework.net"
}

View File

@@ -8,7 +8,7 @@
# Warning: if you put more than 1 character it will use the first one and the rest is ignored.
default-cracked-char: "-"
# its recommended being true -ham1255
# if the cracked player name is like this
# Ham 1255 system will convert it to Ham_1255
# Default: true
@@ -19,13 +19,14 @@ replace-spaces-with-underscore: true
# I don't recommend using this. -ham1255
# Example:
# true: when joining it checks the whole username if it has Cracked character or not!
# so Players who has - in middle or else like this:
# so Players who have - in middle or else like this:
# [ Ham-1255 Ham1255- Ha-m1255 -Ham1255 ] will work
# in java syntax: .contains(DEFAULT_CRACKED_CHAR)
# false: when joining it checks the first character if its
# false: when joining it checks the first character if its equals default cracked char
# in java syntax .chatAt(0) == DEFAULT_CRACKED_CHAR
use-the-contain-method: false
# Just simple anti bot
# Just a simple anti bot
# example:
# when a player joins a server it makes request to mojang api which has 600 per 10 minutes
# if the server reach's the limits players can no longer join + possibility of getting banned by mojang api for a day!