Mirror von
https://github.com/IntellectualSites/FastAsyncWorldEdit.git
synchronisiert 2024-12-25 02:20:07 +01:00
Add a -f flag to //schem l to make it ignore format checks
Dieser Commit ist enthalten in:
Ursprung
92523a2564
Commit
15977e85a5
@ -85,7 +85,7 @@ public class DynamicPluginCommand extends org.bukkit.command.Command implements
|
|||||||
if (registeredWith instanceof CommandsManager<?>) {
|
if (registeredWith instanceof CommandsManager<?>) {
|
||||||
try {
|
try {
|
||||||
for (String permission : permissions) {
|
for (String permission : permissions) {
|
||||||
if (((CommandsManager<?>) registeredWith).hasPermission(sender, permission)) {
|
if (((CommandsManager) registeredWith).hasPermission(sender, permission)) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -55,6 +55,7 @@ public class SchematicCommands {
|
|||||||
"Format is a format from \"//schematic formats\"\n" +
|
"Format is a format from \"//schematic formats\"\n" +
|
||||||
"If the format is not provided, WorldEdit will\n" +
|
"If the format is not provided, WorldEdit will\n" +
|
||||||
"attempt to automatically detect the format of the schematic",
|
"attempt to automatically detect the format of the schematic",
|
||||||
|
flags = "f",
|
||||||
min = 1,
|
min = 1,
|
||||||
max = 2
|
max = 2
|
||||||
)
|
)
|
||||||
@ -86,7 +87,7 @@ public class SchematicCommands {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!format.isOfFormat(f)) {
|
if (!format.isOfFormat(f) && !args.hasFlag('f')) {
|
||||||
player.printError(fileName + " is not of the " + format.getName() + " schematic format!");
|
player.printError(fileName + " is not of the " + format.getName() + " schematic format!");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren