sub-project rename, added velocity (unfihsed) + config api and the velocity implemntation of the config
This commit is contained in:
27
gal-api/src/main/java/net/limework/gal/utils/Messages.java
Normal file
27
gal-api/src/main/java/net/limework/gal/utils/Messages.java
Normal file
@@ -0,0 +1,27 @@
|
||||
package net.limework.gal.utils;
|
||||
|
||||
/**
|
||||
* @since 1.0.0
|
||||
*
|
||||
* @// TODO: 12/14/21 move the messages into A Config file in yaml or json
|
||||
*/
|
||||
public class Messages {
|
||||
//
|
||||
public final static String FAILED_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\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!
|
||||
|
||||
&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!)
|
||||
|
||||
&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("&", "§");
|
||||
|
||||
|
||||
|
||||
}
|
||||
@@ -0,0 +1,18 @@
|
||||
package net.limework.gal.utils.config;
|
||||
|
||||
import java.util.concurrent.TimeUnit;
|
||||
|
||||
public record AntiBot(int maxConnections, long reset, TimeUnit resetUnit) {
|
||||
|
||||
public int getMaxConnections() {
|
||||
return maxConnections;
|
||||
}
|
||||
|
||||
public long getReset() {
|
||||
return reset;
|
||||
}
|
||||
|
||||
public TimeUnit getResetUnit() {
|
||||
return resetUnit;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,13 @@
|
||||
package net.limework.gal.utils.config;
|
||||
|
||||
public interface Configuration {
|
||||
|
||||
String getCrackedChar();
|
||||
|
||||
|
||||
AntiBot getAntiBot();
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
7
gal-api/src/main/resources/config.json
Normal file
7
gal-api/src/main/resources/config.json
Normal file
@@ -0,0 +1,7 @@
|
||||
{
|
||||
"default-cracked-char": "-",
|
||||
"simple-anti-bot": {
|
||||
"max-connections" : 590,
|
||||
"reset" : 10
|
||||
}
|
||||
}
|
||||
16
gal-api/src/main/resources/config.yaml
Normal file
16
gal-api/src/main/resources/config.yaml
Normal file
@@ -0,0 +1,16 @@
|
||||
# This message handles what type of char the system should use
|
||||
# like if its - Cracked players will have it in the name
|
||||
# example:
|
||||
# Ham1255 is a cracked player want to join mc.limework.net
|
||||
# when system checks if he is cracked then if the name does not contain -
|
||||
# system will replace the name to -Ham1255
|
||||
default-cracked-char: "-"
|
||||
|
||||
|
||||
# Just simple anti bot
|
||||
# example:
|
||||
# when a player joins a server it makes request to mojang api which has 600 per 10 mins
|
||||
# if the server reach's the limits players can no longer join + possibility of getting banned by mojang api for a day!
|
||||
simple-anti-bot:
|
||||
max-connections: 590
|
||||
reset: 10
|
||||
Reference in New Issue
Block a user