Commit Graph

263 Commits

Author SHA1 Message Date
IronApollo
dcd041e847 Potential fix for CommandSuggestionEvent errors 2018-11-01 07:22:50 -04:00
Kenzie Togami
e1fbaaff59
Add tracing for unflushed EditSessions 2018-10-30 18:39:51 -07:00
IronApollo
34c8ecc694 Fixed invoke method missing argument 2018-10-25 07:12:08 -04:00
IronApollo
be73d29354 1.13.2 setType adaptation 2018-10-24 18:25:50 -04:00
Kenzie Togami
1fa1ff895b
Flush or disable buffers in tools 2018-10-20 19:47:17 -07:00
IronApollo
ea0133b740 Changes to completely separate SyncTabCompleteListener from Paper 2018-10-19 18:24:58 -04:00
IronApollo
3add6fd32b Check for the AsyncTabCompleteEvent class before attempting to create the Listener 2018-10-17 13:42:21 -04: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
Jesse Boyd
dfb0c5671b
Fixes boy0001/FastAsyncWorldedit#1116 2018-10-14 03:42:23 +11:00
Jesse Boyd
7cf7c0712f
fix fixwater/lava + tile paste 2018-10-13 19:50:13 +11: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
Jesse Boyd
dce39e5c69
Fix physics freeze 2018-10-03 14:58:19 +10: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
Jesse Boyd
cfbf7dbec0
Update from sk89q/master 2018-09-25 15:35:21 +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
Jesse Boyd
5b5336cc83
some fixes
Use sponge schematic format instead of structure block
Fix VS undo running on main thread
Fix missing sections when setting blocks
2018-09-18 12:49:33 +10:00
Jesse Boyd
ffa9eace6f
Fix /none 2018-09-08 03:17:27 +10:00
Jesse Boyd
fc949e3efc
Fixes #1112 2018-09-08 03:11:56 +10:00
Jesse Boyd
7af1b3dcc8
Add heightmap web util command 2018-09-07 06:40:13 +10:00
Jesse Boyd
594d72d2fe
Fix free build restrictions 2018-09-05 07:09:24 +10:00
Jesse Boyd
dfb1195242
Break on event cancel 2018-09-05 05:12:02 +10:00
Jesse Boyd
82ede1d42b
freebuild region restrictions 2018-09-05 05:10:15 +10:00
Jesse Boyd
b24d322d29
Update from sk89q/master 2018-09-03 00:10:38 +10:00
Jesse Boyd
418cfa6d03
Update towny hook / fix pattern traverser 2018-08-29 01:04:25 +10:00
Matthew Miller
fdb9d77710 Finish the BlockData caching in Bukkit 2018-08-28 18:45:24 +10:00
Jesse Boyd
abd886acd7
some hasty refactoring 2018-08-28 02:56:28 +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
Jesse Boyd
a61c856adc
Allow certain commands to bypass queuing 2018-08-24 19:33:52 +10:00
Jesse Boyd
c3db5c0cf1
Fix persistent brushes 2018-08-24 07:18:14 +10:00
Jesse Boyd
dbd31ea347
Fixes boy0001/FastAsyncWorldedit#1090 2018-08-24 01:22:30 +10:00
Matthew Miller
58a5d9961b Minor formatting and neatness changes. 2018-08-23 20:15:44 +10:00
Jesse Boyd
f43faae917
Update favs 2018-08-23 06:02:04 +10:00
Brendan Grieve
b08825e13e Add new MaskManager: WorldguardFlag 2018-08-22 12:42:52 +08:00
Jesse Boyd
a9e99c7cd7
Load dummy jar on first launch 2018-08-22 04:18:10 +10:00
Jesse Boyd
1d6f2e4274
Fix setbiome 2018-08-22 03:51:52 +10:00
Jesse Boyd
c55353e5b1
Various command (use es6 if java9 + nashorn) 2018-08-22 03:22:37 +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
Jesse Boyd
0cc0ee7f03
Basic tab suggestions 2018-08-18 01:37:35 +10:00
Jesse Boyd
b8cc785717
Use Uri instead of BufferedImage for parameter 2018-08-17 22:48:33 +10:00
Jesse Boyd
ae65708d82
Fix some command parsing issues
Tab complete runs on main thread - that could be an issue
2018-08-17 20:13:33 +10:00
Jesse Boyd
43d5459595
Fix __reserved__ being solid 2018-08-17 19:21:45 +10:00
Jesse Boyd
36ede1b27d
Fixes boy0001/FastAsyncWorldedit#1078 2018-08-17 18:27:48 +10:00
Jesse Boyd
29a364865d
Also register case sensitive 2018-08-17 03:30:55 +10:00
Jesse Boyd
60699f915d
comment this out 2018-08-17 03:28:34 +10:00
Jesse Boyd
c2a1fbf7cc
Fixes #1077 2018-08-17 02:55:06 +10:00
Jesse Boyd
4ffb9bce6c
Various minor
Fix image brush
Fix some java 9 issues
Fix metrics being disabled
Fix compile: duplicate method in SimpleBlockMaterial
Load as both FastAsyncWorldEdit and WorldEdit
2018-08-16 23:21:39 +10:00
Jesse Boyd
2172ebba83
Fix some issues with java 9 / reflection 2018-08-16 19:56:31 +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
Jesse Boyd
f254027f4b
Fix //wand 2018-08-16 00:04:40 +10:00
Jesse Boyd
659ed09bf1
Fix compile 2018-08-16 00:04:16 +10:00
Jesse Boyd
be574391ed
Update WorldGuard hook 2018-08-15 23:30:42 +10:00
Jesse Boyd
13d2ae20d5
Make end tag singleton 2018-08-15 17:02:17 +10:00
Jesse Boyd
8d68191b2c
Implement spawnParticle 2018-08-15 14:22:42 +10:00
Jesse Boyd
a67441bbff
Merge remote-tracking branch 'refs/remotes/sk89q/master'
# Conflicts:

