Commit Graph

207 Commits

Author SHA1 Message Date
Ammar Askar
4b50e0e453 Pass LocalPlayers to the EditSession getters for easy external access 2013-01-12 01:00:06 -05:00
Wizjany
76a77f04e7 Log a few more things. Added BiomeCommands to doc printer. 2013-01-02 02:11:42 -05:00
Wizjany
79802bd4b9 Fix command logging.
No seriously, was the previous code even supposed to work?
2012-12-27 11:47:07 -05:00
Wizjany
6c189c4ff9 Added butcher flag for ambient mobs. 2012-12-25 18:42:43 -05:00
Wizjany
a7b4913f6c Added -d and -n flags for //schem list, allowing sorting by date by oldest or newest, respectively. By default the command should now sort by file name alphabetically. 2012-12-25 17:37:12 -05:00
Wizjany
2aab0369b5 Added ALL and ITEM_FRAME to /remove'able entities 2012-12-25 16:44:54 -05:00
Wizjany
3f9404560e Remove old navigation perms for jumpto and thru 2012-12-24 01:42:55 -05:00
Wizjany
e4771416aa Added new items for 1.4.6
Fix permission for other help command (why are there two?)
- Made registerhelp read from yaml (not that the setting does anything)
Added an option to override data value limits.
- This should fix some mods which use data values above 16
- May cause issues if set to true and people mess with vanilla data values
2012-12-24 01:18:18 -05:00
Wizjany
24662d6365 Add permissions node for help command 2012-12-24 01:13:40 -05:00
Wizjany
fcaafe009c Fixes NPE when attempting to list schematics in an invalid directory. 2012-12-15 13:49:44 -05:00
Wizjany
56d534bf0d Use right config value for butcher radius. Add max radius for butcher. 2012-11-23 20:18:17 -05:00
Wizjany
aadfc30fbb Fix issues with 94619e3f. Closes WORLDEDIT-2221. 2012-11-22 13:32:51 -05:00
adamjones57
36fa04b739 Schematic, not Schemtic.
Typo fix.
2012-11-16 01:40:19 -08:00
aumgn
da400ffdeb Remove deprecated Region#contract/expand(Vector) methods
Those methods hid varargs versions which are not deprecated
2012-11-12 10:36:44 +01:00
aumgn
574f162019 Clean up warnings 2012-11-11 14:38:51 +01:00
manearrior
b352f7321f Added //size -c and //distr -c command options. Describes clipboard. 2012-11-09 19:12:04 +01:00
sk89q
d198961e12 Updated for 5.4.5. 2012-11-03 12:58:04 -07:00
aumgn
7fd5d1b61c Add /center commmand 2012-08-29 11:51:57 +02:00
sk89q
5a1148d954 Added aliases /asc /desc /j for navigation commands. 2012-08-24 20:00:14 -07:00
sk89q
3558d65b79 Added //re and //rep as aliases for //replace. 2012-08-24 19:44:46 -07:00
sk89q
9d5e75b9ec Fixed //gen not having min. arg count of 2. 2012-08-24 19:16:43 -07:00
TomyLobo
0bc9369cc8 Made /butcher print the radius it uses and added an "all" parameter. 2012-08-16 15:30:16 +02:00
TomyLobo
bb5f3477c2 //chunk no longer switches from //sel extend to //sel cuboid. 2012-07-28 14:50:01 +02:00
zml2008
b22921ffa6 Give a better error when a schematic being loaded doesn't exist
Only require the schemaitc format to be provided once more schematic formats are added
2012-05-26 11:06:31 -07:00
zml2008
7b0570f714 Correctly nullcheck biome types in //setbiome
Biome changing is no longer supported in SpoutAPI, will reimplement when I have time
2012-05-26 10:55:14 -07:00
TomyLobo
f910fe4e66 Added //generate -c, which offsets the input coordinates from the selection center. 2012-05-17 12:17:41 +02:00
zml2008
15977e85a5 Add a -f flag to //schem l to make it ignore format checks 2012-04-28 10:30:21 -07:00
aumgn
cd64ca459d Add config entries for polygonal region points limit 2012-04-23 11:39:09 +02:00
zml2008
7dafb50999 Added some permissions and improved //schem list output 2012-04-15 18:33:28 -07:00
aumgn
8c36047cbb Fix warnings 2012-04-10 13:12:24 +02:00
zml2008
43a54a7ee0 Show schematics where the format could not be detected.
Add permissions for //schem list and formats (worldedit.schematic.(list|formats)
and added .schematic. permissions for load and save.
Made //schem <list|formats> accessible via console and cleaned up a bit.
2012-04-07 10:34:21 -07:00
zml2008
c76f119fa4 Added basic entity handling with copy and paste.
Paintings do not currently respawn properly, entity pastes cannot be undone yet, and schematics do not yet store entities
@celticminstrel needs to fix painting spawning
2012-03-29 21:18:14 -07:00
zml2008
33752eb058 Added a command to list schematics and the abilitiy to autodetect schematic format 2012-03-28 13:04:09 -07:00
zml2008
7812dd6a09 Added support for multiple schematic formats 2012-03-28 11:05:52 -07:00
zml2008
1bd8764090 Corrected flag checks for biome commands 2012-03-28 11:04:59 -07:00
zml2008
34c366d852 Added a command to set biomes. Currently requires a relog for the changes to be visible clientside and is not preserved between chunk regenerations 2012-03-20 23:40:35 -07:00
aumgn
a8eeacccd4 Add biome support
Add a BiomeTypes interface
Add methods in ServerInterface to retrieve the implemented BiomeTypes
Add a getBiome method to LocalWorld and subclasses
Add /biomeinfo & /biomelist commands
Add a BiomeTypeMask
Closes #181
2012-03-20 18:09:48 -07:00
TomyLobo
cfb19eba9b Made //undo and //redo disregard global masks. 2012-03-20 18:21:38 +01:00
Wizjany
4e081b8028 Forgot to git add this file, thanks Moo0 2012-03-18 09:20:08 -04:00
aumgn
499f3ccda7 Add a -f (friendly) flag to butcher 2012-03-17 09:46:24 +01:00
Jadedwolf
b2eb2741eb Temporary solution to fix Golems being butchered. This includes Iron and snow golems. 2012-03-17 09:25:57 +01:00
aumgn
857f721bb5 Add support for expand with reverse dir for Cylinder & Ellipsoid 2012-03-15 08:51:37 +01:00
aumgn
760f77e681 Make inset/outset use varargs contract/expand, so they can be used with cylinders and ellipses. 2012-03-15 08:31:40 +01:00
aumgn
8506bb437e Deprecate expand/contract(Vector) in favor of varargs versions
This keeps things simpler by not dealing with redundant implementations
for single change and multiple changes.
This also let regions handle related changes in a more efficient way
(for example recalculates region components only when needed).
2012-03-15 08:31:39 +01:00
SpectralEdge
94619e3fe4 Added default radius setting for butcher and added permissions for killing pets, npcs, and non hostile animals. 2012-03-06 16:07:18 -08:00
TomyLobo
8aa65fd7f4 License block changes
Added some missing license blocks
Added "and contributors" to all copyright notices.
Added $Id$ to files that were still missing it.
Changed "All rights reserved" to GPLv3 on Injector.java.
2012-01-20 08:24:32 +01:00
Yetanotherx
8a24fd9741 Add a cylindrical region selector.
- Supports shift
- Supports expand/contract on the y axis
- getArea is slightly inaccurate, but more accuracy would mean more CPU usage.
- Displays as a cuboid in legacy mode.
2012-01-03 23:35:29 +01:00
TomyLobo
3a828c9759 Added Region.shift
- Provided a default implementation using expand+contract in AbstractRegion
- Overrid the implementation in the subtypes
2012-01-03 17:40:36 +01:00
Yetanotherx
3b87953da0 Add cuiVersion to LocalSession and set it via incoming CUI event
Refactor region selectors to handle legacy versions a bit better.
Because chat doesn't allow the section sign to be sent, I have to send non-color codes. Meh.
closes #158
2011-12-31 22:31:05 -08:00
TomyLobo
616f9a2360 Added support for ellipsoid and sphere selections.
//sel ellipsoid, //sel sphere.
2011-12-30 12:02:15 +01:00
zml2008
76f1ea9cf2 Added a gravity brush. 2011-12-28 02:04:27 -08:00
zml2008
70207f1370 Added //desel or //deselect as aliases for //sel 2011-12-27 14:21:18 -08:00
zml2008
8cdfd65218 Added WECUI protocol version support. Eventually, this will disable WECUI until the user updates, but not yet. 2011-12-27 14:03:06 -08:00
TomyLobo
370ca96a44 Fixed //sel selection clearing not being dispatched to CUI. 2011-12-27 12:23:09 +01:00
TomyLobo
7d503fdc5c //sel poly now keeps the previous selection, converting its outline into a polygon if necessary.
This loses some blocks, if anyone cares
2011-12-27 12:07:11 +01:00
TomyLobo
324a041e38 Split up some external .* imports. 2011-12-26 00:36:23 +01:00
TomyLobo
479253821e Fixed //help and /we help after zml2008 broke it :) 2011-12-22 11:38:12 +01:00
TomyLobo
050442fac3 Added a -l flag to /butcher, which spawns fake lightning on all killed entities. 2011-12-21 19:03:21 +01:00
TomyLobo
09a92fa76c Added a block/pattern parameter to //hollow.
Also made a few variables final and optimized the thickness algo a bit.
2011-12-20 12:53:26 +01:00
TomyLobo
633f6643a5 Added a thickness parameter to //hollow. 2011-12-19 11:58:38 +01:00
TomyLobo
936aff06b2 Fixed //stack -s (again). 2011-12-18 22:46:09 +01:00
TomyLobo
4b3564a9ac Fixed a warning. 2011-12-18 09:31:47 +01:00
zml2008
4dc3c035c1 Updated to use simplified method signature for commands. Also improved SimpleInjector. 2011-12-17 23:45:12 -08:00
TomyLobo
a4d82be697 Made /butcher, /searchitem and /worldedit work on the console and added /we help as an alias for //help. 2011-12-15 15:46:32 +01:00
TomyLobo
af6455ea6b Made //help sort // commands ignoring prefixed slashes. 2011-12-15 06:28:09 +01:00
TomyLobo
05404b005d Added a //help command. 2011-12-13 09:43:39 +01:00
zml2008
98216e2762 Added support for non-128 worldheights 2011-12-13 04:50:53 +01:00
TomyLobo
f5c6678da6 Added an extending cuboid selector.
It can be used with //sel extend.
Also made //sel carry over some information about the selection into the new selection mode.
Also cleaned up the source of the RegionSelectors and the //sel command a bit.
2011-12-12 05:27:33 +01:00
TomyLobo
2e1087a49a Added a //hollow command, which hollows out the object contained in the selection. 2011-12-08 11:54:49 +01:00
TomyLobo
d69863db59 Fixed unimportant typos. 2011-12-06 13:59:41 +01:00
TomyLobo
c21c380bba Added a -a flag to /butcher to kill animals. Its now disabled by default. 2011-12-06 07:10:15 +01:00
TomyLobo
bc3a4377ec The /butcher command no longer kills NPCs, except when the -n flag is passed.
Also:
- Moved some code from BukkitWorld to LocalWorld.
- Replaced the "boolean killPets" argument by an "int flags" to provide extensibility
- Made the radius argument a double
- Basically rewrote the entire function
- Deprecated all old versions of killMobs
2011-12-06 06:50:11 +01:00
TomyLobo
4c9e0a629f Added help text for most commands that take flags.
//generate, //regen, //deform, //[h]cyl, //[h]sphere, //chunk, //outset, //inset, //stack, //move, //smooth, //paste, //flip, /search //distr /butcher, //brush sphere/cyl/clipboard/smooth
Only //replace and /replacenear are still missing.
2011-12-06 06:50:10 +01:00
TomyLobo
258bdc11b0 Fixed //stack -s only shifting by 1 block, regardless of the selection size. 2011-12-05 23:23:52 +01:00
TomyLobo
274ecaadf2 Changed a usage string. 2011-12-05 23:23:51 +01:00
TomyLobo
259003d030 Corrected a command description. 2011-12-05 08:56:49 +01:00
TomyLobo
5d59dd764e Changed getSafe*File to accept varargs instead of arrays. 2011-11-27 05:29:49 +01:00
TomyLobo
7e13b60a51 Cleanup 2011-11-23 04:48:40 +01:00
zml2008
256897f473 Added seperate permissions for jumpto/thru commands and tools 2011-11-11 15:39:42 -08:00
zml2008
04803de8b1 Fixed some NPE's for block types not in BlockType. 2011-11-02 22:51:48 -07:00
TomyLobo
ff03d03fd7 Cleanup 2011-11-02 03:41:22 +01:00
TomyLobo
2ee36f7484 //generate and //deform no longer behave oddly with selections that are only one block thick in either direction. 2011-11-01 16:32:56 +01:00
TomyLobo
4f1196ce2d Added a //deform command, which deforms a region given an expression that operates on the x/y/z variables. 2011-11-01 15:27:13 +01:00
TomyLobo
a5e5880064 Moved shape generation to EditSession.
Also refactored it to get rid of the 3 different anonymous classes.
2011-11-01 15:27:12 +01:00
TomyLobo
478d6f6e54 Added support for type/data to //generate. 2011-11-01 14:31:33 +01:00
TomyLobo
8a83f7f70e Added support for custom materials to ArbitraryShape and adjusted //generate accordingly. 2011-11-01 14:28:03 +01:00
TomyLobo
6b0f237a46 Removed extra fastLighting flag.
Fast lighting is now used when available.
2011-10-31 03:28:05 +01:00
Wizjany
2719308ada Made //fast display a different message if the argument matches the current mode 2011-10-29 13:32:51 -04:00
Wizjany
699807665d Cleanup 2011-10-29 11:57:45 -04:00
TomyLobo
58be9d9be4 Added support for stretched cylinders and brought their profile in line with that of the central layer of a sphere of the same x/z radius. 2011-10-28 20:34:08 +02:00
TomyLobo
318e81886c Removed -q flag from //[h]sphere and the code to back it.
The speed difference between the "flexible" and the "quick" variant is so minor that it doesn't justify the aditional code complexity.
2011-10-28 15:10:14 +02:00
TomyLobo
f6f08da620 Cleanup 2011-10-27 19:29:02 +02:00
TomyLobo
0ca66ce350 Moved check for fastLightingAvailable from BukkitWorld.fixAfterFastMode to fixLighting and adjusted the description for //generate. 2011-10-26 23:24:23 +02:00
TomyLobo
9fa5c4030b Added a //g[en[erate]] command, which generates a shape according to a mathematical formula.
(result > 0) = true = inside
(result <= 0) = false = outside.
2011-10-25 18:46:14 +02:00
TomyLobo
ef88c04550 Gave //fast an on|off parameter and adjusted its message to reflect a future change. 2011-10-24 04:33:19 +02:00
Meaglin
b17fb7eaa3 Adding /snapshot sel [index] to select a snapshot by list index. 2011-10-02 00:10:27 -04:00
Wizjany
868fef813f Changed pyramid command usage 2011-09-26 01:43:39 -04:00
Wizjany
b5b55a2775 Cleanup and a few bugfixes 2011-09-24 15:24:10 -04: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
67a7969cd1 Added a tool that allows a player to place and remove blocks at a distance. 2011-09-18 21:53:29 -04:00