Commit graph

1244 commits

Author SHA1 Message Date
CraftBukkit/Spigot
9383c67217 Handle ChatColor-ending messages FIXES BUKKIT-4924
Now adds the component upon creation, eliminating issues where the
created component was discarded.

By: mbax <matt@phozop.net>
2013-12-01 11:09:47 -05:00
CraftBukkit/Spigot
512db9b878 Make console work on Windows again. Fixes BUKKIT-4956
Something the log4j ConsoleAppender does makes the console work correctly
on Windows. After trying to pull pieces of it out and run them manually
I decided to just put the appender back. We now once again start with the
ConsoleAppender then remove it immediately after starting.

By: Travis Watkins <amaranth@ubuntu.com>
2013-12-01 13:21:22 -06:00
CraftBukkit/Spigot
884ca363b6 Handle JUL logger formatting
By: Travis Watkins <amaranth@ubuntu.com>
2013-12-01 12:28:20 -06:00
CraftBukkit/Spigot
7537956dec Forward exceptions to log4j, cleanup logger handling. Fixes BUKKIT-4948
By: Travis Watkins <amaranth@ubuntu.com>
2013-12-01 11:15:18 -06:00
CraftBukkit/Spigot
5783df9d13 Update CraftBukkit to Minecraft 1.7.2
By: mbax <matt@phozop.net>
2013-11-04 07:07:38 -06:00
CraftBukkit/Spigot
5961c3b788 Updated version to 1.6.4-R2.1-SNAPSHOT for development towards next release.
By: EvilSeph <evilseph@gmail.com>
2013-10-30 19:44:34 -04:00
CraftBukkit/Spigot
d290f63e9f Updated version to 1.6.4-R2.0 in pom.xml for RB.
By: EvilSeph <evilseph@gmail.com>
2013-10-30 19:22:17 -04:00
CraftBukkit/Spigot
4ac5fcd821 Don't share WorldMapCollection. Fixes BUKKIT-4871
WorldMapCollection stores scoreboard, map (item), structure, and
village information. Scoreboards are explicitly handled globally,
while villages and structures are erroneously shared.

This commit separates the WorldMapCollections to not be shared among
custom worlds. Maps are special-cased to maintain the previous shared
behavior.

By: Wesley Wolfe <weswolf@aol.com>
2013-10-30 04:22:00 -05:00
CraftBukkit/Spigot
804dc8f841 Fix our versioning system.
By: Luke GB <git@lukegb.com>
2013-10-16 00:47:38 +01:00
CraftBukkit/Spigot
e3eec022cb Updated version to 1.6.4-R1.1-SNAPSHOT for development towards next release.
By: EvilSeph <evilseph@gmail.com>
2013-10-24 02:28:24 -04:00
CraftBukkit/Spigot
ae80b018c5 Updated version to 1.6.4-R1.0 in pom.xml for RB.
By: EvilSeph <evilseph@gmail.com>
2013-10-24 01:50:38 -04:00
CraftBukkit/Spigot
c99e77d534 Add auto-save plugin redundancy detection.
This change will print a warning when a plugin induces a forced save. A
player or console forcing a save (via a command) is ignored for purposes
of printing a warning.

By: Wesley Wolfe <weswolf@aol.com>
2013-09-23 16:43:21 -05:00
CraftBukkit/Spigot
d6140ccc93 Re-enable built in auto-save. Fixes BUKKIT-4800
When Minecraft first introduced an auto-save feature, we
were taken by surprise by how much of an impact it actually had on the performance
of the server. After investigating the potential causes of the significant
slow-downs we saw at the time, we came to the conclusion that it was a
combination of the auto-save interval being incredibly frequent and
servers already having an auto-save solution that was conflicting with the
newly added built-in one.

Since we noticed that most servers already had their own auto-save
solution, we decided to completely disable the built in auto-save by
default. In hindsight, however, we were so happy that we discovered and
squashed the cause of the performance issues that we forgot to consider
the future and, as a result, some servers have unfortunately been caught
by surprise when they ran their servers without any auto-save plugins.