#	worldedit-bukkit/src/main/java/com/sk89q/worldedit/bukkit/BukkitWorld.java
#	worldedit-core/src/main/java/com/sk89q/worldedit/blocks/BaseBlock.java
#	worldedit-core/src/main/java/com/sk89q/worldedit/world/NullWorld.java
2018-08-15 14:02:51 +10:00
Matthew Miller
c31161d068 Moved report framework to WorldEdit and fixed a few bugs. 2018-08-15 12:45:18 +10:00
Jesse Boyd
ced4fed9db
Create pom 2018-08-14 20:41:52 +10:00
Jesse Boyd
131fd39f63
Various minor
Add entity registry
Re-add AbstractLoggingExtent
Fill in missing nbt on entity load
2018-08-14 19:24:10 +10:00
Jesse Boyd
55d34343dd
Fix some api compatibility issues 2018-08-14 17:18:49 +10:00
Jesse Boyd
22511b2e19
Make this public 2018-08-14 12:07:11 +10:00
Jesse Boyd
198c53ff58
Fix wrong import 2018-08-14 12:00:48 +10:00
Jesse Boyd
1740c845d2
What are the dud BlockCategories? 2018-08-14 11:00:44 +10:00
Jesse Boyd
76a55b7712
Merge remote-tracking branch 'refs/remotes/sk89q/master'
# Conflicts:

#	worldedit-bukkit/src/main/java/com/sk89q/worldedit/bukkit/BukkitAdapter.java
#	worldedit-core/src/main/java/com/sk89q/util/yaml/YAMLProcessor.java
#	worldedit-core/src/main/java/com/sk89q/worldedit/blocks/BlockType.java

#	worldedit-core/src/main/java/com/sk89q/worldedit/command/ToolCommands.java

#	worldedit-core/src/main/java/com/sk89q/worldedit/command/tool/BlockReplacer.java

#	worldedit-core/src/main/java/com/sk89q/worldedit/command/tool/LongRangeBuildTool.java

#	worldedit-core/src/main/java/com/sk89q/worldedit/extent/reorder/MultiStageReorder.java

#	worldedit-core/src/main/java/com/sk89q/worldedit/world/block/BlockType.java

