Commit graph

1138 commits

Author SHA1 Message Date
CraftBukkit/Spigot
4c1cb5c8a7 Implement per-player Weather API. Adds BUKKIT-812
By: T00thpick1 <t00thpick1dirko@gmail.com>
2012-12-20 16:51:27 -05:00
CraftBukkit/Spigot
206334875b Implement new cause versions of BlockIgniteEvent. Addresses BUKKIT-3609, BUKKIT-3656, BUKKIT-3657
By: Yariv Livay <yarivlivay@gmail.com>
2013-03-17 22:46:48 +02:00
CraftBukkit/Spigot
9262bc5393 Make CraftMinecartHopper work as InventoryHolder. Adds BUKKIT-3796
By: Michael Limiero <mike5713@gmail.com>
2013-03-17 15:50:34 -04:00
CraftBukkit/Spigot
e3356c9896 Implement Entity.isOnGround(). Adds BUKKIT-3787
By: Chad Waters <authorblues@gmail.com>
2013-03-17 11:51:11 -04:00
CraftBukkit/Spigot
2cad34e872 Use name given to command block instead of "@". Fixes BUKKIT-3803
By: Travis Watkins <amaranth@ubuntu.com>
2013-03-17 20:18:11 -05:00
CraftBukkit/Spigot
002dd2b7cd Implement Hopper block state and inventory methods. Adds BUKKIT-3749
By: Michael Limiero <mike5713@gmail.com>
2013-03-16 00:46:35 -04:00
CraftBukkit/Spigot
f48f89f433 Handle double trapped chest inventory. Fixes BUKKIT-3772
By: Travis Watkins <amaranth@ubuntu.com>
2013-03-16 17:14:21 -05:00
CraftBukkit/Spigot
639ef2bd3c Use Chest block state for trapped chests. Fixes BUKKIT-3762
By: Travis Watkins <amaranth@ubuntu.com>
2013-03-16 09:46:32 -05:00
CraftBukkit/Spigot
7e0364660a Limit mob names to 64 chars to avoid client crash. Fixes BUKKIT-3753
By: Travis Watkins <amaranth@ubuntu.com>
2013-03-16 08:31:03 -05:00
CraftBukkit/Spigot
afd0b4899b Handle the newly refactored minecarts.
By: Wesley Wolfe <weswolf@aol.com>
2013-03-15 23:09:04 -05:00
CraftBukkit/Spigot
bb2baf6ba7 Use proper naming convention for boolean methods.
By: Travis Watkins <amaranth@ubuntu.com>
2013-03-15 14:25:37 -05:00
CraftBukkit/Spigot
18164ee949 Update CraftBukkit to Minecraft 1.5
By: Travis Watkins <amaranth@ubuntu.com>
2013-03-13 17:33:27 -05:00
CraftBukkit/Spigot
0d9124396f Close inventory on teleport. FIXES BUKKIT-3021.
By: Andrzej Pomirski <andrzejp@dysleksja.pl>
2013-02-09 23:38:53 +01:00
CraftBukkit/Spigot
d748630f56 Set CraftTravelAgent.DEFAULT to a non-null value. Fixes BUKKIT-3578
Currently, CraftTravelAgent will call s() on the passed-in WorldServer in order to set DEFAULT. However, s() will always return null at this point, because WorldServer.P will still be null, as it is set after the constructor is called. Instead, we set CraftTravelAgent.DEFAULT to the instance that is being constructed.

By: James Clarke <jamesrtclarke@me.com>
2013-02-05 20:34:02 +00:00
CraftBukkit/Spigot
17edfeaed3 Use entity UUID instead of EntityID for metadata. Fixes BUKKIT-3582
The entity id is a non-unique, non-persistent value, and will cause
entities to lose their respective meta data on chunk unloading, and
teleportation.

By: feildmaster <admin@feildmaster.com>
2013-02-06 16:32:19 -06:00
CraftBukkit/Spigot
9250e88d04 Always return a TravelAgent; Fixes BUKKIT-3541
Recent changes caused PlayerPortalEvent to suddenly return null
unexpectedly and could end up in NPEs resulting that did not before.
This commit addresses that situation by always ensuring a TravelAgent
instance is returned.

The TravelAgent for world 0 is returned arbitrarily in an effort to
compensate for plugins that are implementation dependent and expect some
form of a TravelAgent to be accessible in the event at all times.

By: EdGruberman <ed@rjump.com>
2013-02-03 12:55:51 -07:00
CraftBukkit/Spigot
20ddd83f9a Fix players spawning above portals. Fixes BUKKIT-3542.
Vanilla does not check for blocks in which the player could
suffocate when changing dimension, so portals will happily spawn
players in blocks when using a portal under certain
circumstances. However, we currently check for these instances
and move the player up until they will not suffocate. This means
that players can sometimes be taken to above the target portal,
making it seem as if a portal was not created. Instead, we now
disable this suffocation check when moveToWorld is called from
changeDimension, mirroring vanilla behavior more accurately.

