mirror of
https://github.com/BGHDDevelopment/PlayerBalancer.git
synced 2024-09-19 03:01:18 +02:00
Removed the string matching code
This commit is contained in:
parent
0b9c5f5f6b
commit
428e8f38f2
@ -23,7 +23,7 @@ import java.io.IOException;
|
||||
import java.util.logging.Level;
|
||||
|
||||
public class LobbyBalancer extends Plugin {
|
||||
private static final int LAST_VER_CONFIG_UPDATE = 20950;
|
||||
private static final int LAST_VER_CONFIG_UPDATE = 20950000;
|
||||
|
||||
@Getter private ConfigFactory factory;
|
||||
@Getter private boolean failed = false;
|
||||
@ -58,7 +58,7 @@ public class LobbyBalancer extends Plugin {
|
||||
getProxy().getPluginManager().registerCommand(this, mainCommand);
|
||||
|
||||
String text = ConfigEntries.CONFIG_VERSION.get();
|
||||
int configVersion = DigitUtils.getDigits(text, 5);
|
||||
int configVersion = DigitUtils.getDigits(text, 8);
|
||||
if (configVersion < LAST_VER_CONFIG_UPDATE) {
|
||||
failed = true;
|
||||
throw new IllegalStateException("Your config is outdated, please reset it and configure it again");
|
||||
|
@ -91,23 +91,6 @@ settings:
|
||||
rules:
|
||||
'section-from': 'section-to'
|
||||
|
||||
# This will determine how the plugin if a string matches other string
|
||||
string-matcher:
|
||||
# Matches when the string is like the other string
|
||||
# ? for one character, * for any number of characters
|
||||
wildcard: true
|
||||
|
||||
# Matches when the string contains the other string
|
||||
contains: false
|
||||
|
||||
# Matches when the string matches the pattern of the other string
|
||||
regex: false
|
||||
|
||||
# Matches when both strings are very similar
|
||||
# See https://en.wikipedia.org/wiki/Levenshtein_distance
|
||||
# Set to 100 to disable it, or other value to match when the result is higher than it
|
||||
similar: 100
|
||||
|
||||
# This will reload the plugin every time you execute /greload
|
||||
auto-reload: true
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user