Without the auto-save plugin conflict, however, Minecraft's default save
interval of 45 seconds is not suitable for the types of servers that run
Bukkit, to the point where it was negatively impacting performance. As
such, we've decided to re-enable the built in auto-save at an interval of
5 minutes for newly created servers.

By: EvilSeph <evilseph@gmail.com>
2013-10-23 19:29:05 -04:00
CraftBukkit/Spigot
5d69eea73d Update maven compiler to 2.3.2
This change removes a redundant addition of source encoding and makes our
compiler match the current maven default. This amends the commit
4775b25a5932a2a24da2c55356936e2f98bff98c

Upstream issue http://jira.codehaus.org/browse/MCOMPILER-70

By: Wesley Wolfe <weswolf@aol.com>
2013-10-15 03:52:52 -05:00
CraftBukkit/Spigot
88ea700cf9 Force item data to use a tag name. Fixes BUKKIT-4809
The recent Minecraft update rendered the
e20e50f85083dc53cb5456254bcf5781ef750daa fix incorrect by adding a
compound name to the base tag in some code. This fix changes all uses
of tag changes to explicitly use a name.

By: feildmaster <admin@feildmaster.com>
2013-10-10 17:54:29 -05:00
CraftBukkit/Spigot
68620f46d3 Clarify exception message for bad hanging location. Fixes BUKKIT-4824
This change adds the location and a more specific message to the
IllegalArgumentException that gets thrown when a hanging entity is being
spawned in a location that it cannot survive.

By: Wesley Wolfe <weswolf@aol.com>
2013-10-05 13:21:15 -05:00
CraftBukkit/Spigot
46b65df5ae Update CraftBukkit to 1.6.4
By: feildmaster <admin@feildmaster.com>
2013-09-19 13:25:08 -05:00
CraftBukkit/Spigot
278aee6f0d Updated version to 1.6.2-R1.1-SNAPSHOT for development towards next release.
By: EvilSeph <evilseph@gmail.com>
2013-09-11 00:54:59 -04:00
CraftBukkit/Spigot
63fb8c8635 Updated version to 1.6.2-R1.0 in pom.xml for RB.
By: EvilSeph <evilseph@gmail.com>
2013-09-10 22:47:04 -04:00
CraftBukkit/Spigot
36da362790 Update for 1.6.2_01 renames.
By: EvilSeph <evilseph@gmail.com>
2013-09-10 22:46:40 -04:00
CraftBukkit/Spigot
cb0c007ec3 Fix villager death sound
By: feildmaster <admin@feildmaster.com>
2013-09-10 21:51:26 -05:00
CraftBukkit/Spigot
7dc16db513 Add missing villager sounds. Addresses BUKKIT-4756
By: feildmaster <admin@feildmaster.com>
2013-09-10 21:29:58 -05:00
CraftBukkit/Spigot
6a8d0de50c Provide a tab completion handler for JLine. Adds BUKKIT-4168
By: Phillip Schichtel <quick_wango@code-infection.de>
2013-08-17 18:49:27 -06:00
CraftBukkit/Spigot
84e8935a22 Add support for custom Hopper inventories. Fixes BUKKIT-4722
Opening a hopper inventory created by Server.createInventory will
currently have no effect as proper handling code is missing in
CraftEntityHuman for hopper inventories that aren't associated with a tile
entity or minecart. Initialization logic for hoppers is also missing from
CraftContainer, which is necessary for the opening of custom hopper
inventories.

This commit fixes the two aforementioned by adding proper handling to
CraftHumanEntity for opening inventories not associated with a tile
entity, and by adding initialization logic for hoppers to CraftContainer.

By: FrozenBrain <carstenbamsti@googlemail.com>
2013-08-27 00:04:48 +02:00
CraftBukkit/Spigot
441c36767b Update and add new sound mappings. Fixes BUKKIT-4756
By: feildmaster <admin@feildmaster.com>
2013-09-10 20:00:26 -05:00
CraftBukkit/Spigot
35ef74ad46 Add source encoding to the maven compiler plugin.
This change adds the source encoding to the maven compiler plugin, which
will strictly enforce build consistency on multiple platforms and address
possible compilation issues on some of the source files. The source
encoding unintuitively is system-specified by default.

