Commit graph

910 Commits

Autor SHA1 Nachricht Datum
Erik Broes
bcdad9f837 Fix snowball not recognizing int damage values properly from Craftbukkit -- Thanks Sleaker 2011-12-29 20:15:06 +01:00
EvilSeph
8b735bf47a Made startup completion time actually be reported in seconds. Again. 2011-12-27 20:10:49 -05:00
EvilSeph
8b21a0eeef Disconnected means disconnected. 2011-12-27 19:57:54 -05:00
sunkid
066a95769c fixed double firing of EntityDamageByEntityEvent 2011-12-27 20:21:28 +01:00
sunkid
5adcf526ab moved firing of ProjectileHitEvent for mojang projectiles 2011-12-27 19:33:28 +01:00
Tahg
81c751a8a3 Fix for water and lava removal in creative mode BUKKIT-362 2011-12-20 21:20:43 -05:00
Tahg
474b7838a6 Fix for big trees not growing BUKKIT-304 and BUKKIT-365 (thanks M D) 2011-12-20 18:02:39 -05:00
Tahg
299a0d0919 Fixed signs being editable after placement. Fix for BUKKIT-364 2011-12-20 18:02:39 -05:00
Nathan Adams
972b2087f2 Fixed bonemeal not being consumed on failed growth attempts. This fixes BUKKIT-337. Thanks to md-5 for the pull request! 2011-12-19 16:41:55 +00:00
Nathan Adams
bea7b1373e Fixed vanilla->bukkit world migration for The End. This fixes BUKKIT-326. Thanks to chewi for the pull request! 2011-12-19 16:26:11 +00:00
Andrew Ardill
b0ab686964 Avoid some avoidable calls, clean PluginManager accessors 2011-12-19 18:32:35 +11:00
Sam Wilson
a7744ac751 Prevent VehicleEnterEvent being sent when player exits vehicle.
Fix for BUKKIT-223.

Issue BUKKIT-223: When a player exits a minecart or boat, both a
VehicleExitEvent and a VehicleEnterEvent are fired.  Only the
VehicleExitEvent should fire.

Reason for bug: This occurs because the VehicleEnterEvent is fired in
EntityBoat.b and EntityMinecart.b *any* time a player right-clicks on
a vehicle, whether the right-click is to enter the vehicle or exit it.

Fix: By moving the creation of VehicleEnterEvents from EntityBoat.b
and EntityMinecart.b to Entity.setPassengerOf, we can create either a
VehicleEnterEvent or a VehicleExitEvent, depending on whether the
player is entering or exiting a vehicle.
2011-12-19 18:22:38 +11:00
Nathan Adams
e1586e017a ... Fixed dispensers again! 2011-12-12 21:49:35 +00:00
Nathan Adams
5412d6f5a8 Fixed crash with dispensers dispensing dispensables 2011-12-12 21:23:46 +00:00
EvilSeph
bd181fa04e The dead are not meant to walk. Fixes BUKKIT-95. Thanks Evenprime! 2011-12-12 12:50:10 -05:00
Nathan Adams
b653ce3c1c Implemented (offline)player date methods 2011-12-12 17:39:52 +00:00
Andrew Ardill
82965eb10f Stop converting ItemStack to nms ItemStack by hand
This should fix many issues with enchantments being lost, as the method used takes care of enchantments.
Additionally, use the new nms ItemStack constructor in places where appropriate.

