Commit Graph

92 Commits

Author SHA1 Message Date
0620478763 feature(cli): Added a CLI version of WorldEdit, and allowed most commands to be run from console (#508)
* Re-do commits to avoid awful rebase

* You can load and save a schematic file now. Still gotta setup ability to use commands as a console actor.

* Add a world override concept to LocalSession, and allow a lot more commands to be performed by actors.

* Fixed commands, and set the loaded schematic as the world override in CLI

* Properly load tags

* Added 1.14.4 data values

* Allow a majority of commands to be performed by the console.

* Fixed a lot of PR requested changes

* Added a Locatable interface and use that for getting the location of the player in commands.

* Added script support. Currently requires a newline at the end of the script.

* Shade everything to allow this to run locally - should probably minimize this to an extent later.

* Actually hook up the version

* Added a //world command to set the override

* Fixed a missed checkstyle issue

* Added CommandBlock support to Bukkit

* Make command block support configurable

* Minor cleanup and implementing a few of the final functions

* Fixed most issues from PR

* Improve UX, saving is now automatic and unknown command messages show

* Better save docs and support any clipboard format

* Include the entire formats list

* Arrays.copyOf

* Clear the world override if the selector is called on another world.

* Update logging extent to allow basic logging with non-player actors
2019-08-25 19:58:28 +10:00
ae89c16390 merge 2019-08-23 08:36:33 +01:00
64a1bfc9b3 migrate to gradle to kotlin 2019-08-20 14:52:24 -04:00
b6bc09226c conflicts 2019-08-07 01:25:53 +10:00
7967ef4db4 ff586011 2019-07-30 07:39:18 +10:00
3a5170a0e8 Potenially fix quoted string completion 2019-07-27 18:12:18 -07:00
7963b2c92f Removed commands.yml
I also did a few renames as well as a command registration fix.
2019-07-26 19:23:24 -04:00
ff5860113d It started on work with commands then I got carried away. 2019-07-25 14:44:10 -04:00
c05d425f64 couple more compilation issues 2019-07-23 06:58:18 +10:00
283351fea5 fix conflicts 2019-07-22 16:39:43 +10:00
07283af614 some bindings 2019-07-22 16:02:51 +10:00
9c3122a227 More work on getting commands to compile 2019-07-21 22:49:08 -04:00
f5c202af6d BrushCommands 2019-07-21 21:39:36 +10:00
85ebee7da7 brush settings 2019-07-20 01:29:49 +10:00
f500b5e056 CommandContext + Confirmation
Use InjectedValueAccess instead
Fix command confirmation
2019-07-19 06:03:27 +10:00
81298bf555 add command queuing 2019-07-19 03:10:04 +10:00
08dead5a86 cleanup build script 2019-07-17 19:43:14 +10:00
8108d0a936 Major command changes that don't work yet. 2019-07-16 23:44:34 -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
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
3173e26109 Fix //expand, improve //help 2019-05-17 22:24:31 -07: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
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
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
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
b8c120e0c4 Finish porting commands 2019-04-26 01:18:02 -07:00