Commit Graph

781 Commits

Author SHA1 Message Date
Wizjany
b5b55a2775 Cleanup and a few bugfixes 2011-09-24 15:24:10 -04:00
lahwran
a2e23fedf7 send poly regions to wecui, take 2 2011-09-24 11:45:03 -06:00
TomyLobo
7c18327fdc Fixed extended piston rotation. 2011-09-24 11:20:37 +02:00
TomyLobo
bfc877cdb2 Added rotate code for vines, fence gates and mushroom caps. 2011-09-23 16:32:50 +02:00
TomyLobo
a3cd58fda1 Added flip code for vines, fence gates and mushroom caps. 2011-09-23 14:00:49 +02:00
TomyLobo
4b760fd17b Swapped flipY and flipZ in BlockData.flip and formatted the function more consistently. 2011-09-23 12:50:57 +02:00
Wizjany
2f19edca2a Fixed case fallthroughs in BlockType. 2011-09-22 01:31:35 -04:00
TomyLobo
fa82482823 Added a new test for get[Padded]Slice and renamed testHangingQuote to testUnmatchedQuote. 2011-09-20 03:41:07 +02:00
TomyLobo
67918f171b Internal restructuring of CommandContext
- getJoinedStrings(n) will now return literally everything after the first space following the (n-1)th argument. Mixing flags in after that is undefined
- What was in args before is now a List named parsedArgs, which also no longer contains the command, which was split off into a separate field.
- get[Padded]Slice now operates on the unparsed args with flags and all, allowing whoever uses it (script commands) to obtain a more low-level input.
- Added a test for the exactness of getJoinedStrings and adjusted an existing test to the new old behaviour.
2011-09-20 03:25:35 +02:00
TomyLobo
2d86b1b40d Fixed and cleaned up CommandContext.
- Removed all the inefficient removePortionOfArray stuff and replaced it by ArrayLists that accumulate content instead.
- Added new tests
- Swapped the arguments to assertEquals everywhere. First argument is "expected".
- Fixed warnings in the test case
- I put my original flag parser back and added support for putting flags anywhere. Looks and works better than that undocumented mindfuck zml put there.
2011-09-19 23:14:49 +02:00
TomyLobo
c78e8a10d7 Made shouldNotStack use a HashSet instead of a bunch of or'ed comparisons. 2011-09-19 09:13:51 +02:00
TomyLobo
a4618fa3c0 It just a test case but meh... 2011-09-19 09:08:10 +02:00
TomyLobo
c1f1e29617 Replace ItemType.X.getID() with ItemID.X everywhere. 2011-09-19 08:38:30 +02:00
TomyLobo
16a4e5ccb3 Added/fixed some copyright notices. 2011-09-19 08:24:21 +02:00
TomyLobo
088001f099 Used ItemID in ItemType 2011-09-19 08:08:05 +02:00
TomyLobo
51d4b572cb De-craftbooked some copyright notices. 2011-09-19 07:43:49 +02:00
TomyLobo
5b5c25f1ae Added an ItemID class, containing all the item IDs. 2011-09-19 07:39:28 +02:00
TomyLobo
88b4f4de18 Cleanup.
- Fixed a few warnings
- Unified the formatting of the command prologue
- Put down why it was deprecated in the javadoc of a deprecated method.
- Gave //none a better usage line
- Switchcaseified some elseifs
2011-09-19 07:24:49 +02:00
Wizjany
43809a705d More BlockType cleanup 2011-09-19 00:43:39 -04:00
Wizjany
b413af307a Updated plugin.yml (not that it needs it). 2011-09-19 00:43:38 -04:00
Wizjany
67a7969cd1 Added a tool that allows a player to place and remove blocks at a distance. 2011-09-18 21:53:29 -04:00
Wizjany
1a6bc6f42c Fixed AIOOBE and a missing return, removed an unused and ambiguous method from CommandContext. 2011-09-18 19:11:05 -04:00
Wizjany
dd358bc982 Made floating tree remover work on mushrooms 2011-09-18 02:37:38 -04:00
Wizjany
709cae1995 Removed permissions from plugin.yml for compatibility and cleaned up a bit more. 2011-09-18 02:37:37 -04:00
zml2008
3f369f104a Abstracted type detection of simulateBlockMine into BlockType. 2011-09-17 22:00:14 -07:00
zml2008
a1cf6eb6da Allow //replace to ignore from block damage values (and force them to not be ignored with the -f flag) 2011-09-17 21:50:06 -07:00
zml2008
56fd654eed Fixed bug with unclosed quotes 2011-09-17 21:10:55 -07:00
md-5
46ba1c7f5b Added mob type enum and subsequently removed case sensitivity from //set with mobspawners. 2011-09-17 21:08:15 -04:00
Wizjany
1c4c621500 Cleanup. 2011-09-17 19:32:44 -04:00
Wizjany
f7c5782fa9 Added data support for silverfish blocks. 2011-09-17 14:11:59 -04:00
Wizjany
ece3934994 Abstracted cycler tool methods to BlockData and optimized them slightly, as well as adding support for many new blocks. 2011-09-17 01:44:10 -04:00
Wizjany
b10498b9c7 Added 'xp' as a parameter of the /remove command to remove experience orbs. 2011-09-17 01:44:10 -04:00
TomyLobo
d6ed17dd9d Made some variables final. 2011-09-16 05:48:09 +02:00
TomyLobo
633145d796 Adjusted some BlockType flags.
Beds, glass panes and fence gates should no longer be placed last
Fence gates can no longer be passed through, since they can't, if they're closed.
2011-09-16 05:46:07 +02:00
TomyLobo
7798319896 Optimized all of the public static boolean BlockType.*(int id) functions by using HashSets and put the blockDrops HashMap next to the getDroppedBlock function. 2011-09-16 05:02:39 +02:00
TomyLobo
f0308efdd0 Made the static initializer for BlockType.blockDrops refer to the BlockID constants instead of having the literal IDs. 2011-09-16 03:32:58 +02:00
TomyLobo
19eedecdaf Re-re-introduced a small optimization in the flag parser. 2011-09-16 02:16:11 +02:00
Wizjany
9371202a12 Cleanup BlockType and added a missing block 2011-09-14 21:27:24 -04:00
Wizjany
afa8e873e9 Reverted block id checking in BukkitWorld to prevent false positives and made LoclWorld use the internal list for easier updates 2011-09-14 21:27:24 -04:00
zml2008
bd52ed5c33 Fixed plugin.yml for dumb people 2011-09-14 18:14:42 -07:00
zml2008
75e843b965 Some small improvements to value flags, and a unit test. 2011-09-14 17:59:18 -07:00
TomyLobo
6cdfd86f0b CommandContext:
- Adjusted comment of CommandContext(String[] args, Set<Character> valueFlags) to reflect the actual semantics
- Optimized several parts of the parser (still not happy with the frequent reallocations inside removePortionOfArray)
- Someone (unintentionally?) forgot to break if a non-flag argument was found. If this was indeed intended behaviour, just change the "break;" in line 83 to "continue;".
- Reduced the number of nested control structures a bit.
2011-09-14 18:56:42 +02:00
TomyLobo
cb927d17e1 Fixed a warning. 2011-09-14 18:33:07 +02:00
zml2008
6f43c6a312 Updated for 1.8 blocks and items 2011-09-13 22:47:17 -07:00
zml2008
2f390e9938 Added multiword args and some improvements to value flags. 2011-09-13 22:47:17 -07:00
zml2008
c38a6b0677 Bug fixes 2011-09-09 15:15:03 -07:00
zml2008
6b3f19f857 Minor cleanup of WEPIF constructors 2011-09-07 17:56:39 -07:00
ZerothAngel
703131107d Fix dinnerperms wildcard matching & group enumeration. 2011-09-05 20:53:11 -07:00
zml2008
6f1d263e16 Added getting of the Bukkit player to BukkitPlayer (for RegionBook) 2011-09-04 19:29:45 -07:00
TomyLobo
3bcd9a932b Replaced lots of else if constructs by switch/case and other simpler constructs. 2011-09-05 04:20:36 +02:00
TomyLobo
9ea977af77 Fixed some warnings. 2011-09-04 23:20:03 +02:00
TomyLobo
bb2f8bb350 Cleaned up WorldEdit.getFlipDirection. 2011-09-04 23:18:37 +02:00
Wizjany
e4cd6c23b6 Fixed odd-lengthed clipboards double flipping in the center as per anon's commit(s). 2011-09-03 20:25:20 -04:00
Wizjany
4c00a24c1d Abstracted all block IDs to BlockID and item ids to ItemType. Overloaded recently changed methods for compatibility and cleaned a few things up. 2011-09-03 13:01:51 -04:00
TomyLobo
8c0d0f9ed4 //[h]sphere can now generate ellipsoid (stretched sphere) shapes 2011-09-03 18:59:18 +02:00
TomyLobo
780d07a9ba Fixed a warning. Seriously, guys... 2011-09-02 21:32:23 +02:00
TomyLobo
3205904003 //copy and //paste now respect /toggleplace. 2011-09-02 21:03:22 +02:00
zml2008
bc6315fb24 Fixed getting and setting of blocks in unloaded chunks 2011-08-29 17:31:08 -07:00
zml2008
02d8acfa81 Alowed performing undos from other player sessions, if they exist. 2011-08-29 14:24:46 -07:00
zml2008
a3186c2ce4 Removed old workaround from hmod 2011-08-29 14:24:46 -07:00
zml2008
93fbad4d82 Cleaned up CommandAlias a bit 2011-08-29 14:24:46 -07:00
TomyLobo
d64fd95173 Added support for value flags to the command system 2011-08-29 14:46:36 +02:00
TomyLobo
b8a310dfdc Changed data type of BaseBlock.data from char to byte 2011-08-29 14:46:35 +02:00
zml2008
1562f17540 Added block damage support to //replace and //replacenear 2011-08-29 00:08:06 -07:00
zml2008
d83fed13fb Fixed 43 and 44 block data cycling 2011-08-28 20:46:54 -07:00
zml2008
04dd21d51a Added merging of quoted multiword strings (single or double quotes) into one index, flags can be anywhere in the command args string. Untested and currently unused command aliasing added for moving commands around 2011-08-28 13:00:00 -07:00
TomyLobo
4dcbae03fe Made some variables in CuboidClipboard.flip final 2011-08-28 12:28:31 +02:00
TomyLobo
447de4b206 - CommandContext's valueFlag constructor will now ignore the 0th element of args (no idea why that is even there)
- Limited flags to a-zA-Z
- Passing null to the valueFlag constructor will disable flag parsing altogether
- Adjusted the error message
- Added javadoc to CommandContext(String[], Set<Character>)
- Added CommandContext(String, Set<Character>)
2011-08-27 16:12:49 +02:00
TomyLobo
799b84622f Added support for value flags to CommandContext. 2011-08-26 18:40:51 +02:00
TomyLobo
8ac8cb77a5 Cleaned up bukkit event registration a bit and fixed 2 warnings. 2011-08-26 18:40:21 +02:00
TomyLobo
3f58187790 Fixed sign post flipping 2011-08-26 16:48:31 +02:00
TomyLobo
c6843a2c6d When flipping a door upside-down, the top and bottom parts are now swapped. 2011-08-26 14:08:02 +02:00
TomyLobo
c8bbcbd133 Fixed flipping of the central blocks in a clipboard with odd length. 2011-08-26 14:04:38 +02:00
TomyLobo
8e84e7ae18 - Added proper block flipping code for all blocks with proper rotation code except sign posts
- Fixed block rotation code for some blocks and cleaned it up a lot
- Added block rotation code for powered rails and detector rails
- //flip now flips all blocks, not just half of them
2011-08-26 13:14:39 +02:00
TomyLobo
2281684f20 - Added a -p flag to //flip that makes it flip around the player instead of the center of the clipboard.
- Code cleanup
2011-08-26 05:04:07 +02:00
zml2008
84ed4bf4c3 Added PermissionsEx support to WEPIF. 2011-08-24 23:58:06 -07:00
Wizjany
da6e6da024 Cleanup. Added toString override for polygonal regions. 2011-08-24 18:27:18 -04:00
Droolio
26d07b4ca4 Fixed polygonal edges with explicit test for point-on-line segment
Closes pull #136
2011-08-24 00:19:00 -07:00
zml2008
2af38feadc Added a generic injector for commands 2011-08-24 00:17:27 -07:00
zml2008
ef60fa94bf Typo fixes 2011-08-24 00:17:27 -07:00
masteroftime
63262dbd5f Corrected number of arguments in //pos2 2011-08-22 23:05:31 +02:00
zml2008
91b7b8444f Added pattern support to /replacenear, //walls, and //faces 2011-08-21 23:56:10 -07:00
zml2008
9e13e25760 Fixed floodfill usage 2011-08-21 23:56:10 -07:00
TomyLobo
9de9004834 - Moved Bukkit event registration from WorldEditPlugin into the respective listeners.
- Changed registerEvent to the string-based system WorldGuard has, which should improve compatibility with differing Bukkit versions.
2011-08-21 23:05:03 +02:00
TomyLobo
d12bff993b Added //-prefixed aliases for most /-prefixed commands 2011-08-21 22:35:27 +02:00
Wizjany
a9498d2c68 Stop working around broken stuff and do it like we always have. 2011-08-21 11:47:29 -04:00
TomyLobo
e09a66d859 Gave /green a larger "ignored blocks" set. 2011-08-20 15:51:25 +02:00
TomyLobo
2893438f8e /green now fails a bit less. 2011-08-20 15:18:17 +02:00
zml2008
3c92bd9451 Worked around brokenness in PlayerInteractEvent 2011-08-17 13:38:23 -07:00
zml2008
59ade7a386 Abstracted natural blocktype checking to BlockType.isNaturalBlock 2011-08-17 13:36:17 -07:00
TomyLobo
93620ec168 The /green command should now only affect dirt on the top layer. 2011-08-17 13:19:35 +02:00
zml2008
2b94ddf7ed Added flag to //smooth to only use "natural" blocks 2011-08-17 00:33:46 -07:00
zml2008
c99d64cfa0 Removed unnecessary valid block checking (already in LocalWorld) 2011-08-16 22:29:06 -07:00
zml2008
a313f2e93e Made events respect isCancelled() 2011-08-16 18:39:07 -07:00
Wizjany
4d6bb6d746 Prevent setting blocks to items due to Bukkit's Material containing both. 2011-08-16 19:31:22 -04:00
zml2008
3f0da63b01 Fixed dinerperms groups and bridge detection. 2011-08-16 14:05:45 -07:00
TomyLobo
151b4c0fa1 Added a /green command, which greens the surrounding landscape. 2011-08-16 18:43:13 +02:00
TomyLobo
6c5d1236c7 Fixed non-integer radius support for /thaw and /snow. 2011-08-16 18:42:29 +02:00
TomyLobo
ea445ebcf5 Added a -s flag to //chunk, which extends your current selection to the encompassed chunks. 2011-08-16 10:10:23 +02:00
TomyLobo
c79d90bb99 Added support for non-integer radius to //fill, //fillr, //drain, //fixlava, //fixwater, //snow and //thaw. 2011-08-15 14:35:21 +02:00
TomyLobo
a57830706e Added support for non-integer radius to //superpickaxe recursive and improved performance a bit by making the recurse method static. 2011-08-15 14:22:35 +02:00
TomyLobo
e67ea1e769 Commands that consider the player's look direction now also use up/down when the player's pitch is outside the [-67.5;67.5] interval. 2011-08-15 14:09:19 +02:00
TLUL
22cbc90b6d setTypeIdAndData in LocalWorld is no longer abstract - it now defaults to calling setBlockType and setBlockData. Restores compatibility with SinglePlayerCommands 2.10_2. 2011-08-14 03:48:18 -04:00
Wizjany
9d753c8692 Cleanup overlay/underlay mask. 2011-08-13 01:04:59 -04:00
TomyLobo
af2429467d Optimized //(h)sphere a bit and made the shell for //hsphere as thin as possible. 2011-08-12 08:20:40 +02:00
TomyLobo
b74670fda6 Fixed a warning 2011-08-12 08:20:40 +02:00
X1337X
bc31e4c20a Removed the >, or <, from the over and underlay masks - command is now /mask >id,id,id 2011-08-11 22:56:24 +02:00
X1337X
43bba317e5 Added overlay and underlay masks 2011-08-11 21:44:54 +01:00
masteroftime
750d6dd1d0 Destroying tall grass with superpickaxe now randomly drops seed 2011-08-11 19:27:00 +02:00
Wizjany
46e37017bf Whitespace police 2011-08-10 18:36:26 -04:00
masteroftime
7b306160d7 Added optional position parameter to //pos1 and //pos2 2011-08-10 18:36:26 -04:00
hretsam
ddcf948974 Fixed issue #376 "right-clicking with a compass on a door is treated if the door was not there and the left mousebutton was clicked."
Also when you use the compass for jumpto/thru it wont interact with items anymore.
2011-08-10 18:36:25 -04:00
TomyLobo
5e45fd1625 Disabling global masks while regnerating because they only affect the area outside the selection. 2011-08-10 04:16:54 +02:00
TomyLobo
2af31fe231 Added position logging to /up, /ceil, position+orientation+region logging for the script commands and changed the logging for //move and //stack to orientation+region 2011-08-09 01:23:16 +02:00
TomyLobo
d30cad6340 Added ORIENTATION_REGION and ALL LogModes, which log orientation+region and position+orientation+region respectively. 2011-08-09 01:23:08 +02:00
TomyLobo
e320d34b32 Added an optional on/off argument to the toggle pickaxe command. 2011-08-09 00:19:58 +02:00
TomyLobo
cc917b424c Added position/region logging. 2011-08-08 14:40:02 +02:00
TomyLobo
6f79df8398 Added to toString() method to CuboidRegion. 2011-08-08 14:39:16 +02:00
TomyLobo
2c155c241b Added an invokeMethod hook to CommandsManager, that wraps method invocation and can be overridden 2011-08-08 14:06:28 +02:00
TomyLobo
96eb94155c Fixed the desciption of the //outline (//faces) command. 2011-08-08 09:20:55 +02:00
TomyLobo
7a3ddfe7bc Fixed //flip sometimes throwing errors about unknown directions. 2011-08-08 09:19:24 +02:00
TomyLobo
8d688165ee Fixed exceptions in //brush since build #115. 2011-08-08 02:23:42 +02:00
Wizjany
b8a987b204 Cancel scheduler tasks onDisable to prevent nag warnings 2011-08-07 11:57:32 -04:00
zml2008
0f73533199 Fixed some more warnings 2011-08-07 01:08:40 -07:00
zml2008
cea080e7c7 Added Nijiperms bridge detection, allowing DinnerPerms to no longer conflict with everything else by default. 2011-08-07 01:00:48 -07:00
TomyLobo
0040ba9867 Added support for non-integer radius to the sphere, cylinder, smooth and extinguish brushes. 2011-08-07 05:24:20 +02:00
TomyLobo
57b5c5b546 Added support for non-integer radius to //cyl, //hcyl, //sphere and //hsphere 2011-08-07 05:24:19 +02:00
TomyLobo
9d98ca3db8 Added library support for non-integer radius spheres and cylinders. 2011-08-07 05:19:17 +02:00
TomyLobo
a527b59770 Fixed more warnings. 2011-08-07 02:53:48 +02:00
hretsam
282b3fbd05 Merge branch 'master' of git@github.com:sk89q/worldedit.git 2011-08-07 02:42:12 +02:00
hretsam
2342acfae2 Added pyramid generation with /pyramid & /hpyramid 2011-08-07 02:40:48 +02:00
TomyLobo
79f8a032f3 Fixed warnings. 2011-08-07 02:34:30 +02:00
Wizjany
02e24ed824 Removed and reimplemented mrapple's selection at a distance. It is now a brush tool, meaning it can be bound as other tools can and it subject to Nichts' /range command, so you can select points in midair. 2011-08-06 19:22:10 -04:00
zml2008
266f272d88 Moved WEPIF config to a global config file. Permissions configured per-plugin are not migrated to the global config. 2011-08-06 00:35:40 -07:00
Elizabeth Jennifer Myers
501c9fa482 Merge branch 'master' of https://github.com/sk89q/worldedit 2011-08-05 15:36:43 -04:00
Elizabeth Jennifer Myers
4aa9f7d35b EditSession: Fix hcyl height checks.
The height check was incorrect for certain height/position combinations,
causing the cyl to be the wrong length.