Fixes (at least part of) BUKKIT-7. Need to identify any further places to fix.
2011-12-13 01:46:55 +11:00
Andrew Ardill
d34e289434 Teach nms ItemStack constructor how to take enchantments 2011-12-13 01:45:58 +11:00
EvilSeph
14754c71a2 Added missing CraftBukkit comments in previous commit. 2011-12-12 03:16:50 -05:00
EvilSeph
322330e942 Fixed players not receiving movement packets after trying to leave The End. Fixes BUKKIT-289. 2011-12-12 02:55:20 -05:00
Nathan Adams
b2af70e5c7 Implemented getKiller in LivingEntity 2011-12-11 16:05:27 +00:00
Nathan Adams
1fc8092ea6 Fixed corrupt mob spawners crashing on load - this fixes BUKKIT-69, BUKKIT-144 2011-12-11 15:59:55 +00:00
EvilSeph
88d1512507 Fixed issues with Ender Pearls. This fixes BUKKIT-248 and BUKKIT-264. 2011-12-11 02:13:48 -05:00
Tahg
77c07095bd removed changes to MobSpawner behavior 2011-12-10 17:07:32 -05:00
EvilSeph
de1a32bb16 Fixed spiders not respecting the EntityDeathEvent. This fixes BUKKIT-275. 2011-12-10 15:59:07 -05:00
EvilSeph
ec59dd9173 Fixed issues in our handling of The End as per BUKKIT-11.
This also addresses BUKKIT-27.
2011-12-10 15:15:27 -05:00
EvilSeph
84a19565d4 Fixed (Bukkit multiworld) maps as described in BUKKIT-142. 2011-12-10 15:15:26 -05:00
Erik Broes
f7649724fe Implemented CraftServer.getAllowEnd(). Thanks codename-B! 2011-12-09 18:55:36 +01:00
Nathan Adams
d36ac82c83 Fixed NPE in ServerConfigurationManager when sometimes attempting to flee the End 2011-12-09 17:09:21 +00:00
Nathan Adams
5e43c61fad Implemented onStructureGrow event, thanks to md-5. 2011-12-09 16:11:56 +00:00
Nathan Adams
076460b419 Added ItemDye and WorldGenHugeMushroom for diff visibility 2011-12-09 16:01:37 +00:00
Andrew Ardill
d75d1660b3 Make EntityEnderDragon call the ExplosionEventi
Rather than just creating the event and not worrying any further about it.
Thanks for the heads up snowleo!
2011-12-08 10:30:20 +11:00
Andrew Ardill
b08b85bd26 Teach EnderDragon how to throw EntityExplosionEvents when it breaks blocks
We also teach CraftWorld how to explode an event, taken from
Explosion.a(boolean) (the code that breaks blocks and drops them on the ground).

The EnderDragon has a flag that slows it down when it hits unbreakable blocks:
Obsidian, White Stone or Bedrock. It might be useful to extend the event so that
plugins can set this.