By: Wesley Wolfe <weswolf@aol.com>
2013-08-28 00:51:55 -05:00
CraftBukkit/Spigot
9680b8dcdb Return correct hasLineOfSight value for players. Fixes BUKKIT-4634
Prior to this change when a plugin called Player.hasLineOfSite() the
method would always return false because EntityHuman does not extend
EntityInsentient. This commit changes that by explicitly checking for
line of sight between two entities and returning that value.

By: Roger Baumgartner <rogermarcbaumgartner@hotmail.com>
2013-08-17 16:13:31 +02:00
CraftBukkit/Spigot
2436b7abb8 Make ItemFactoryTest.java platform agnostic. Fixes BUKKIT-4695
Maven paths that include spaces (and possible other characters) get
improperly translated when using a file handle from a URL. This changes
the unit test to open a stream directly from the URL, providing proper
file resolution on multiple platforms.

By: Wesley Wolfe <weswolf@aol.com>
2013-08-14 02:31:18 -05:00
CraftBukkit/Spigot
78dfcd38b3 Return instance of CraftInventoryBeacon for Beacons. Fixes BUKKIT-4521
By: T00thpick1 <t00thpick1dirko@gmail.com>
2013-07-18 18:37:20 -04:00
CraftBukkit/Spigot
71ba627b21 Fix missed diff for chat packets. Fixes BUKKIT-4666
This commit removes chat wrapping. It is no longer needed, as clients
properly render lines with line breaks.

This commit also changes an outgoing chat message to use the vanilla
behavior for indicating a client cannot chat with commands-only setting.

By: Wesley Wolfe <weswolf@aol.com>
2013-08-07 04:05:56 -05:00
CraftBukkit/Spigot
3d604166e8 Wrap plugin.getDefaultWorldGenerator in try-catch. Fixes BUKKIT-4116
If a plugin generates an exception when returning a world generator, the
server will crash. This change adds a try-catch block to keep the server
from crashing on plugin defined world generators.

By: riking <rikingcoding@gmail.com>
2013-04-18 17:50:05 -07:00
CraftBukkit/Spigot
a5280f8caa Fix javac workaround in ItemStackTest
By: Wesley Wolfe <weswolf@aol.com>
2013-08-06 20:09:42 -05:00
CraftBukkit/Spigot
cb196c424a Add BukkitObjectIOStream tests on top of ItemMeta tests
By: Wesley Wolfe <weswolf@aol.com>
2013-05-19 01:17:32 -05:00
CraftBukkit/Spigot
33c7445582 Validate title for custom inventories. Fixes BUKKIT-4616, BUKKIT-4663
Custom inventories currently do not validate the titles provided. Null values
cause NPEs when writing packets. Values longer than 32 characters
disconnect clients.

This change throws and IllegalArgumentException for null titles or titles
longer than 32 characters.

By: Wesley Wolfe <weswolf@aol.com>
2013-08-06 17:11:30 -05:00
CraftBukkit/Spigot
6f3af92b3d Updated version to 1.6.2-R0.2-SNAPSHOT for development towards next release.
By: EvilSeph <evilseph@gmail.com>
2013-08-04 00:44:27 -04:00
CraftBukkit/Spigot
dd04730e8b Updated version to 1.6.2-R0.1 in pom.xml for Beta.
By: EvilSeph <evilseph@gmail.com>
2013-08-03 19:59:29 -04:00
CraftBukkit/Spigot
7ff6d4cf4c Fix off by 1 error for spawn protection. Fixes BUKKIT-4154
By: Jonatan Noponen <jonatan.noponen@gmail.com>
2013-07-31 19:43:10 +03:00
CraftBukkit/Spigot
ed3c404bc3 Fix mistranslation in isPlayerCreated() for IronGolems. Fixes BUKKIT-4543
By: Kai Dederichs <kai.dederichs@gmx.de>
2013-07-13 11:56:59 +02:00
CraftBukkit/Spigot
4cd10145c5 Implement Leash API. Adds BUKKIT-4459, BUKKIT-4583
By: T00thpick1 <t00thpick1dirko@gmail.com>
2013-07-31 17:35:16 -04:00
CraftBukkit/Spigot
cdb0ea7069 Ignore null sound by contract. Fixes BUKKIT-4641
By: Wesley Wolfe <weswolf@aol.com>
2013-08-02 20:05:22 -05:00
CraftBukkit/Spigot
249638ac01 Indicate help is a command. Fixes BUKKIT-4642
By: Wesley Wolfe <weswolf@aol.com>
2013-08-02 19:04:39 -05:00
CraftBukkit/Spigot
1e6a141afb Add raw sound string playSound method. Adds BUKKIT-2443
A method has been added to Player which allows the server to send a sound string to the client. Assuming the client has the specified sound, it will be played. This is needed by the implementation of the /playsound command.