By: James Clarke <jamesrtclarke@me.com>
2013-02-03 00:32:07 +00:00
CraftBukkit/Spigot
4c1273e8a6 Updated version to 1.4.7-R1.1-SNAPSHOT for development towards next release.
By: EvilSeph <evilseph@gmail.com>
2013-01-30 23:44:50 -05:00
CraftBukkit/Spigot
9b6db31880 Updated version to 1.4.7-R1.0 in pom.xml for RB.
By: EvilSeph <evilseph@gmail.com>
2013-01-30 23:32:21 -05:00
CraftBukkit/Spigot
067842730b Fix NPE when getting bed spawn location.
By: feildmaster <admin@feildmaster.com>
2013-01-29 17:25:39 -06:00
CraftBukkit/Spigot
88e050668f Fix contract with Player.getBedSpawnLocation. Fixes BUKKIT-3525
Getting the bed spawn location is supposed to check if the bed is
valid, however, it currently did not do so.

By: feildmaster <admin@feildmaster.com>
2013-01-29 10:03:05 -06:00
CraftBukkit/Spigot
2c6b6e11dd Remove erroneous break statement in scheduler. Fixes BUKKIT-3395
By: Wesley Wolfe <weswolf@aol.com>
2013-01-27 23:00:14 -06:00
CraftBukkit/Spigot
552cff7d15 Update Fireballs to account for ExplosionPower. Fixes BUKKIT-3460
Adds BUKKIT-3516

By: feildmaster <admin@feildmaster.com>
2013-01-27 14:46:58 -06:00
CraftBukkit/Spigot
78e16bd8de Compensate for allow-nether/allow-end as false; Fixes BUKKIT-3466
When either of those settings are false, the worlds are not loaded and
therefore will not be targeted for portal exits.  Existing worlds are
iterated directly to avoid defaulting to the first world if a direct
dimension match is not found.

Plugins must also specify exit from custom Bukkit worlds to comply with
original commit: https://github.com/Bukkit/CraftBukkit/commit/2dc2af0

This commit introduces a constant to clarify the dependency on the
CraftBukkit implementation of custom worlds having a dimension offset.

By: EdGruberman <ed@rjump.com>
2013-01-22 18:36:03 -07:00
CraftBukkit/Spigot
2cf54ae100 Reload ban files when reloading the server. Adds BUKKIT-3470
By: feildmaster <admin@feildmaster.com>
2013-01-23 06:24:40 -06:00
CraftBukkit/Spigot
5ff31d3a44 Fix broken null contract with Jukebox.setPlaying, Fixes BUKKIT-3429
The javadocs state that a null may be used to remove the currently
playing sound, however this causes a NullPointerException.

It also doesn't process registering the record correctly, along with
processing non-valid items.

By: feildmaster <admin@feildmaster.com>
2013-01-19 00:39:56 -06:00
CraftBukkit/Spigot
a7602dc993 [Bleeding] Add experimental support for entity portal traveling
By: EdGruberman <ed@rjump.com>
2012-12-22 11:46:24 -07:00
CraftBukkit/Spigot
5948863935 Improve the item meta deserialization code-style
Fixed the ItemMetaFireworkTest

Add set power unit tests for FireworkMeta

By: Wesley Wolfe <weswolf@aol.com>
2013-01-18 02:21:38 -06:00
CraftBukkit/Spigot
41d42b7388 Updated version to 1.4.7-R0.2-SNAPSHOT for development towards next release.
By: EvilSeph <evilseph@gmail.com>
2013-01-17 05:30:48 -05:00
CraftBukkit/Spigot
beefddd3af Updated version to 1.4.7-R0.1 in pom.xml for Beta.
By: EvilSeph <evilseph@gmail.com>
2013-01-17 05:15:55 -05:00
CraftBukkit/Spigot
c529b1d5ec Update CraftBukkit to Minecraft 1.4.7
By: feildmaster <admin@feildmaster.com>
2013-01-17 03:28:44 -06:00
CraftBukkit/Spigot
58a6642ca7 Add ItemStackMapTest
This test was missing from c056293b38cb9a1296937d91746b175252be044a

By: Wesley Wolfe <weswolf@aol.com>
2013-01-15 01:22:53 -06:00
CraftBukkit/Spigot
6a7b6e848a Various ItemMeta fixes.
Fixes BUKKIT-3408, BUKKIT-3190, BUKKIT-3191, BUKKIT-3407

These changes relate mostly to semantical changes for serialization
contract, exception of changing the map scaling value from byte to boolean,
what it should have been in the first place. Appropriate unit tests were
added for CraftMapMeta, as they were missing.

By: Wesley Wolfe <weswolf@aol.com>
2013-01-09 04:45:01 -06:00
CraftBukkit/Spigot
58090423c0 Update unit test to reflect firework color fix. Fixes BUKKIT-3382
The ItemDye color-int array uses dye data values, not wool.

By: Wesley Wolfe <weswolf@aol.com>
2013-01-05 17:00:25 -06:00
CraftBukkit/Spigot
e9c52a3ffc Update calls to DyeColor getData and getByData. Addresses BUKKIT-2786
These two methods are now deprecated and replaced by the strictly
equivalent calls using wool data.

