diff options
author | Dico <dico.karssiens@gmail.com> | 2018-09-26 02:42:15 +0100 |
---|---|---|
committer | Dico <dico.karssiens@gmail.com> | 2018-09-26 02:42:15 +0100 |
commit | 2225bdae95b3de4985347edf30ae31a28f73f35b (patch) | |
tree | 3145fae97135d1864ea29c608be2917d74e2dadc /src/main/kotlin/io/dico/parcels2/command/CommandsGeneral.kt | |
parent | dcd90c09add292300b163edf44c26ddf99f1199b (diff) |
Work on schematic and parcel swaps
Diffstat (limited to 'src/main/kotlin/io/dico/parcels2/command/CommandsGeneral.kt')
-rw-r--r-- | src/main/kotlin/io/dico/parcels2/command/CommandsGeneral.kt | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/main/kotlin/io/dico/parcels2/command/CommandsGeneral.kt b/src/main/kotlin/io/dico/parcels2/command/CommandsGeneral.kt index 3cb0621..750fd96 100644 --- a/src/main/kotlin/io/dico/parcels2/command/CommandsGeneral.kt +++ b/src/main/kotlin/io/dico/parcels2/command/CommandsGeneral.kt @@ -120,9 +120,9 @@ class CommandsGeneral(plugin: ParcelsPlugin) : AbstractParcelCommands(plugin) { @Cmd("clear") @RequireParcelPrivilege(Privilege.OWNER) fun ParcelScope.cmdClear(context: ExecutionContext, @Flag sure: Boolean): Any? { + Validate.isTrue(!parcel.hasBlockVisitors, "A process is already running in this parcel") if (!sure) return areYouSureMessage(context) - - clearWithProgressUpdates(context, "Clear") + world.blockManager.clearParcel(parcel.id).reportProgressUpdates(context, "Clear") return null } @@ -130,8 +130,8 @@ class CommandsGeneral(plugin: ParcelsPlugin) : AbstractParcelCommands(plugin) { @RequireParcelPrivilege(Privilege.OWNER) fun ParcelScope.cmdSetbiome(context: ExecutionContext, biome: Biome): Any? { Validate.isTrue(!parcel.hasBlockVisitors, "A process is already running in this parcel") - world.blockManager.setBiome(parcel.id, biome) - return "Biome has been set to $biome" + world.blockManager.setBiome(parcel.id, biome).reportProgressUpdates(context, "Biome change") + return null } }
\ No newline at end of file |