Mirror von
https://github.com/IntellectualSites/FastAsyncWorldEdit.git
synchronisiert 2024-12-25 10:30:04 +01:00
Fixed /script.js shortcut not stripping forward slashes.
Dieser Commit ist enthalten in:
Ursprung
5d444d20a1
Commit
4fa2b5bcb7
@ -2120,10 +2120,11 @@ public class WorldEdit {
|
|||||||
if (split[0].equals("/,")) {
|
if (split[0].equals("/,")) {
|
||||||
split[0] = "//";
|
split[0] = "//";
|
||||||
// Quick script shortcut
|
// Quick script shortcut
|
||||||
} else if (split[0].matches("^.+\\.js$")) {
|
} else if (split[0].matches("^/[^/].*\\.js$")) {
|
||||||
String[] newSplit = new String[split.length + 1];
|
String[] newSplit = new String[split.length + 1];
|
||||||
System.arraycopy(split, 0, newSplit, 1, split.length);
|
System.arraycopy(split, 0, newSplit, 1, split.length);
|
||||||
newSplit[0] = "/cs";
|
newSplit[0] = "/cs";
|
||||||
|
newSplit[1] = newSplit[1].substring(1);
|
||||||
split = newSplit;
|
split = newSplit;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren