Commit Graph

306 Commits

Author SHA1 Message Date
8108d0a936 Major command changes that don't work yet. 2019-07-16 23:44:34 -04:00
ffc2092d93 toggles and timeouts 2019-06-30 14:56:32 -04:00
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
d9906c9026 229182aa63 2019-06-29 01:19:58 +10:00
d0a31691e1 Small changes 2019-06-26 20:14:00 -04:00
0313320816 As Jesse would say... * 2019-06-20 20:05:18 -04:00
1f14d4652e Upstream changes, prefix changes, formatting changes, variable name changes
I think that draining waterlogged items also works now?
2019-06-12 17:13:53 -04:00
ec001b8d3b Revert "Upstream, generics, formatting"
This reverts commit cd88e513a8.
2019-06-12 15:45:41 +02:00
cd88e513a8 Upstream, generics, formatting 2019-06-11 20:31:56 -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
229182aa63 Remove CUI and other cleaning 2019-06-06 18:39:51 -04:00
b42553116c Removal of many prefixes and deprecation of FaweLocation
- Removed some prefixes to help make upstream merging a bit easier.
- Replaced reflection code for titles with the regular bukkit api.
- Removed FAWELocation and FAWEPlayer where it wasn't needed.
- Deprecated FaweLocation since having it in the first place is very stupid.
- FAWEPlayer should also be deprecated soon because the majority of that code is redundant.
2019-06-05 21:28:02 -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
6c94cca15e Selective upstream merge
Signed-off-by: MattBDev <4009945+MattBDev@users.noreply.github.com>
2019-06-04 12:40:11 -04:00
a3afd9d5b3 Make suggestions more robust.
And fix potential errors in the ^[] pattern parser.
2019-06-01 12:39:24 -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
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
f9d0d340e7 Add DFUs. Currently used by //restore. 2019-05-13 23:07:53 -04:00
10f7fb6a26 Add //br and //brush as aliases. 2019-05-13 18:49:43 -04:00
e2e903ca5e Pass service to brush sub-commands too. 2019-05-09 11:14:10 -04:00
c169d8f258 Re-use command manager service. 2019-05-09 10:28:08 -04:00
31d4daf474 Don't compare null BlockStates. 2019-05-06 19:59:58 -04:00
067a570df0 Implement basic Forge suggestions 2019-05-05 23:06:20 -07:00
8a3e6a12b9 Implement suggestions for Bukkit + Sponge 2019-05-05 23:06:20 -07:00
4355f8cbf7 Update Piston for suggestions, add hacky-pseudo-suggestions 2019-05-05 23:06:20 -07:00
f279907616 Create CommandManagerService directly instead of service loading it. 2019-05-04 17:06:19 -04:00
13a8c480e3 Insert Locale.ROOT into all case change methods 2019-05-01 15:24:32 -07: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
3c04a83852 Add nicer error when using player commands as console.
Also fix slash counts for Bukkit.
2019-04-29 17:39:30 -04:00
82c4846436 Add more variable args for expressions, quoting 2019-04-28 22:03:54 -07:00
6255ccce38 Minor bug fixes 2019-04-28 17:27:33 -07: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
62353a46db Added a pagination box and use it in Biome List and Chunk List 2019-04-27 21:57:45 +10:00
0960f70e6b Update to latest Piston changes 2019-04-27 03:35:44 -07:00
f94093239f Setup a registry converter 2019-04-27 16:46:13 +10:00
23279c007e Fix intialization, rework registration 2019-04-26 01:38:06 -07:00
7ff537138a Merge master again 2019-04-26 01:25:42 -07:00
b8c120e0c4 Finish porting commands 2019-04-26 01:18:02 -07:00
17fba54305 Update SpongeSchematic format to version 2.
Allows saving and loading entities and biomes.
2019-04-26 16:41:39 +10:00
46e0a7ba48 Port //set 2019-04-25 23:16:18 -07:00
853bfab022 Merge master, update to texts 2019-04-25 22:11:46 -07:00
d8290cbd8f Port worldedit commands 2019-04-25 21:03:28 -07:00
9b0fda9f83 Port utility commands 2019-04-25 19:36:22 -07:00
8c2b725f42 Port toll / tool util commands, add more enums 2019-04-25 12:49:03 -07:00
e447ac55db Port super pickaxe commands 2019-04-24 00:00:56 -07:00