Closes #119
2011-08-05 15:34:05 -04:00
hretsam
2068189cf5 Added multiworld support for snapshots.
Added robinjam's nether support (Thank you robinjam!)
2011-08-05 12:35:38 +02:00
hretsam
f8c53a06bf Merge branch 'master' of git@github.com:sk89q/worldedit.git 2011-08-05 12:30:27 +02:00
hretsam
990915b23f Merge remote-tracking branch 'remotes/pull_117/multiworld-snapshots' 2011-08-05 12:29:49 +02:00
zml2008
37f8b8927a Made getGroups() work properly for nijiperms. 2011-08-04 21:58:14 -07:00
sk89q
8ea980a303 Changed //smooth to smooth nearly everything. 2011-08-02 15:52:58 -07:00
sk89q
8bb0629d79 Added //naturalize. 2011-08-02 15:52:57 -07:00
zml2008
9343b3d1a8 Changed the DinnerPerms priority to not be overridden by permissions bridges 2011-08-01 21:10:13 -07:00
zml2008
cb7ec82905 Added DinnerPerms support to WEPIF 2011-08-01 21:02:15 -07:00
zml2008
2efa37f0b2 Fix for bukkit note block changes 2011-07-31 22:11:45 -07:00
mrapple
894ebec740 You may now select pos1/pos2 from a distance! 2011-07-23 11:34:28 -05:00
mrapple
40772cbc67 I had just compiled this, not sure how that errors slipped through 2011-07-23 10:54:38 -05:00
mrapple
15b97782c4 Remove unnecessary player animation event, just use player interact instead 2011-07-23 10:51:31 -05:00
Jacob Scott
86d12a62a0 superpickaxe on a piston head wont drop an unplacable block 2011-07-15 03:22:58 -05:00
Jacob Scott
66dcc99809 fixed superpickaxe for gravel & lightstone, preprocessors faster than postprocessors, added methods so same-type changes are visble client-side, fixed fixliquid & setblocks block count 2011-07-15 02:00:48 -05:00