Removed the string matching code

This commit is contained in:
Jaime Martinez Rincon 2017-06-29 21:37:45 +02:00
parent 0b9c5f5f6b
commit 428e8f38f2
2 changed files with 2 additions and 19 deletions

View File

@ -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");

View File

@ -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