wizjany
0f420f02ff
Fix some load-order issues probably.
...
Edge cases might still exist around plugins which use WE for initial
world-gen, or in general plugins that try to access the platform
before it's ready.
2019-07-27 11:45:21 -04:00
wizjany
2cc6a367c6
Move floatAt logic to AbstractPlayer, add isAllowedToFly and setFlying.
2019-07-23 22:16:26 -04:00
wizjany
e504c29df6
Fix potential race condition.
...
I guess.
2019-07-23 21:41:39 -04:00
wizjany
a65351e43e
Don't load old adapters.
2019-07-19 21:19:09 -04:00
wizjany
7c41949f40
Update bukkit adapters for 1.14.4.
2019-07-19 20:44:39 -04:00
Kenzie Togami
3b157b67c3
Move Bukkit to JUnit 5
2019-07-15 16:38:33 -07:00
Kenzie Togami
429d022752
Move Core to JUnit 5
2019-07-15 16:38:33 -07:00
Kenzie Togami
ab8397e517
Migrate Bukkit to Kotlin DSL
2019-07-12 13:49:45 -07:00
Kenzie Togami
19802e478c
Re-write root and libs to Kotlin DSL
2019-07-12 13:49:45 -07:00
wizjany
a18f26f8af
Play nicer with naughty plugins.
2019-07-06 09:44:53 -04:00
wizjany
625cbe5e3d
Make //count take a mask. Also doc updates, perm fixes.
2019-06-30 00:38:17 -04:00
wizjany
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
wizjany
0088fe79b3
Cleanup Bukkit internal id usage.
2019-06-15 17:33:17 +10:00
Kenzie Togami
27c7d488a2
Add perf. improvments for Forge
2019-06-15 17:33:17 +10:00
Kenzie Togami
8c17aab9c5
Clean-up some misc. parts of the code
2019-06-15 17:33:17 +10:00
wizjany
dc21b4df58
This does something idk.
2019-06-15 17:33:17 +10:00
Kenzie Togami
a3a175ab8c
Initial attempt at binding state IDs
2019-06-15 17:33:17 +10:00
wizjany
e1c191599c
Implement item brushes and item NBT for bukkit.
...
This allows usage of `/br <apply|paint> <shape> item` and the `offhand`
syntax for item parser to use NBT.
2019-06-14 16:37:23 -04:00
wizjany
213cadf093
Import cleanup, ensure gradle uses https for deps, bump deps.
2019-06-13 09:17:00 -04:00
wizjany
efb7650d6f
Fix some reload issues.
...
And some unload issues.
2019-06-11 18:02:24 -04:00
wizjany
3fd661c513
Don't attempt to check unloaded world refs.
2019-06-08 11:25:36 -04:00
wizjany
e3097dd0fc
Use java-library to exclude some deps.
2019-06-03 23:56:34 -04:00
wizjany
3df2410254
Change chunk loading method.
...
Behavior of loadChunk changed a lot for the worse in CB 1.14.
2019-06-02 21:56:29 -04:00
wizjany
1e7c074217
Few misc command fixes.
2019-06-01 09:35:27 -04:00
wizjany
59447c6ee3
Gradle sucks.
2019-05-31 13:53:28 -04:00
wizjany
44ee1546b7
Apparently CB uses this.
2019-05-31 11:48:08 -04:00
wizjany
4e43595c99
Fix builds maybe.
2019-05-31 11:24:38 -04:00
wizjany
6ad274677f
Don't require command for CUI init.
2019-05-29 23:15:06 -04:00
wizjany
ec3648e521
Wrap and unwrap.
...
Exceptions are fun.
2019-05-29 23:15:05 -04:00
wizjany
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
wizjany
871c25e1cd
Initial support for 1.14.2.
2019-05-27 19:52:58 -04:00
wizjany
48fb669119
Guard against reloads breaking too much.
2019-05-25 18:11:23 -04:00
wizjany
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
wizjany
b0777f6b06
Use DFUs for some additional data fixing.
...
Legacy mapper now uses the data fixers to upgrade blocks and item types
(e.g. signs, dyes that changed names in 1.14).
The sponge schematic reader can now attempt to use the data fixers to
upgrade blocks, block entities, biomes and entities. This has been
tested with the 1.13 -> 1.14 changes. It is yet to be seen if it will
continue to work because...
The mc edit schematic reader has code for using data fixers, but it is
currently disabled as there seem to be some issues with fixing up older
block entities.
2019-05-20 16:39:58 -04:00
wizjany
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
wizjany
41cfcb6d55
Use a jar for bukkit impl adapters.
...
120 class files is a bit much.
2019-05-14 18:34:53 -04:00
wizjany
931b7ee694
Update for 1.14.1
2019-05-14 00:09:21 -04:00
wizjany
f9d0d340e7
Add DFUs. Currently used by //restore.
2019-05-13 23:07:53 -04:00
wizjany
5c97418cca
Fix NBT list conversion in 1.14.
2019-05-13 18:49:43 -04:00
Kenzie Togami
8a3e6a12b9
Implement suggestions for Bukkit + Sponge
2019-05-05 23:06:20 -07:00
Kenzie Togami
acc0e7d09c
Fix logging on Bukkit, align adapter versions
2019-05-05 23:06:20 -07:00
wizjany
ceff17c4f7
Misc fixes.
...
Closes a few old youtrack issues which I don't remember because I had
like 30 tabs open, and a few other issues which I found while testing
some of those.
2019-05-05 15:15:03 -04:00
wizjany
57c161a602
Actually initialize GameModes and WeatherTypes.
2019-05-02 00:08:19 -04:00
Kenzie Togami
13a8c480e3
Insert Locale.ROOT into all case change methods
2019-05-01 15:24:32 -07:00
Kenzie Togami
7c1764548d
Deprecate old system, still in use by WG/CB
2019-04-30 13:53:14 -07:00
wizjany
3c04a83852
Add nicer error when using player commands as console.
...
Also fix slash counts for Bukkit.
2019-04-29 17:39:30 -04:00
wizjany
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
Matthew Miller
62353a46db
Added a pagination box and use it in Biome List and Chunk List
2019-04-27 21:57:45 +10:00
Kenzie Togami
7ff537138a
Merge master again
2019-04-26 01:25:42 -07:00
Kenzie Togami
b8c120e0c4
Finish porting commands
2019-04-26 01:18:02 -07:00
wizjany
31a8328fb5
Add data version to BukkitImplAdapter.
...
Also throttle unknown-block warning when loading MCEdit schematics.
2019-04-26 16:41:39 +10:00
wizjany
17fba54305
Update SpongeSchematic format to version 2.
...
Allows saving and loading entities and biomes.
2019-04-26 16:41:39 +10:00
Kenzie Togami
853bfab022
Merge master, update to texts
2019-04-25 22:11:46 -07:00
Matthew Miller
c325b789b2
Revert lighting changes and add a 1.14 adapter
2019-04-25 23:15:09 +10:00
Matthew Miller
f70557e3da
Provide a warning when an invalid property is entered rather than failing. Fixes WorldEdit entirely failing on new MC versions.
2019-04-25 22:48:15 +10:00
Matthew Miller
c52eb59d7f
Get it all working
2019-04-22 22:05:20 +10:00
Kenzie Togami
5c19866809
Some fixes for new libs shading
2019-04-20 23:33:54 -07:00
Kenzie Togami
1e7b4fc835
Move shaded libraries to their own artifacts
2019-04-20 23:11:39 -07:00
Matthew Miller
5b1573a24e
Replace the message system
2019-04-19 23:06:00 +10:00
Matthew Miller
55348346e9
Shade in Kashike's lib
2019-04-19 14:49:29 +10:00
Kenzie Togami
ac03de89cc
Work on adding converters for some arguments
2019-04-18 19:11:57 -07:00
Kenzie Togami
37c993be16
Port ClipboardCommands, update to new Key
2019-04-18 12:34:57 -07:00
Kenzie Togami
267ccf2298
First attempt at integrating Piston as the only command system
2019-04-15 01:21:15 -07:00
Matthew Miller
3e4004ad9e
Start work on improving the formatting system. May switch to Kashike's as Bukkit is shit
2019-04-14 19:33:44 +10:00
Kenzie Togami
8ab6585815
Patch new cmds system into old system
2019-04-04 16:16:04 -07:00
wizjany
961da1b93f
Add BukkitPlayer constructor without plugin.
...
tbh I don't know why we even need to keep the plugin object around.
2019-03-30 17:32:10 -04:00
Matthew Miller
d186cce393
Merge remote-tracking branch 'origin/feature/slf4j-logging'
2019-03-19 20:32:21 +10:00
wizjany
d1c2a029bf
Move some platform stuff to load, put enable back to postworld.
2019-03-15 23:43:57 -04:00
wizjany
678a78a982
Update adapters.
...
Don't update unchanged blocks, do change NBT, no need to light.
Also clean up the forge side a bit.
2019-03-15 20:56:49 -04:00
wizjany
c885f70c7b
Load Bukkit plugin at startup.
...
This should allow plugins that use WorldEdit to do things on world load.
2019-03-15 18:38:06 -04:00
Kenzie Togami
fba12b1282
More shading fixes
2019-03-13 20:15:01 -07:00
Kenzie Togami
4be72fb983
Shade logger bridges as well
2019-03-13 19:56:58 -07:00
Kenzie Togami
d6804737cf
Switch to SLF4J logging.
2019-03-13 19:51:48 -07:00
wizjany
6937cfc9a9
Need internal ID for EntityType here too.
2019-03-09 10:46:40 -05:00
wizjany
7c89ece96e
Few tweaks to schematic loading and error fixes.
...
* Not all EntityTypes in Bukkit have the correct enum name.
* Don't read entire schematic files to list. Go off file extension only.
(Reading in files is more accurate, but slow.)
* Enforce extensions. (Due to the above, while you can technically make a
schematic called 'test.txt', it's better that we save it as
'test.txt.schem'.)
* Fix a few minor warnings.
2019-03-08 16:00:49 -05:00
wizjany
eebba8e324
Move vault to permscompat.
2019-03-07 23:55:58 -05:00
wizjany
90797d12f4
Skip legacy materials when setting up registries.
...
Doesn't make a difference normally, but avoids errors in special envs.
2019-02-25 18:41:20 -05:00
Matthew Miller
8984289695
Bump Spigot version so it compiles.
2019-02-18 20:56:21 +10:00
Matthew Miller
50a286b070
Update the block/item category registries - this won't build until a Spigot PR is merged though.
2019-02-17 13:30:40 +10:00
Matthew Miller
a09489a9af
Updated the adapters
2019-02-16 20:51:39 +10:00
Matthew Miller
db1315e043
Refactor registries to entirely use the platform
2019-02-16 19:35:13 +10:00
Matthew Miller
1b101740fe
Use a proper registry for biomes
2019-02-16 17:27:00 +10:00
wizjany
319f2efe43
Ignore synthetic classes when loading BukkitImplAdapter.
2019-02-14 18:07:07 -05:00
wizjany
39131eb1e5
Revert "Remove synthetic classes from adapters."
...
This reverts commit 1ae0e88b
2019-02-14 17:56:48 -05:00
Matthew Miller
1ae0e88b63
Remove synthetic classes from adapters.
2019-02-13 21:06:25 +10:00
Matthew Miller
c53a40b577
Bypass the Spigot API for block setting for speed boosts on non-Paper platforms.
2019-02-11 20:17:36 +10:00
Kenzie Togami
386668d221
Clean up other compiler warnings
2018-12-26 16:50:24 -08:00
Kenzie Togami
de7d9421b1
Add generics to other rawtypes
2018-12-26 16:45:46 -08:00
Kenzie Togami
3fefcbf971
Remove all raw usages of BSH, improve API generics
2018-12-26 16:39:10 -08:00
Matthew Miller
ea30578781
Added a way to get the spawn position of a world
2018-12-21 17:05:30 +10:00
Matthew Miller
c949b07df1
Added a method to teleport entities across worlds.
2018-12-21 16:56:10 +10:00
Matthew Miller
5eb9b779d7
Move the pasting system over to WorldEdit, and add a /we report command. Currently only reports system status and the config. Need to add a platform reporter system.
2018-12-18 19:28:55 +10:00
Matthew Miller
8f236afae9
Added a display name to Actors
2018-12-18 17:36:53 +10:00
Matthew Miller
36430863a1
Update adapters
2018-12-09 16:28:01 +10:00
Matthew Miller
7d468357e3
Added "fast mode corrections"
2018-12-09 16:27:02 +10:00
Matthew Miller
5acd0d8537
Update adapters for the broken Spigot builds.
2018-12-09 16:08:11 +10:00
Matthew Miller
be0d21e2a9
Filter out commands that the player doesn't have permissions for. Workaround for a Spigot issue.
2018-12-05 16:32:20 +10:00
Kenzie Togami
b192466ce2
Remove recursion in VaultResolver
...
Correctly call into `perms` instead of creating an infinite recursion.
2018-11-30 13:15:09 -08:00
Matthew Miller
ee8602b77b
Added a Vault resolver to WEPIF. Means any Vault-enabled perm plugin will theoretically work with it
2018-11-18 15:58:15 +10:00
Matthew Miller
bf98dcff09
Updated bStats
2018-11-10 19:26:46 +10:00
Matthew Miller
f0070c111c
Fixed adapters not being updated
2018-11-06 15:53:14 +10:00
Matthew Miller
53bc730909
Merge pull request #435 from sk89q/feature/trace-unflushed-sessions
...
Add tracing for unflushed EditSessions
2018-11-04 17:21:25 +10:00
Matthew Miller
a2be001a57
Updated adapters
2018-11-04 16:14:47 +10:00
Kenzie Togami
2c8b2fe089
Move vectors to static creators, for caching
2018-11-03 23:00:24 -07:00
Kenzie Togami
399e0ad5fa
Refactor vector system to be cleaner
...
- Move Vector, etc. into `.math` package
- Drop many methods that will be auto-promoted anyways, eg. with
`divide(int)` and `divide(double)` the first is now gone.
- Take Block vectors into their own class hierarchy
- Make it clear throughout the API what takes blockvectors
- many more improvements
2018-11-03 23:00:23 -07:00
Kenzie Togami
e1fbaaff59
Add tracing for unflushed EditSessions
2018-10-30 18:39:51 -07:00
Kenzie Togami
1fa1ff895b
Flush or disable buffers in tools
2018-10-20 19:47:17 -07:00
Matthew Miller
dd2fcbac23
Merge pull request #430 from sk89q/feature/chunk-batching-mode
...
Chunk Batching
2018-10-15 13:50:10 +10:00
Matthew Miller
f8bf547c9e
Added some missing bukkit registries
2018-10-14 17:55:57 +10:00
Matthew Miller
815f14d4a1
Remove a config option that's now unused.
2018-10-13 15:12:04 +10:00
Matthew Miller
0fe1fe33cc
Replace BukkitImplementationTester with paperLib
2018-10-12 16:09:52 +10:00
Kenzie Togami
e16dacc11e
Small patches for timed-calc post-1.12-merge
2018-10-11 17:25:06 -07:00
Legoman99573
776eb24c0e
Calculation Config missing and typo
2018-10-11 17:18:52 -07:00
Kenzie Togami
7d4906cfe9
Add chunk batching flag, enable by default
2018-10-10 11:38:23 -07:00
Matthew Miller
d1cb6e2156
compileOnly breaks shadowJar. bStats needs to fix their repos.
2018-10-10 23:22:38 +10:00
Matthew Miller
e3001586e5
Make bStats compileOnly so transitive projects won't load it, Jitpack has issues.
2018-10-10 19:39:09 +10:00
Matthew Miller
c32c13fdcd
Fixed a typo in the gradle file
2018-10-10 19:34:18 +10:00
Matthew Miller
bf38b371d8
Update bStats because they deleted their old repo.
2018-10-10 16:59:18 +10:00
Matthew Miller
79a4121098
Return null if the material is null.
2018-10-04 20:29:40 +10:00
Kenzie Togami
2cad9a2c09
Switch to a license plugin for headers
2018-10-04 00:29:34 -07:00
Kenzie Togami
388187d26b
Cleanup javadoc warnings in worldedit-bukkit
2018-10-01 15:31:26 -07:00
Matthew Miller
42e0cceeab
Bukkit really needs methods to get by key/get key
2018-09-26 15:03:01 +10:00
Matthew Miller
cc1a54b5f0
Added an implementation tester to Bukkit, to determine which impl is in use. (For WE,WG,CB to use Paper/Spigot specific APIs)
2018-09-23 22:48:04 +10:00
Matthew Miller
02c6f11bb9
Added bStats
2018-09-20 22:59:42 +10:00
Matthew Miller
fdb9d77710
Finish the BlockData caching in Bukkit
2018-08-28 18:45:24 +10:00
Matthew Miller
fb5cb9a7bb
Added a 1.13.1 adapter.
2018-08-27 13:29:29 +10:00
Pieter12345
6c7a49733c
Fix plugin enabling on Bukkit without compatible adapter
...
When loading WorldEdit on a Bukkit server which it does not have an adapter for, a stacktrace is printed to console and WorldEdit does not load. This commit fixes that by registering the BukkitServerInterface before attempting to find a matching adapter.
2018-08-26 21:34:33 +02:00
Matthew Miller
58a5d9961b
Minor formatting and neatness changes.
2018-08-23 20:15:44 +10:00
Matthew Miller
d3b3d57041
Merge pull request #420 from sk89q/server-side-cui
...
Added a server side version of WorldEditCUI with limited functionality
2018-08-20 14:46:08 +10:00
Matthew Miller
7b83f97c35
Fixed NotABlockException not getting thrown
2018-08-19 14:41:09 +10:00
Matthew Miller
a354267e85
Try sending fake operator packets to support non-OP
2018-08-19 13:41:38 +10:00
Matthew Miller
4d0df10f88
Fixed sessions not saving on shutdown
2018-08-19 13:01:08 +10:00
Matthew Miller
034c165bee
Merge pull request #396 from boy0001/FallbackRegistrationListener-fix
...
Fix FallbackRegistrationListener
2018-08-18 20:46:48 +10:00
Matthew Miller
eba91cac5f
Added a config option to entirely disable server side cui.
2018-08-18 19:42:45 +10:00
Matthew Miller
f8585adc79
Remove debug code
2018-08-18 15:27:26 +10:00
Matthew Miller
7f419618cc
Switch to using fake blocks, no more world pollution
2018-08-18 15:22:49 +10:00
Matthew Miller
bc5609114b
Add a material to check if air is air, because there are now 3 types of air.
2018-08-16 15:42:11 +10:00
Matthew Miller
c31161d068
Moved report framework to WorldEdit and fixed a few bugs.
2018-08-15 12:45:18 +10:00
Matthew Miller
96388df4b0
Add adapters for EntityType
2018-08-13 22:29:48 +10:00
Matthew Miller
f54d6afb65
Make BaseBlock more memory efficient, and make it clear in the API that it's not intended to be used for every single block.
2018-08-10 20:29:06 +10:00
Matthew Miller
5f4cc3e694
Cleanup a little bit more code.
2018-08-06 19:08:15 +10:00
Matthew Miller
526aa6cf49
If we fail to set NBT Data, try it without the adapter/NBT Data
2018-08-06 18:29:07 +10:00
Matthew Miller
1d9546f9c7
Fixed a typo in the adapter.
2018-08-05 15:02:01 +10:00
Matthew Miller
88fc1771b5
Wrap createEntity in BukkitWorld to detect corrupt entities.
2018-08-05 14:24:09 +10:00
Matthew Miller
334143357a
Added LongArrayTag support to NBT
2018-08-05 13:36:53 +10:00
Matthew Miller
b2769befdb
Added a few utility methods.
2018-08-04 11:43:42 +10:00
Matthew Miller
1480606b52
Fixed a few more issues found looking over the changeset.
2018-08-04 11:43:42 +10:00
Matthew Miller
af74627b69
Switch to release 1.13 API
2018-08-04 11:43:41 +10:00
Matthew Miller
65420af09e
Fixed //fill and //rotate
2018-08-04 11:43:41 +10:00
Matthew Miller
663dd1f4d8
Added an entity, weathertype, and gamemode registry.
2018-08-04 11:43:41 +10:00