Skip to content

Commit 428e8f3

Browse files
committed
Removed the string matching code
1 parent 0b9c5f5 commit 428e8f3

File tree

2 files changed

+2
-19
lines changed

2 files changed

+2
-19
lines changed

src/main/java/me/jaimemartz/lobbybalancer/LobbyBalancer.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
import java.util.logging.Level;
2424

2525
public class LobbyBalancer extends Plugin {
26-
private static final int LAST_VER_CONFIG_UPDATE = 20950;
26+
private static final int LAST_VER_CONFIG_UPDATE = 20950000;
2727

2828
@Getter private ConfigFactory factory;
2929
@Getter private boolean failed = false;
@@ -58,7 +58,7 @@ private void enable() {
5858
getProxy().getPluginManager().registerCommand(this, mainCommand);
5959

6060
String text = ConfigEntries.CONFIG_VERSION.get();
61-
int configVersion = DigitUtils.getDigits(text, 5);
61+
int configVersion = DigitUtils.getDigits(text, 8);
6262
if (configVersion < LAST_VER_CONFIG_UPDATE) {
6363
failed = true;
6464
throw new IllegalStateException("Your config is outdated, please reset it and configure it again");

src/main/resources/config.yml

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -91,23 +91,6 @@ settings:
9191
rules:
9292
'section-from': 'section-to'
9393

94-
# This will determine how the plugin if a string matches other string
95-
string-matcher:
96-
# Matches when the string is like the other string
97-
# ? for one character, * for any number of characters
98-
wildcard: true
99-
100-
# Matches when the string contains the other string
101-
contains: false
102-
103-
# Matches when the string matches the pattern of the other string
104-
regex: false
105-
106-
# Matches when both strings are very similar
107-
# See https://en.wikipedia.org/wiki/Levenshtein_distance
108-
# Set to 100 to disable it, or other value to match when the result is higher than it
109-
similar: 100
110-
11194
# This will reload the plugin every time you execute /greload
11295
auto-reload: true
11396

0 commit comments

Comments
 (0)