Commit Graph

209 Commits

Author SHA1 Message Date
c0f2557f15 Make the selection wand and navigation wand normal tools. (#493)
This means users can bind and unbind them to any item, like other tools.
By default, the items in config will be automatically bound. After
setting a different item via `//selwand` or `//navwand`, that item will
subsequently be used for that user.

Also add -n to //wand to get a navwand.

Also various other tool-related cleanup.
2019-06-28 15:45:16 -04:00
8fcc22c21d Cleanup multiple batch usage for chunk deletion. 2019-06-22 15:01:00 -04:00
d763ab374c Re-add delchunks command (#481)
The new command now writes a json file to WorldEdit's working directory with instructions on which chunks to delete, which is read by the plugin/mod at startup and calls the ChunkDeleter.
The chunk deleter parses the json and iterates the instructions, backing up .mca files as it goes and overwriting the offset headers with 0 wherever a chunk needs to be deleted.
This allows Minecraft to reclaim the space used for that chunk, as well as forcing it to be generated from scratch next time the area is loaded.
2019-06-22 14:20:14 -04:00
c97071c0f4 Merge pull request #482 from EngineHub/forge-1.14
Update to Forge 1.14.
2019-06-16 14:03:35 -07:00
dcd1d8d0bc Clean up/fix undo/redo. Add separate .self perm nodes. 2019-06-16 10:09:35 -04:00
078d6f6440 Update to Forge 1.14. 2019-06-15 20:47:48 -04:00
6e833a9fe4 Correctly unwrap old CommandExceptions in AsyncCommandBuilder. 2019-06-13 14:35:24 -04:00
7787f2c15e Use AsyncCommandBuilder for /calc. 2019-06-13 10:17:37 -04:00
213cadf093 Import cleanup, ensure gradle uses https for deps, bump deps. 2019-06-13 09:17:00 -04:00
6f7927bc5a Skip poi folders for snapshot restores.
New to 1.14, Mojang stores .mca files which don't contain chunks in the
poi folder.

Note: we explicitly filter *out* the poi folder, instead of filtering
*to* the regions folder, since old versions of minecraft had regions
directly in the world folder (instead of a regions subfolder).
2019-06-12 21:51:22 -04:00
f2f9c26602 Expanded the scope of item brushes (/br apply item, /br paint item).
They now additionally take a direction in which the simulated item usage
should be facing.
Also allow the item parser to parse "hand" and "offhand" as items, to
allow platforms with NBT item support return items with NBT (since
parsing is a slightly more complex task).
2019-06-09 20:44:30 -04:00
d7c11cbb69 Handle sub-commands without permissions. 2019-06-04 22:13:16 -04:00
a904ff9fb9 Check sub-command permissions.
This ensures root commands aren't sent to the client/suggested unless
a player has at least one subcommand available to them.
2019-06-04 22:13:16 -04:00
1e7c074217 Few misc command fixes. 2019-06-01 09:35:27 -04:00
9099a17fe5 Some command refactoring. Switch usages of page args to -p flag. 2019-06-01 07:04:07 -04:00
620992dd57 Update Piston to 0.4.0 for bugfixes 2019-06-01 01:51:25 -07:00
5e857b3547 Improve parsing from registries.
If multiple namespaces are present, suggestions will first suggest a
namespace, then once a namespace is selected, keys within that namespace.

Starting an argument with ":" will instead search across all namespaces
for matching keys.
2019-05-28 22:55:20 -04:00
6962b2e7b6 Add comprehensive suggestions to many commands.
All patterns now have suggestions, including recursive patterns.
Suggestions will suggest blocks and block states.
All masks now have suggestions, though mask intersections are not
yet supported due to issues with quotes strings.
EntityRemover and ItemFactory now also have completions, as well
as all RegistryConverters (though I am unsure how many are actually
used).

Also use paper's AsyncTabComplete event, if available.
2019-05-28 22:55:20 -04:00
871c25e1cd Initial support for 1.14.2. 2019-05-27 19:52:58 -04:00
4804fe64e3 Don't use a no-op suggester 2019-05-24 21:31:29 +10:00
a3ffb91917 Added suggestions to a lot of factory-related commands 2019-05-24 21:31:29 +10:00
7b47d9a945 Add /tracemask. (#474)
Allows setting a mask used for block traces. This allows brush tools to
pass through various materials, such as water (e.g. `/tracemask #solid`
or `/tracemask !air,water`) before starting to build.
By default, a null mask is equivalent to #existing (original behavior).

https://gfycat.com/ImmaculateFrayedCockatiel
2019-05-23 21:12:31 -04:00
334d5cfaab The "spawner|mobType" syntax once again makes functional mob spawners.
Also fix block parser context not being restricted.
2019-05-18 10:16:08 -04:00
3173e26109 Fix //expand, improve //help 2019-05-17 22:24:31 -07:00
e7613dd879 Stop using IAE to communicate parameter mis-use 2019-05-14 17:57:05 -07:00
10f7fb6a26 Add //br and //brush as aliases. 2019-05-13 18:49:43 -04:00
9a913a93f6 Fix throwing uncaught exceptions in AsyncCommandBuilder. 2019-05-13 18:49:43 -04:00
7b170d8193 Run schematic-file I/O in a task. 2019-05-12 16:01:22 -04:00
fab21c3eea Add AsyncCommandBuilder as replacement for AsyncCommandHelper.
See full explanation at https://github.com/EngineHub/WorldGuard/pull/408
2019-05-12 14:36:57 -04:00
56908a7d62 Update to final Sponge schem v2 spec.
Read lenient, write strict.
2019-05-09 16:59:06 -04:00
e2e903ca5e Pass service to brush sub-commands too. 2019-05-09 11:14:10 -04:00
9a5d45deed Fixed direction error 2019-05-06 18:33:21 +10:00
1c54a04fd1 Update Text to 3 2019-05-05 23:06:20 -07:00
bc8e477b1c Fix error message with invalid //expand args. 2019-05-04 22:48:49 -04:00
018b6bead8 Tweak removeabove/removebelow commands.
Fix misplaced negative.
Layer 0 will always be the current layer, plus <height> layers
above/below. No longer adds 1 arbitrarily to height.
2019-05-02 19:01:28 -04:00
5e81dd1c4c Make registries Keyed. 2019-05-01 20:12:35 -04:00
fb4fb980e0 Condense some command packages 2019-04-30 15:03:18 -07:00
743d7f08ab Purge intake-like command system 2019-04-30 14:59:45 -07:00
b1c042b196 Add checkstyle validation for formatting, fix issues 2019-04-29 22:40:32 -07:00
7188d27aaa Fix minor bugs in converters 2019-04-29 22:11:15 -07:00
d0f9a71d53 Re-implement many converters using Piston utility converters 2019-04-29 21:57:29 -07:00
8baf221c95 Hide help buttons in //sel selector box. 2019-04-29 17:38:26 -04:00
6c21ae5c83 Drop old calc message 2019-04-28 22:09:48 -07:00
82c4846436 Add more variable args for expressions, quoting 2019-04-28 22:03:54 -07:00
d4fce65abc A few command fixes 2019-04-28 21:42:45 -07:00
2580a0cf97 Use 'shape' instead of 'regionFactory' in user-facing ctx 2019-04-28 17:30:58 -07:00
6255ccce38 Minor bug fixes 2019-04-28 17:27:33 -07:00
32d4b36419 Fixed //drawsel 2019-04-28 17:05:37 +10:00
6e016a66f0 Fixed //size on clipboards 2019-04-28 16:05:01 +10:00
b3053f19ce Pagination changes and cleanup.
Refactored PaginationBox to be abstract. Implementations can generate individual components as needed now.
Add lots of Component usage to schematic list, help listings, etc.
Fix a few schematic and file resolution issues.
2019-04-28 01:12:05 -04:00