mirror of
https://github.com/plexusorg/Plex-FAWE.git
synced 2024-12-23 17:57:38 +00:00
Fixed issue with CommandContext breaking arguments with negative numbers.
This commit is contained in:
parent
7d661844ad
commit
eff7dac690
@ -33,7 +33,7 @@ public class CommandContext {
|
|||||||
int i = 1;
|
int i = 1;
|
||||||
|
|
||||||
for (; i < args.length; i++) {
|
for (; i < args.length; i++) {
|
||||||
if (args[i].charAt(0) == '-') {
|
if (args[i].charAt(0) == '-' && args[i].matches("^-[a-zA-Z]+$")) {
|
||||||
for (int k = 1; k < args[i].length(); k++) {
|
for (int k = 1; k < args[i].length(); k++) {
|
||||||
flags.add(args[i].charAt(k));
|
flags.add(args[i].charAt(k));
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user