Letting the API set the default yield for an explosion event has been
deprecated, so we now set the default yield using the appropriate constructor.
2011-12-08 00:31:21 +11:00
Andrew Ardill
93a4a9ba8c Teach MinecraftServer how to handle Remote Console commands.
This fixes BUKKIT-220. Thanks for the help bawoodruff!
2011-12-07 17:45:50 +11:00
Tahg
e4a839cbbc Fix for entity spawning and some code cleanup 2011-12-06 19:21:10 -05:00
Tahg
bc8f02788f Performance update to remove several very high counts of temp object creation 2011-12-06 08:52:45 -05:00
Tahg
57112887ca Another fix for enchantments when moving around inventory. (Still glitches visually at times) 2011-12-05 04:02:59 -05:00
Andrew Ardill
bf60f44013 Teach EnderDragon how to throw EntityDamage events
Relates to BUKKIT-129
2011-12-05 19:23:54 +11:00
Andrew Ardill
b1a3aa602a Clean-up some events to maintain general style 2011-12-05 19:23:40 +11:00
Nathan Adams
dbd3ff71fc Implemented server.getOfflinePlayers 2011-12-04 17:57:00 +00:00
Nathan Adams
1dbebb4593 Fixed exp resetting upon teleporting cross-world (fixes BUKKIT-46. Again.) 2011-12-04 12:16:15 +00:00
Nathan Adams
98e062f0cf Fixed a few player-respawn issues. This should resolve BUKKIT-28 (Dupe bug), BUKKIT-29 (Poisons lasting), and BUKKIT-46 (XP resetting) 2011-12-04 12:10:02 +00:00
Nathan Adams
55a532c251 Indicate when a teleport event was triggered by ender pearls or unknown internal teleports 2011-12-04 11:04:14 +00:00
Andrew Ardill
645079be08 Make the EnderDragon respect experience drop set in death event 2011-12-02 21:50:57 +11:00
Andrew Ardill
f15c466e89 Add EntityEnderDragon 2011-12-02 21:50:57 +11:00
Andrew Ardill
480376ef50 Ensure that DeathEvents are raised even for non loot-dropping living entities
Related to BUKKIT-129
2011-12-02 21:38:51 +11:00
Andrew Ardill
8511ef3902 Register damage caused by PrimedTNT entities as BLOCK_EXPLOSION
This fixes BUKKIT-74
2011-12-02 16:55:23 +11:00
Nathan Adams
9fe5529791 Fixed ender pearls ignoring damage cancellation 2011-12-02 00:06:27 +00:00
Nathan Adams
0c958c0dff Fixed exploit with Ender Pearls, and made them perform a damage event. This fixes BUKKIT-38 2011-12-01 23:34:14 +00:00
Nathan Adams
6f79ca5c54 Don't disconnect a player if they're already disconnected (fixes BUKKIT-43) 2011-12-01 22:35:19 +00:00
Nathan Adams
062d94d6bc Implemented 1.0.1 fixes. This fixes BUKKIT-3, BUKKIT-39, BUKKIT-150 2011-12-01 21:43:54 +00:00
Erik Broes
650717ad32 Fire BlockPlace event when placing a lilypad, Thanks DiddiZ; Fixes BUKKIT-162 2011-12-01 21:43:46 +01:00
Erik Broes
51f724f24d Fix missing data-value when placing a stair-block (somehow gets set after the fact) - Fixes BUKKIT-40 2011-12-01 21:03:22 +01:00
Erik Broes
df935a5eed Add more information to 'Fetching addPacket' so we might be able to find the reason why it happens. Gives info for BUKKIT-32 2011-12-01 21:02:59 +01:00
Nathan Adams
4ce061ccbe Fixed Players from technically only dying once (thanks Qala) 2011-11-30 23:45:55 +00:00
Nathan Adams
8fbe78a2c3 Updated to use mc-dev rename revision 1 2011-11-30 21:46:19 +00:00
Erik Broes
67924529a0 Fix drops of StairBlocks 2011-11-30 20:19:15 +01:00
Andrew Ardill
9455ff1777 cleanup of projectiles 2011-11-29 21:30:37 +11:00
Andrew Ardill
a1ad0c0103 Add events for EntitySmallFireball 2011-11-29 21:26:55 +11:00
Andrew Ardill
2759809ecb Fix Craft Entity constructors and toStrings.
Also, standardise getHandle and clean up in general.
getHandle is now using the 'entity' member variable instead of
super.getHandle, as this reduces the number of chained calls needed.
2011-11-29 21:22:35 +11:00
Andrew Ardill
2b751111d2 Add EntitySmallFireball.java from nms 2011-11-29 18:32:16 +11:00
Andrew Ardill
3da00ee41a Implementation of reworked EntityCombustEvents
Also includes some extra comments, and a refactoring of the
PaintingBreakByEntity event that is raised when lighting strikes a painting.
2011-11-29 18:20:21 +11:00
Andrew Ardill
89338db181 BUKKIT-57 Fix using Bukkit interface instead of nmc Entity for type check.
Thanks nidefawl!
2011-11-29 09:42:09 +11:00
Nathan Adams
7db72dfd2c Doors and trapdoors should function correctly once again 2011-11-28 07:00:04 +00:00
Nathan Adams
91b673e375 Ignore empty messages (not just null) for join and quit 2011-11-28 06:21:35 +00:00
Nathan Adams
aa90f2ff9c Made Snowmen obey animal spawning rules (thanks Amaranth) 2011-11-28 05:18:41 +00:00
Andrew Ardill
c0073e466d Add CraftMagmaCube 2011-11-28 11:17:04 +11:00
Nathan Adams
9c2b11ae94 Fixed gravel's enchantment detection 2011-11-27 17:00:20 +00:00
Nathan Adams
f6dc6745ed Fixed EntityDeathEvent not throwing for Ghasts and Pig Zombies (fixes issue #13) 2011-11-27 04:22:24 +00:00
Nathan Adams
139ad8c34a Fixed crash when breaking gravel with a high fortune enchant 2011-11-27 01:41:56 +00:00
Nathan Adams
eb7bd5f23b Implemented Enchantment API 2011-11-27 01:37:00 +00:00
Erik Broes
ba608f55e4 Remove expensive debugcalls from production code 2011-11-26 18:27:39 +01:00
Nathan Adams
9907638130 Fixed ancient vanilla typo in offline mode warnings. Thanks to Alexitaly92 for catching it. 2011-11-26 01:09:04 +00:00
Nathan Adams
256d4ba555 Fixed the NPE in inventoryplayer once again, thanks to don4of4 2011-11-26 01:01:43 +00:00
Nathan Adams
8062d5c7be Added death events for blaze and snowman, fixed reported loot for chickens 2011-11-26 00:56:11 +00:00
Nathan Adams
b9aaf3977c Fixed NPE travelling to the nether from a custom world 2011-11-25 21:10:16 +00:00
Nathan Adams
197fdbd84c Nether portals should now only work in the default world 2011-11-25 20:54:29 +00:00
Nathan Adams
bb16e6c5c1 Fixed portal event reporting wrong from-world 2011-11-25 20:05:51 +00:00
Nathan Adams
a105ec32b3 Fixed comment 2011-11-25 03:50:10 +00:00
Nathan Adams
ef75a286ac Implemented world.getWorldFolder 2011-11-25 03:47:12 +00:00
Nathan Adams
620f101487 Another attempt at the vanilla tile entity bug 2011-11-25 00:15:00 +00:00
Nathan Adams
e31cedf583 Fixed NPE in player inventory + don't ignore the cancel state of world unloads 2011-11-24 20:27:16 +00:00
Nathan Adams
a7664a104f Implemented new age methods in animals, and made spawned animals via eggs properly age back to children 2011-11-24 20:16:43 +00:00
Nathan Adams
47b4406b7e I've either fixed going to The End, or made it worse. I'm sure we'll find out soon! 2011-11-24 20:00:55 +00:00
Nathan Adams
c6beae8872 Fixed allow-nether being ignored 2011-11-24 18:48:01 +00:00
Nathan Adams
de7402ea8e Fixed fireballs sleeping on the job 2011-11-23 03:33:53 +00:00
Nathan Adams
03762600df Fixed trapdoors + few comments 2011-11-23 00:08:56 +00:00
Nathan Adams
774e59e179 Fixed vanillas tile-entity placement bug (thanks Moo0) 2011-11-22 21:14:42 +00:00
Nathan Adams
a3399c6431 Fixed crash on right clicking dragon eggs 2011-11-21 22:56:17 +00:00
Nathan Adams
246ff3b352 Made the new Status info list plugins (test it out at http://dinnerbone.com/minecraft/tools/status/ ) 2011-11-20 00:01:57 -08:00
Erik Broes
345ea36c7b Update for 1.0.0 2011-11-20 00:01:33 -08:00
Nathan Adams
589f66bd1b Added new --noconsole command argument, thanks to mkurzeja for the idea 2011-11-05 20:15:19 +00:00
Tahg
c69f5fda9b added some missing comments for falling entities 2011-10-27 20:03:28 -04:00
sk89q
695f25a32b Added a case previously not covered by VehicleDestroyEvent for boats. 2011-10-13 01:17:04 -07:00
Nathan Adams
75d9b04deb Added new bukkit.yml entry (settings -> world-container) to control the directory worlds are stored in 2011-10-12 04:25:03 +01:00
Nathan Adams
fd57c7111c Fixed fauxSleeping check on leaving bed 2011-10-11 02:38:32 +01:00
Nathan Adams
ac0641887b Fixed Explosion cast error 2011-10-11 02:12:22 +01:00
Nathan Adams
a49a358349 Changing the blockList on explosions now correctly updates which blocks are changed 2011-10-11 00:37:39 +01:00
Tahg
d39c363e5c another attempt at mob spawners - 3rd time's the charm? 2011-10-06 11:02:39 -04:00
Tahg
696349884b don't store weak references for EmptyChunks or cache CraftBlocks 2011-10-05 11:36:03 -04:00
Tahg
8ab90b344c fix for spawners not properly checking whether an entity can spawn 2011-10-05 11:36:02 -04:00
Tahg
d74145ef23 hopeful fix for blocks not being pistons when they should be 2011-10-05 11:36:02 -04:00
EvilSeph
73f419197a Fixed Skeletons not dropping experience. 2011-10-04 10:04:45 -04:00
EvilSeph
09801eeabf Exempted moving pistons from the tile entity fix. 2011-10-03 18:18:14 -04:00
EvilSeph
1f4e671af9 Fixed Silverfish having a base damage of 0. 2011-10-03 17:40:53 -04:00
sunkid
3a224266c4 Fixed PlayerChangedWorld event.
Moved the call of PlayerChangedWorldEvent to more appropriate location
2011-10-03 00:28:47 -04:00
Dinnerbone
80c2bc266a Minimal diffs! Move methods for the new list-name away from nms 2011-10-03 00:37:44 +01:00
Dinnerbone
bf09121354 Attempt to fix any damage caused by misplaced tile entities 2011-10-03 00:14:06 +01:00
sunkid
199a5c2a77 Implemented PlayerChangedWorldEvent. 2011-10-01 15:38:25 -04:00
EvilSeph
d532136903 Fixed bed spawns for multiworld worlds. Thanks Meaglin! 2011-10-01 13:37:20 -04:00
EvilSeph
22baa13894 Painting improvements. Thanks CelticMinstrel!
Implement get/setArt and facing direction for paintings; expanded painting break causes; added painting support to World.spawn
2011-10-01 13:37:03 -04:00
EvilSeph
d53a155e4c Packet handling improvements. 2011-10-01 01:40:08 -04:00
EvilSeph
64322ed26b Added SlimeSplit event. Thanks garbagemule!
The SlimeSplit event is fired when a Slime attempts to split upon death.
The event may be cancelled, and the amount of smaller slimes may be
customized.
2011-09-30 19:50:19 -04:00
Tahg
b73d095a9f revert change to make mobspawners drop a spawner of that type
removed some debug code
fixed a 1.5 compatibility issue
2011-09-29 15:36:52 -04:00
Tahg
95666779f8 added fallback code for invalid entities from mobspawners 2011-09-27 16:46:29 -04:00
sk89q
40c8cc0421 Fixed monsters being spawned even when one was faux sleeping. Thanks to EdGruberman. 2011-09-26 15:37:38 -07:00
sk89q
afd95b7e30 Added server list ping event. 2011-09-26 15:32:05 -07:00
sk89q
87494d46f8 Added Player.get/setListName to change the name of the player on the player list. 2011-09-26 15:10:35 -07:00
EvilSeph
484376bbac Fixed saturation handling for FoodLevelChange event. 2011-09-26 14:33:37 -04:00
Tahg
31eef6e001 fixed build issues, code cleanup 2011-09-26 04:30:24 -04:00
Tahg
d226e551ae data improvements 2011-09-26 03:07:46 -04:00
sk89q
b7c43fbff1 Boat get/set (double) occupied acceleration, (double) unoccupied deceleration, (boolean) work on land. Good values to maximize boat utility: 0.6 (fast accel.), 0.99 (no loss of boat), true/false, respectively. 2011-09-25 11:20:51 -07:00
Dinnerbone
a1f8d3fd47 Changed max player count from 126 to 60 for ingame player list rendering fixes 2011-09-25 04:14:27 +01:00
Dinnerbone
ceba082703 Implemented getOperators 2011-09-25 03:28:00 +01:00
Wizjany
3c7a843944 Made grass throw a BlockSpread event when growing and a BlockFade event when receding. 2011-09-25 01:54:38 +01:00
Dinnerbone
79e7ae85dd Swapped an =="" for "".equals in EntityHuman 2011-09-25 01:36:05 +01:00
Dinnerbone
44136f2e7d Blocked access to ColouredConsoleSenders constructor, implemented getConsoleSender 2011-09-24 23:14:13 +01:00
Dinnerbone
0118a20d6a Update to mcdev rename revision 01 for 1.8.1 2011-09-24 22:05:22 +01:00
Erik Broes
75ac4e00b2 Cancel bed return method if entity is ignoring sleep. Thanks to EdGruberman. 2011-09-23 21:05:23 +02:00
Erik Broes
a2957c7b8f Stop sending multiple time packets to each client 2011-09-23 20:20:18 +02:00
EvilSeph
e08535d688 Fixed FoodLevelChange event adding too much to the food level. 2011-09-22 15:53:39 -04:00
EvilSeph
a7717d4d79 Added RegainReason.SATIATED.
This reason is used when a player regains health from generating due to their hunger being satisfied.
2011-09-22 01:36:31 -04:00
EvilSeph
aa0739d90a Added FoodLevelChange event. 2011-09-21 22:13:54 -04:00
EvilSeph
8d5a8667de Made death message handling check for 'null' to disable death messages, along with an empty string. 2011-09-21 18:02:59 -04:00
EvilSeph
217b414118 Added EntityDamageEvent for caused by starving. 2011-09-21 17:11:06 -04:00
Rigby
e6e9cec1e9 Added PlayerToggleSprint event and sprinting related API. 2011-09-21 16:25:26 -04:00
Rigby
1da2d1f5b6 Implements the ability to customise and remove Player death messages. 2011-09-21 16:55:27 +01:00
Dinnerbone
59908c43c9 Ok, this'll have to do for exp orbs. 2011-09-21 16:28:46 +01:00
Dinnerbone
02f6e99d9e Let's swap that around. More results! 2011-09-21 16:12:11 +01:00
Dinnerbone
5a8ec0cb9d This should reduce the amount of exp-orbs quite a bunch 2011-09-21 16:07:19 +01:00
Dinnerbone
20ddc944bb Refactored a bunch of death code into the event factory 2011-09-21 15:41:24 +01:00
Tahg
751ab82be0 stopgap build - mostly stable 2011-09-21 08:38:41 -04:00
Tahg
f6ab0f8611 more chest checks 2011-09-21 05:01:44 -04:00
Tahg
75e18f304a better chest fix 2011-09-21 04:26:05 -04:00
Tahg
d06d111b94 fix for stair data 2011-09-21 01:40:18 -04:00
EvilSeph
3f04f04be6 Added/updated EntityDeathEvents to reflect changes to the Vanilla spec. 2011-09-20 23:44:44 -04:00
EvilSeph
0a52c7f334 Made health regeneration only occur if difficulty is set to 0 (Peaceful). 2011-09-20 23:44:43 -04:00
Dinnerbone
e4d58faf5b Fixed NPE when players are killed by (for example) dispensers 2011-09-21 00:50:35 +01:00
Dinnerbone
2d1d86b77e Fixed endermen not loading carried-data properly 2011-09-20 18:52:37 +01:00
Wizjany
2ae6b431b3 Added event for endermen picking up and placing blocks and methods to get/set what an enderman is holding. 2011-09-20 18:49:47 +01:00