#	worldedit-core/src/main/java/com/sk89q/worldedit/world/item/ItemType.java
2018-08-14 01:36:00 +10:00
Matthew Miller
96388df4b0 Add adapters for EntityType 2018-08-13 22:29:48 +10:00
Jesse Boyd
f72977e69a
Register BlockExplodeEvent in separate class 2018-08-13 03:46:57 +10:00
Jesse Boyd
74ec39d67b
Change output jar name 2018-08-13 03:38:20 +10:00
Jesse Boyd
7fb3899bb7
Use BlockState for player inventory getBlock 2018-08-13 03:31:26 +10:00
Jesse Boyd
e7c27b08bf
Remove stub injector methods 2018-08-13 02:36:39 +10:00
Jesse Boyd
26593a135d
Don't need this adapter class 2018-08-13 00:51:37 +10:00
Jesse Boyd
712ae5aec5
Register individual methods for chunk listener 2018-08-13 00:36:00 +10:00
Jesse Boyd
a629d15c74
Copy paste/merge FAWE classes to this WorldEdit fork
- so certain people can look at the diff and complain about my sloppy code :(

Signed-off-by: Jesse Boyd <jessepaleg@gmail.com>
2018-08-13 00:03:07 +10:00
Jesse Boyd
1b2fec8e09
Add readme 2018-08-12 23:43:12 +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
Matthew Miller
572bf04482 Cleanup the bukkit implementation, and update to the 1.13 release items/blocks. 2018-08-04 11:43:41 +10:00
Matthew Miller
c3d832c3fd State system is done. It works. Finally. Still a few rough edges that need fixing however. 2018-08-04 11:43:41 +10:00
Matthew Miller
6b5f218809 Basically finish the state system. Just 1 more bug that I'm encountering. 2018-08-04 11:43:41 +10:00
Matthew Miller
4938f419ad Almost finished the state system. Just got to have it actually load in the values. 2018-08-04 11:43:41 +10:00
Matthew Miller
3e1d438565 Get it to a point where it works minimally on 1.13 Spigot. 2018-08-04 11:43:41 +10:00
Matthew Miller
59ca29577c Remove weird TODO import and moved BlockType == Material to BukkitUtil 2018-08-04 11:43:40 +10:00
Matthew Miller
ca06a05117 Update the Bukkit adapter to the Spigot API Preview 2018-08-04 11:43:40 +10:00
Matthew Miller
e1c2ea3a3b Update configs, and remove unused BlockData methods. 2018-08-04 11:43:40 +10:00
kashike
a48c319e7e package move 2018-08-04 11:43:40 +10:00
Matthew Miller
7db443a69a Migrate the logic for which pass a block goes into. Also updated it and made it use tags where possible. 2018-08-04 11:43:40 +10:00
Matthew Miller
57c13ef8f4 Continue moving out of legacy BlockType 2018-08-04 11:43:40 +10:00
Matthew Miller
11f5d05e7b Update BlockState to remove legacy ID usage. 2018-08-04 11:43:40 +10:00
Matthew Miller
93b225ca3c Expose a way of switching between ItemType and BlockType for ItemBlocks. 2018-08-04 11:43:39 +10:00
Matthew Miller
b06937d1c8 Setup a legacy mapper system. The file does not exist yet. 2018-08-04 11:43:39 +10:00
Matthew Miller
66d70f00e7 Removed more deprecated code 2018-08-04 11:43:39 +10:00
Matthew Miller
282eca7663 Added a category system and refactored registries 2018-08-04 11:43:39 +10:00
Matthew Miller
484687a49d Further work on BlockState transition 2018-08-04 11:43:39 +10:00
Matthew Miller
e99190225e Further BaseBlock modernisation 2018-08-04 11:43:39 +10:00
Matthew Miller
811f1d4433 Rewrote block parsing, and further switch to BlockState 2018-08-04 11:43:39 +10:00
Matthew Miller
5f5a1797ad Remove legacy ServerInterface 2018-08-04 11:43:39 +10:00
Matthew Miller
e2608bc0c9 Further modernise and remove legacy item classes 2018-08-04 11:43:39 +10:00
Matthew Miller
aaaf2d5678 More deprecation removal 2018-08-04 11:43:38 +10:00
Matthew Miller
20bf6e079b Continue the great purge 2018-08-04 11:43:38 +10:00
Matthew Miller
c537a2e948 Remove a tonne of code from WorldEdit. This breaks backwards compatibility. More will be removed. Sorry :) 2018-08-04 11:43:38 +10:00
Matthew Miller
b292a39765 Fixed the fuzzy matcher 2018-08-04 11:43:38 +10:00
Matthew Miller
07ade0b083 Phase 1 of Item conversion 2018-08-04 11:43:38 +10:00
Matthew Miller
d5012bb072 Rename legacy things to bundled things. 2018-08-04 11:43:14 +10:00
Matthew Miller
f5f1d357d9 Get rid of the string equality and convert a few more ID uses over. 2018-08-04 11:43:14 +10:00
Matthew Miller
41a80064f5 I guarantee this is broken. Start some form of string ID for blocks 2018-08-04 11:43:14 +10:00
Qveshn
f680635ded Added customizable command log format (Date+Time are now available)
Added the option format to config files (config.yml + worldedit.properties). By default, current date and time are displayed.
The formatting function is implemented by analogy with the class java.util.logging.SimpleFormatter
2018-05-19 18:47:45 +03:00
Legoman99573
9d61ecfb75
Fixed Grammar Mistakes
Thanks to @kenzierocks for showing me some mistakes i forgot to fix
2018-02-16 11:11:18 -06:00
Legoman99573
63da23a819
Made configuration file comments easier to read
This should make it a little more clearer to read when someone configures WorldEdit config.yml file
2018-02-16 09:24:48 -06:00
Matthew Miller
50f60da69f Prevent players and complex parts being pasted in schematics. 2018-01-02 20:49:36 +10:00
Jesse Boyd
01e082a1a4
Fix FallbackRegistrationListener 2017-09-02 18:09:53 +10:00
Kenzie Togami
d6aa1ad509
Make Java 8 detection work on Java 9
Closes #393.
2017-08-16 16:39:42 -07:00
wizjany
f34bc7aca5 Updated Bukkit to 6.1.7.3 for MC 1.12.1 and Forge to 6.1.8 for MC 1.12. 2017-08-05 12:18:52 -04:00
Jesse Boyd
dd00bb13c6 Restrict command & structure block placement
You can't place these blocks without Op & Creative;
WorldEdit should also disable placement of them by default.
2017-06-08 10:01:23 -04:00
wizjany
a4f1f57c9d Add Bukkit adapter for 1.12.
Fixes WORLDEDIT-3567.
2017-06-08 10:01:23 -04:00
wizjany
82fdab35d1 Update 1.11 adapter with md_5's fix.
Fixes WORLDEDIT-3524.
2016-12-02 15:27:56 -05:00
wizjany
cd266ad96c Add adapter for CraftBukkit 1.11 2016-11-17 22:23:59 -05:00
wizjany
ac1b4f7251 Add adapter for 1.10. Currently untested. 2016-06-09 10:17:52 -04:00
wizjany
a5f5dc099b Disable left-click air task creation.
This should really not be necessary anymore.
Reverts 13f36757.
Fixes WORLDEDIT-3444.
2016-05-29 00:54:58 -04:00
wizjany
32fb5b302d Ignore PlayerInteracts with off-hand item.
Fixes WORLDEDIT-3437
The API will need to be changed to accomodate off-hand tools etc
2016-05-15 03:29:58 -04:00
wizjany
7be1395ae2 Add 1.9.4 adapter.
Fixes WORLDEDIT-3438.
2016-05-15 03:17:29 -04:00
Kenzie Togami
301d02c9c5 Warn when not using Java 8 or greater.
Note: this warning is not in the shared WorldEdit class because it
doesn't get loaded as early as the individual plugin/mod
implementations for some reason.
2016-05-05 17:55:22 -07:00
wizjany
6c03eea9b1 Force compilation on newer bukkit api.
Since spigot like pulling the rug out from under us.
Fixes WORLDEDIT-3400.
2016-03-07 19:26:16 -05:00
wizjany
de3578137b Add bukkit adapter for MC 1.9. 2016-03-02 18:14:18 -05:00