mirror of
https://github.com/plexusorg/Plex-FAWE.git
synced 2025-06-16 22:03:53 +00:00
Fixed /script.js shortcut not stripping forward slashes.
This commit is contained in:
@ -2120,10 +2120,11 @@ public class WorldEdit {
|
||||
if (split[0].equals("/,")) {
|
||||
split[0] = "//";
|
||||
// Quick script shortcut
|
||||
} else if (split[0].matches("^.+\\.js$")) {
|
||||
} else if (split[0].matches("^/[^/].*\\.js$")) {
|
||||
String[] newSplit = new String[split.length + 1];
|
||||
System.arraycopy(split, 0, newSplit, 1, split.length);
|
||||
newSplit[0] = "/cs";
|
||||
newSplit[1] = newSplit[1].substring(1);
|
||||
split = newSplit;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user