By: Wesley Wolfe <weswolf@aol.com>
2013-01-05 16:45:34 -06:00
CraftBukkit/Spigot
1e7d13dfee Fix "setSitting" on tameable animals. Fixes BUKKIT-1534
This makes it so animals (tame or not) will sit properly and not move
around.

Wild animals that are sitting may override the sitting position if
they are attacking.

By: feildmaster <admin@feildmaster.com>
2012-12-31 14:00:55 -06:00
CraftBukkit/Spigot
6e6615acfa Updated version to 1.4.6-R0.4-SNAPSHOT for development towards next release.
By: EvilSeph <evilseph@gmail.com>
2012-12-31 01:14:07 -05:00
CraftBukkit/Spigot
74d0a068bc Updated version to 1.4.6-R0.3 in pom.xml for Beta.
By: EvilSeph <evilseph@gmail.com>
2012-12-31 01:00:18 -05:00
CraftBukkit/Spigot
f6a5e7a473 Updated version to 1.4.6-R0.3-SNAPSHOT for development towards next release.
By: EvilSeph <evilseph@gmail.com>
2012-12-29 22:27:49 -05:00
CraftBukkit/Spigot
a87401e1b6 Updated version to 1.4.6-R0.2 in pom.xml for Beta.
By: EvilSeph <evilseph@gmail.com>
2012-12-29 22:19:49 -05:00
CraftBukkit/Spigot
0f73c817f9 Return the level, not ID. Fixes BUKKIT-3326
CraftItemStack was erroneously using the enchantment ID instead of level
for the return value of remove enchantment.

By: Wesley Wolfe <weswolf@aol.com>
2012-12-29 20:53:27 -06:00
CraftBukkit/Spigot
ef64b8dd33 Don't teleport entities that are considered dead. Addresses BUKKIT-1331
Teleportation should never be processed on dead entities. If you wish
to teleport an entity, do it on a living entity. If you wish to
teleport a player, set their respawn location in PlayerRespawnEvent.

By: feildmaster <admin@feildmaster.com>
2012-12-27 19:22:28 -06:00
CraftBukkit/Spigot
e895c1e420 [Bleeding] Implement periodic chunk garbage collector
This adds two settings to bukkit.yml, allowing activation and control of
two chunk garbage collection triggering conditions:
chunk-gc/period-in-ticks controls a periodic GC, run once every N ticks
(default is 600); chunk-gc/load-threshold causes the GC to run once
after every N calls to loadChunk() on a given world (this call is an API
call used by plugins, and is distinct from the path taken for routine
player movement-based loading).  In both cases, setting to zero will
disable the given GC scheduling strategy.

In either case, the act of doing the GC is simply one of scanning the
loaded chunks, seeing which are NOT being used by one or more players
(due to view-distance) and which are not already queued for unload, and
queueing them for a normal unload.  Ultimately, the unload is then
processed the same as if the chunk were unloaded due to leaving the
view-distance range of all players, so the impact on plugins should be
no different (and strategies such as handling the ChunkUnloadEvent in
order to prevent unload will still work).

The initial interval for the periodic GC is randomized on a per-world
basis, in order to avoid all world being GCed at the same time -
minimizing potential lag spikes.

By: Mike Primm <mike@primmhome.com>
2012-12-10 09:38:26 -06:00
CraftBukkit/Spigot
be291480fc Fix persistence on tamed pets. Fixes BUKKIT-3300
With the persistence api introduced, pets did not have their
persistence flag updated to reflect their persistence. This caused
tame ocelots to not persist under specific conditions.

By: feildmaster <admin@feildmaster.com>
2012-12-28 20:27:41 -06:00
CraftBukkit/Spigot
2d0ea62fb2 Fix removing enchantments causing the enchantment tag to remain.
By: feildmaster <admin@feildmaster.com>
2012-12-27 20:48:56 -06:00
CraftBukkit/Spigot
4bd54dfd92 Fix discrepancies in NBT and ItemMeta. Fixes BUKKIT-3279
An ItemStack gains the tag name "tag" when the stack is serialized
to NBT, however items don't have a tag *until* they are serialized at
least once. So to solve this, we remove the tag name when loading the
NBT data.

Another problem with NBT are TagLists, when transferring tag lists
between the server and the client the names are lost, and so we
simply don't add a name to the tag.

By: feildmaster <admin@feildmaster.com>
2012-12-27 20:45:21 -06:00
CraftBukkit/Spigot
53d28c0e26 Fix Skull BlockState setting illegal values on owner.
By: feildmaster <admin@feildmaster.com>
2012-12-24 14:32:08 -06:00
CraftBukkit/Spigot
28034e5c5c Fix fireworks being short lived. Fixes BUKKIT-3291
By: feildmaster <admin@feildmaster.com>
2012-12-23 17:06:26 -06:00
CraftBukkit/Spigot
3e4f7af5c8 Properly update fireworks. Fixes BUKKIT-3289
By: feildmaster <admin@feildmaster.com>
2012-12-23 08:59:15 -06:00
CraftBukkit/Spigot
8dcc915237 Implement entity max health methods. Adds BUKKIT-266
By: feildmaster <admin@feildmaster.com>
2012-12-23 05:49:03 -06:00