By: h31ix <zero_gravity@outlook.com>
2013-07-19 15:21:50 -04:00
CraftBukkit/Spigot
a933d3f370 Fix NBT token for attribute names. Addresses BUKKIT-4483
By: Wesley Wolfe <weswolf@aol.com>
2013-07-28 14:15:52 -05:00
CraftBukkit/Spigot
59bb6e9030 Store item attributes. Addresses BUKKIT-4523
By: Wesley Wolfe <weswolf@aol.com>
2013-07-23 23:25:04 -05:00
CraftBukkit/Spigot
4af51c2ffb Add API to control scaled health. Adds BUKKIT-4590
This commit implements the ability to set the scale of hearts that the
client renders.  When the Packet44UpdateAttributes packet is sent, the
max health attribute is replaced with a scaled version, to preserve the
scaled health illusion clientside.

In order to accurately display the scaled health for players, a true
health is stored within CraftPlayer, and the datawatcher now stores the
scaled health. The getHealth() method for players still returns their
true health.

Changed setHealth() within EntityLiving to appropriately handle health
for instances of EntityPlayer. Inlined a call to
setHealth(getMaxHealth()) within the EntityLiving constructor to work
around CraftEntity instantiation.

Additionally fixes the health values sent when eating food within
FoodMetaData and ItemFood, which previously sent the unscaled health;
this commit alters them to send the properly scaled health.

Additionally fixes BUKKIT-4535, BUKKIT-4536, and BUKKIT-4127

By: T00thpick1 <t00thpick1dirko@gmail.com>
2013-07-23 21:30:38 -05:00
CraftBukkit/Spigot
701de44fd3 Use ambient setting of potion effects. Fixes BUKKIT-4357 and BUKKIT-3653
This changes livingEntity.addPotionEffect(PotionEffect, boolean) to
construct the MobEffect using the constructor that includes the ambient
setting as supplied by the PotionEffect

This also changes livingEntity.getActivePotionEffects() to construct the
PotionEffects using the ambient setting supplied by the MobEffects.

By: Jim Bilbrey <jb_aero@verizon.net>
2013-06-19 05:38:05 -04:00
CraftBukkit/Spigot
5bd02e83f2 Return inGround when checking Arrow's OnGround state. Fixes BUKKIT-4439
By: EvilSeph <evilseph@gmail.com>
2013-07-10 20:25:34 -04:00
CraftBukkit/Spigot
0bd50eb9fb Missed a mention of Java 5. We build for Java 6, as per the Minecraft spec.
By: EvilSeph <evilseph@gmail.com>
2013-07-10 19:32:31 -04:00
CraftBukkit/Spigot
8524394d06 Implement Horse API. Adds BUKKIT-4424
API has been added to interface with Horses and to modify their inventories. Horse entities will now be recognized with the type EntityType.HORSE, and will no longer be UNKNOWN.

HorseJumpEvent, EntityDamageEvent, and EntityTameEvent are all correctly fired for horses.

This commit fixes BUKKIT-4393.

By: h31ix <zero_gravity@outlook.com>
2013-07-10 11:58:18 -04:00
CraftBukkit/Spigot
69a37fc533 Update CraftBukkit to 1.6.2
By: mbax <matt@phozop.net>
2013-07-08 19:43:37 -04:00