forked from LogBlock/LogBlock
Compare commits
3 Commits
add_postgr
...
version/1.
Author | SHA1 | Date | |
---|---|---|---|
edcde2f9b2 | |||
b89e863054 | |||
7c6b756f18 |
6
pom.xml
6
pom.xml
@ -48,7 +48,7 @@
|
||||
<dependency>
|
||||
<groupId>com.sk89q.worldedit</groupId>
|
||||
<artifactId>worldedit-bukkit</artifactId>
|
||||
<version>7.1.0-SNAPSHOT</version>
|
||||
<version>7.2.16-SNAPSHOT</version>
|
||||
<scope>provided</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
@ -76,8 +76,8 @@
|
||||
<url>https://hub.spigotmc.org/nexus/content/repositories/snapshots/</url>
|
||||
</repository>
|
||||
<repository>
|
||||
<id>sk89q-repo</id>
|
||||
<url>https://maven.sk89q.com/repo/</url>
|
||||
<id>enginehub-repo</id>
|
||||
<url>https://maven.enginehub.org/repo/</url>
|
||||
</repository>
|
||||
<repository>
|
||||
<id>brokkonaut-repo</id>
|
||||
|
@ -691,16 +691,20 @@ public final class QueryParams implements Cloneable {
|
||||
if (values.length < 1) {
|
||||
throw new IllegalArgumentException("No or wrong count of arguments for '" + param + "'");
|
||||
}
|
||||
for (final String playerName : values) {
|
||||
for (String playerName : values) {
|
||||
if (playerName.length() > 0) {
|
||||
if (playerName.contains("!")) {
|
||||
if (playerName.startsWith("!")) {
|
||||
playerName = playerName.substring(1);
|
||||
excludePlayersMode = true;
|
||||
if (playerName.isEmpty()) {
|
||||
continue;
|
||||
}
|
||||
}
|
||||
if (playerName.contains("\"")) {
|
||||
players.add(playerName.replaceAll("[^a-zA-Z0-9_]", ""));
|
||||
players.add(playerName.replace("\"", ""));
|
||||
} else {
|
||||
final Player matches = logblock.getServer().getPlayerExact(playerName);
|
||||
players.add(matches != null ? matches.getName() : playerName.replaceAll("[^a-zA-Z0-9_]", ""));
|
||||
players.add(matches != null ? matches.getName() : playerName.replace("\\\"", ""));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user