Commit graph

1073 commits

Author SHA1 Message Date
CraftBukkit/Spigot
f190bf3da3 Refactor CraftBukkit dependencies. Fixes BUKKIT-2329
The maven shade plugin has the ability to change the namespace for
included dependencies and packages. This change is being implemented to
remove all conflicts with any possible libraries in an execution
environment.

The only dependencies to be refactored are specific to CraftBukkit. To
refactor dependencies included with Bukkit breaks any plugin compiled
against those specific dependencies, especially ebeans--an API
specifically encouraged for database management.

By: Wesley Wolfe <weswolf@aol.com>
2012-08-19 15:42:54 -05:00
CraftBukkit/Spigot
b1d40801aa Rewrite scheduler. Fixes BUKKIT-1831, and BUKKIT-845
The new scheduler uses a non-blocking methodology. Combining volatile
references to make a linked reference chain, with the atomic reference
handling the tail, tasks are queued without waiting for locks. The main
thread will no longer limit the length of time spend for scheduled tasks,
but no task will run twice in the same tick. Scheduling a new task inside of
a synchronous task will always run the new task during the same tick,
assuming there is no supplied delay > 0.

Asynchronous tasks are now run using a thread pool. Any thread-local
implemenation should now account for threads being reused between
executions.

Race conditions were carefully examined and the order of logic is now very
important. Each task is placed in a secondary collection before removal from
primary collections. Thus, by reading tasks from the collections in the same
order they travel, it retains state-safety. This does make modifications
less responsive in some situations, as the task may be transitioning before
the modifier accesses it. This cost outweighs the requirement to synchronize
on the scheduler; previously any conflict would be first-come-first-serve,
with the main thread backing out arbitrarily.

By: Wesley Wolfe <weswolf@aol.com>
2012-08-14 06:09:51 -05:00
CraftBukkit/Spigot
757465f533 Fix instances where Signs have null lines. Addresses BUKKIT-684
By: V10lator <v10lator@myway.de>
2012-08-18 14:50:09 +02:00
CraftBukkit/Spigot
9c8b353591 Use standard format function to format logs. Addresses BUKKIT-2246
Also fix "excess" Log Levels.

By: EdGruberman <ed@rjump.com>
2012-08-11 16:29:50 -07:00
CraftBukkit/Spigot
ae2357b96e Implement API for Sound, and playing the sounds for Worlds and Players. Adds BUKKIT-1430, BUKKIT-1226 and BUKKIT-2019
By: feildmaster <admin@feildmaster.com>
2012-08-21 17:23:17 -05:00
CraftBukkit/Spigot
c144b2459c Use a dynamic pool size for the iterator cache
Many codepaths only end up with one iterator being used at a time and
most of the rest only get up to two being used so using a static pool of
three is wasteful. This also allows us to efficiently handle cases that
exceed 3 iterators in use. Overall this dramatically increases the hit rate
and results in less iterators being created.

By: Travis Watkins <amaranth@ubuntu.com>
2012-08-19 19:59:58 -05:00
CraftBukkit/Spigot
7a4660c49e Implement API to retrieve and open EnderChests. Adds BUKKIT-2016
By: feildmaster <admin@feildmaster.com>
2012-08-20 15:52:44 -05:00
CraftBukkit/Spigot
4ada047593 [Bleeding] Remove redundant chunkList from ChunkProviderServer
This ArrayList duplicates part of the functionality of the much more
efficient chunk map so can be removed as the map can be used in the few
places this was needed.

By: Mike Primm <mike@primmhome.com>
2012-08-11 17:34:22 -05:00
CraftBukkit/Spigot
327e789c7f Add LongObjectHashMap and LongHashSet
Replace uses of LongHashtable and LongHashset with new implementations.
Remove EntryBase, LongBaseHashtable, LongHashset, and LongHashtable as they
are no longer used.

LongObjectHashMap does not use Entry or EntryBase classes internally for
storage so has much lower object churn and greater performance. LongHashSet
is not as much of performance win for our use case but for general use is
up to seventeen times faster than the old implementation and is in fact
faster than alternatives from "high performance" java libraries. This is
being added so that if someone tries to use it in the future in a place
unrelated to its current use they don't accidentally end up with something
slower than the Java collections HashSet implementation.

By: Travis Watkins <amaranth@ubuntu.com>
2012-08-17 18:53:59 -05:00
CraftBukkit/Spigot
9c569d394d Add iterator cache to UnsafeList and use it in hotspots
Adds a specialized iterator for the list and a pool of iterators to avoid
object churn. Also optimizes the clear() method to reduce object creation.

By: Travis Watkins <amaranth@ubuntu.com>
2012-08-17 12:55:33 -05:00
CraftBukkit/Spigot
f694f8215b Updated version to 1.3.1-R2.1-SNAPSHOT for development towards next release.
By: EvilSeph <evilseph@gmail.com>
2012-08-19 09:01:23 -04:00
CraftBukkit/Spigot
61e4d2c4ad Updated version to 1.3.1-R2.0 in pom.xml for RB.
By: EvilSeph <evilseph@gmail.com>
2012-08-19 08:47:47 -04:00
CraftBukkit/Spigot
4c88eae55b Fix issues with chunk saving. Fixes BUKKIT-2158, BUKKIT-2018 and BUKKIT-2229
By: Mike Primm <mike@primmhome.com>
2012-08-12 18:40:49 -05:00
CraftBukkit/Spigot
84483a55f2 Add more detailed CrashReport for CraftBukkit. Addresses BUKKIT-2319
By: Wesley Wolfe <weswolf@aol.com>
2012-08-17 23:11:26 -05:00
CraftBukkit/Spigot
c0ce2ea3a1 Use correct SlotType's for merchants. Fixes BUKKIT-2257
By: feildmaster <admin@feildmaster.com>
2012-08-14 18:28:00 -05:00
CraftBukkit/Spigot
73cf129db7 Implement methods for spawning FallingBlocks and add various FallingBlock methods. Adds BUKKIT-2282
By: feildmaster <admin@feildmaster.com>
2012-08-13 22:21:10 -05:00
CraftBukkit/Spigot
cc018c2203 Update CreatureSpawner.setSpawnedType(EntityType) to 1.3
They can spawn any valid entities now. What is a "valid" entity? A "valid" entity is an EntityType with a non-null getName(). (for example: PRIMED_TNT, FALLING_BLOCK)

By: feildmaster <admin@feildmaster.com>
2012-08-12 14:02:57 -05:00
CraftBukkit/Spigot
939c2c8477 Implement player speed API. Addresses BUKKIT-2205
By: Wesley Wolfe <weswolf@aol.com>
2012-08-10 00:00:04 -05:00
CraftBukkit/Spigot
7c3b98a7f9 Updated version to 1.3.1-R1.1-SNAPSHOT for development towards next release.
By: EvilSeph <evilseph@gmail.com>
2012-08-07 17:10:11 -04:00
CraftBukkit/Spigot
1fc2417f5d Updated version to 1.3.1-R1.0 in pom.xml for RB
By: EvilSeph <evilseph@gmail.com>
2012-08-07 02:31:21 -04:00
CraftBukkit/Spigot
24abca3c43 Implement new deprecated warning state configuration option
By: Wesley Wolfe <weswolf@aol.com>
2012-08-06 23:52:49 -05:00
CraftBukkit/Spigot
bf9001a3d3 Put forceChunkLoad back to its original value.
By: Travis Watkins <amaranth@ubuntu.com>
2012-08-05 20:03:12 -05:00
CraftBukkit/Spigot
7383d52df7 Implement new AsyncPlayerChatEvent. Addresses BUKKIT-2064
Added two utility collections for use with PlayerChatEvents allowing lazier
initialization of events and less need to synchronize against the player
list.

Provided a hidden queue system for similar logic to pre-1.3 chat. When a
plugin is listening for the deprecated PlayerChatEvent, all chat will be
delayed to be mirror executed from the main thread. All developers are
encouraged to immediately update to the developmental Bukkit chat API as a
minimum transition for server stability.

Additionally, changes were required to bring thread-safety to the flow
logic. CopyOnWriteArrayList is the only viable means to produce thread
safety with minimal diff; using a sane pre-implemented collection would
require reworking of sections of NMS logic.

As a minor change, implemented expected functionality for
PlayerCommandPreProcessEvent. Setting the player should now change the
player executing the command.

By: Wesley Wolfe <weswolf@aol.com>
2012-08-03 06:24:55 -05:00
CraftBukkit/Spigot
a1a672d052 Fix mapping of ChunkSection nibble data to snapshot. Fixes BUKKIT-1977
By: Mike Primm <mike@primmhome.com>
2012-08-02 11:21:40 -05:00
CraftBukkit/Spigot
0eee4963fb Add trailing / to BukkitDL URLs. Fixes BUKKIT-2015.
Also adds CraftBukkit version number to user agent when communicating with
BukkitDL.

By: Luke Granger-Brown <git@lukegb.com>
2012-08-02 23:35:08 +01:00
CraftBukkit/Spigot
fdfc871461 Add test for WorldType's
By: feildmaster <admin@feildmaster.com>
2012-08-02 09:10:15 -05:00
CraftBukkit/Spigot
6e2987bb35 Update CraftBukkit to Minecraft 1.3.1
By: feildmaster <admin@feildmaster.com>
2012-07-29 02:33:13 -05:00
CraftBukkit/Spigot
a45bcca987 Updated version to 1.2.5-R5.1-SNAPSHOT for development towards next release.
By: EvilSeph <evilseph@gmail.com>
2012-07-28 02:13:53 -04:00
CraftBukkit/Spigot
08dadaffd6 Updated version to 1.2.5-R5.0 in pom.xml for RB.
By: EvilSeph <evilseph@gmail.com>
2012-07-28 01:49:49 -04:00
CraftBukkit/Spigot
985d65840b Implement getExpToLevel method. Fixes BUKKIT-1906
By: feildmaster <admin@feildmaster.com>
2012-07-10 13:32:21 -05:00
CraftBukkit/Spigot
75617118ea [Bleeding] Include chunk biome data for refresh chunk. Fixes BUKKIT-1166
By: Mike Primm <mike@primmhome.com>
2012-04-04 19:55:16 -05:00
CraftBukkit/Spigot
b69d15792e Factor invulnerableTicks into getNoDamageTicks. Fixes BUKKIT-1324
By: feildmaster <admin@feildmaster.com>
2012-07-04 15:12:29 -05:00
CraftBukkit/Spigot
a8eaf02d50 Implement getMotd, and reload the motd. Adds BUKKIT-1799
By: feildmaster <admin@feildmaster.com>
2012-07-03 18:00:37 -05:00
CraftBukkit/Spigot
87d5b5e374 Apply setLastDamageCause after processing events and the event has not been canceled. Fixes BUKKIT-1881
This allows previous causes to be available during the event, as well as making the damage cause a valid one. If EntityDamageEvent is canceled, then it's not the last DamageCause.

Also prevents setting DamageCause involuntarily through construction.

By: feildmaster <admin@feildmaster.com>
2012-07-01 05:04:06 -05:00
CraftBukkit/Spigot
fdbd4efbd6 Treat ComplexParts as proxies for setLastDamageCause. Fixes BUKKIT-1821
By: feildmaster <admin@feildmaster.com>
2012-07-01 05:02:44 -05:00
CraftBukkit/Spigot
d96b0ca73f Clean entity.damage functions. Fixes BUKKIT-1822
By: feildmaster <admin@feildmaster.com>
2012-07-01 05:00:48 -05:00
CraftBukkit/Spigot
e5281e5d53 Fix deprecated spawnCreature. Fixes BUKKIT-1880
By: Wesley Wolfe <weswolf@aol.com>
2012-07-02 15:36:49 -05:00
CraftBukkit/Spigot
cdfbbb4638 Mark entities as invalid when they get despawned. Addresses BUKKIT-810
By: Travis Watkins <amaranth@ubuntu.com>
2012-06-25 03:24:53 -05:00
CraftBukkit/Spigot
18adfe63c3 Implement LivingEntity.hasLineOfSight. Addresses BUKKIT-1255
By: TomyLobo <tomylobo@nurfuerspam.de>
2012-03-21 16:31:30 +01:00
CraftBukkit/Spigot
25f555c6b9 Deprecate spawnCreature and add spawnEntity. Addresses BUKKIT-1168
By: V10lator <v10lator@myway.de>
2012-04-25 11:45:28 +02:00
CraftBukkit/Spigot
acc10eabc8 Trigger EntityBlockChangeEvent for Silverfish. Adds BUKKIT-1560 and BUKKIT-1593
By: feildmaster <admin@feildmaster.com>
2012-04-28 12:26:07 -05:00
CraftBukkit/Spigot
b91f0fe488 Implement plugin channel events. Addresses BUKKIT-1844
By: Wesley Wolfe <weswolf@aol.com>
2012-06-20 23:15:31 -05:00
CraftBukkit/Spigot
3211d52685 Fire PlayerItemBreakEvent. Addresses BUKKIT-1600
By: Travis Ralston <travpc@gmail.com>
2012-05-06 21:38:01 -06:00
CraftBukkit/Spigot
474a9e54a8 Clear animal owner when untamed. Fixes BUKKIT-1482
By: Ammar Askar <ammar_askar@hotmail.com>
2012-06-17 23:18:00 +05:00
CraftBukkit/Spigot
f54cb1e14e Add query-plugins setting. Addresses BUKKIT-1781
By: H31IX <effectsdude@gmail.com>
2012-06-09 13:59:52 -04:00
CraftBukkit/Spigot
86a06cd622 Changes '/whitelist list' to ignore comments. Addresses BUKKIT-1804
By: Jeff Wardian <krinsdeath@hotmail.com>
2012-06-14 22:31:47 -05:00
CraftBukkit/Spigot
b92707d6ea Preserve whitelist ordering. Addresses BUKKIT-1805
By: Jeff Wardian <krinsdeath@hotmail.com>
2012-06-14 22:43:46 -05:00
CraftBukkit/Spigot
fc5ec8c899 Fire NotePlayEvent. Fixes BUKKIT-1779
By: obnoxint <mail@obnoxint.net>
2012-06-10 17:39:18 +02:00
CraftBukkit/Spigot
efd15866c4 Support asynchronous events; Addresses BUKKIT-1212
By: Wesley Wolfe <weswolf@aol.com>
2012-06-13 21:52:49 -05:00
CraftBukkit/Spigot
add9437bd5 Check world before checking distance. Fixes BUKKIT-1792
By: Wesley Wolfe <weswolf@aol.com>
2012-06-12 10:59:29 -05:00
CraftBukkit/Spigot
aae6c59efb Updated version to 1.2.5-R4.1-SNAPSHOT for development towards next release.
By: EvilSeph <evilseph@gmail.com>
2012-06-09 21:40:34 -04:00
CraftBukkit/Spigot
3525cbdcda Updated version to 1.2.5-R4.0 in pom.xml for RB.
By: EvilSeph <evilseph@gmail.com>
2012-06-09 21:04:38 -04:00
CraftBukkit/Spigot
18ff0924ce Launch fireballs at eye location. Fixes BUKKIT-1155
By: feildmaster <admin@feildmaster.com>
2012-04-16 10:31:57 -05:00
CraftBukkit/Spigot
a0edb34eab Make log-strip-color a simple flag instead of a boolean.
By: Travis Watkins <amaranth@ubuntu.com>
2012-06-02 14:43:38 -05:00
CraftBukkit/Spigot
8716e36905 Resize UnsafeList to initial capacity when cleared and implement clone.
By: Travis Watkins <amaranth@ubuntu.com>
2012-05-31 20:14:28 -05:00
CraftBukkit/Spigot
d7d484d6aa Fix bold states while printing; Fixes BUKKIT-1716
By: Wesley Wolfe <weswolf@aol.com>
2012-05-26 15:32:38 -05:00
CraftBukkit/Spigot
c2c1d03209 Change mapping of Gold from yellow bold to yellow; Addresses BUKKIT-1717
By: Wesley Wolfe <weswolf@aol.com>
2012-05-26 15:27:55 -05:00
CraftBukkit/Spigot
70eab29d67 Updated version to 1.2.5-R3.1-SNAPSHOT for development towards next release.
By: EvilSeph <evilseph@gmail.com>
2012-05-26 02:24:17 -04:00
CraftBukkit/Spigot
69b250ab94 Updated version to 1.2.5-R3.0 in pom.xml for RB.
By: EvilSeph <evilseph@gmail.com>
2012-05-26 00:28:07 -04:00
CraftBukkit/Spigot
df04eb1bcf Removed AnimalTamer cache, fixes BUKKIT-1628
By: Wesley Wolfe <weswolf@aol.com>
2012-05-24 23:02:02 -05:00
CraftBukkit/Spigot
3776921464 Fixed broken hashCode()
By: Wesley Wolfe <weswolf@aol.com>
2012-05-06 13:39:46 -05:00
CraftBukkit/Spigot
f7aab5aff2 Update Bukkit API dependency to 1.2.5-R2.1-SNAPSHOT
By: Wesley Wolfe <weswolf@aol.com>
2012-05-24 22:46:45 -05:00
CraftBukkit/Spigot
6b250f016d Add in checks for potential NPEs. Fixes BUKKIT-1706 and BUKKIT-1590.
By: Travis Watkins <amaranth@ubuntu.com>
2012-05-24 19:11:05 -05:00
CraftBukkit/Spigot
ff07012ac7 Use jansi's Windows support for terminal colors.
By: Travis Watkins <amaranth@ubuntu.com>
2012-05-23 15:02:57 -05:00
CraftBukkit/Spigot
0eb748f952 Re-implement World.getTemperature and World.getHumidity
By: Score_Under <seejay.11@gmail.com>
2012-05-11 13:19:38 +02:00
CraftBukkit/Spigot
3cc9abe5b8 Updated version to 1.2.5-R2.1-SNAPSHOT for development towards next release
By: feildmaster <admin@feildmaster.com>
2012-05-19 17:55:53 -05:00
CraftBukkit/Spigot
9d0fb8d806 Updated version to 1.2.5-R2.0 in pom.xml for RB.
By: EvilSeph <evilseph@gmail.com>
2012-05-17 23:05:32 -04:00
CraftBukkit/Spigot
66cb03e41a Replace TextWrapper with simple newline splitting. Fixes BUKKIT-1662
TextWrapper used to try to ensure a message would wrap correctly on the
client by counting the width of the characters in pixels and wrapping
before hitting that limit. This was needed because the client would lose
color information when wrapping and could not handle long lines of text.

Now that both of these problems are solved in the client we can replace
TextWrapper with simple code to split the message into multiple packets on
newlines and ensure chat colors carry across to the new packet.

By: Travis Watkins <amaranth@ubuntu.com>
2012-05-16 18:09:33 -05:00
CraftBukkit/Spigot
e6ad96fd25 Fix block place protection using a larger radius. Fixes BUKKIT-1617
By: feildmaster <admin@feildmaster.com>
2012-05-15 22:24:27 -05:00
CraftBukkit/Spigot
8afa2be81a Add option to strip color codes from server.log file
By: Travis Watkins <amaranth@ubuntu.com>
2012-05-15 20:18:35 -05:00
CraftBukkit/Spigot
01b14886d7 Update to jline 2. Fixes BUKKIT-717
JLine 2 allows for better color matching in the console and support for
colors in console on Windows. Hopefully provides better performance as well.

By: EdGruberman <ed@rjump.com>
2012-03-14 13:59:14 -07:00
CraftBukkit/Spigot
e8795d1897 Updated version to 1.2.5-R1.4-SNAPSHOT for development towards next release.
By: EvilSeph <evilseph@gmail.com>
2012-05-02 14:28:29 -04:00
CraftBukkit/Spigot
0e5970eb12 Updated version to 1.2.5-R1.3 in pom.xml for Beta.
By: EvilSeph <evilseph@gmail.com>
2012-04-30 19:36:23 -04:00
CraftBukkit/Spigot
deb6c53960 Revert "Fix potential NPE in vanish API. Fixes BUKKIT-1541"
This reverts commit ebf121800bd3161e4af0f6d9229ccb39c31fc278.

If the handle ever becomes null we need to know about it so we can debug it further.

By: feildmaster <admin@feildmaster.com>
2012-04-27 12:48:40 -05:00
CraftBukkit/Spigot
b8fdda282e Remove Player cache and edit CraftPlayer.equals to account for EntityID. Fixes BUKKIT-1541 and Addresses BUKKIT-761
By: feildmaster <admin@feildmaster.com>
2012-04-21 18:02:25 -05:00
CraftBukkit/Spigot
3aca35a701 Updated version to 1.2.5-R1.3-SNAPSHOT for development towards next release.
By: EvilSeph <evilseph@gmail.com>
2012-04-25 00:58:32 -04:00
CraftBukkit/Spigot
ad79effe24 Updated version to 1.2.5-R1.2 in pom.xml for Beta.
By: EvilSeph <evilseph@gmail.com>
2012-04-24 23:41:11 -04:00
CraftBukkit/Spigot
a208a4f9e3 Update players when potion effects are moved from them. Fixes BUKKIT-789
By: Travis Watkins <amaranth@ubuntu.com>
2012-04-24 18:59:55 -05:00
CraftBukkit/Spigot
ff8b2d38f9 Fix potential NPE in vanish API. Fixes BUKKIT-1541
By: Travis Watkins <amaranth@ubuntu.com>
2012-04-24 12:25:07 -05:00
CraftBukkit/Spigot
529ff54e26 Remove legacy Chunk cache. Fixes BUKKIT-1400
By: feildmaster <admin@feildmaster.com>
2012-04-24 13:30:55 -05:00
CraftBukkit/Spigot
bdccfb5797 We build for Java 1.5.
By: EvilSeph <evilseph@gmail.com>
2012-04-23 23:05:57 -04:00
CraftBukkit/Spigot
02fa535888 Add per-world spawn limits with fallback to server-wide bukkit.yml settings.
Fixes BUKKIT-1565

By: Travis Watkins <amaranth@ubuntu.com>
2012-04-23 19:01:22 -05:00
CraftBukkit/Spigot
f977f3cc65 Avoid doing unnecessary range checks when we're looping from start to end.
Make EntityLiving call AI logic every tick again.
Rework PathfinderGoalSelector logic.

Adds UnsafeList for use in places where we use ArrayList and know we won't
get index out of range errors. Added usage to World's tickEntities, Chunk's
entitySlices to speed up searching for entities, and to PathfinderGoalSelector
to speed up dealing with AI goals.

Reworked logic in PathfinderGoalSelector with help from fullwall. This code
no longer uses an extra ArrayList for setting up goals and only updates which
goals should be run every other time it is called.

Removed only calling PathfinderGoalSelector every other tick from EntityLiving
as we now only setup new goals every other tick. This ensures existing goals
run every tick to properly update mob movement.

By: Travis Watkins <amaranth@ubuntu.com>
2012-04-23 09:47:05 -05:00
CraftBukkit/Spigot
db27daeea7 Made permissions.yml registration easier; Addresses BUKKIT-1499
The permissions.yml now behaves similar to a plugin.yml

By: Wesley Wolfe <weswolf@aol.com>
2012-04-15 13:24:38 -05:00
CraftBukkit/Spigot
66b34af562 Properly call EntityDeathEvent for mobs. Fixes BUKKIT-1519
By: feildmaster <admin@feildmaster.com>
2012-04-15 09:16:43 -05:00
CraftBukkit/Spigot
37d14787d9 Persist PlayerDeathEvent values. Fixes BUKKIT-1521
By: feildmaster <admin@feildmaster.com>
2012-04-14 00:24:51 -05:00
CraftBukkit/Spigot
2ad2eb6b34 Updated version to 1.2.5-R1.2-SNAPSHOT for development towards next release.
By: EvilSeph <evilseph@gmail.com>
2012-04-08 23:54:35 -04:00
CraftBukkit/Spigot
b8ccdebd18 Updated version to 1.2.5-R1.1-SNAPSHOT for development towards next release.
By: EvilSeph <evilseph@gmail.com>
2012-04-05 07:12:30 -04:00
CraftBukkit/Spigot
cbba56d1eb Updated version to 1.2.5-R1.0 in pom.xml for RB.
By: EvilSeph <evilseph@gmail.com>
2012-04-04 10:01:03 -04:00
CraftBukkit/Spigot
9f199add72 Updated version to 1.2.5-R0.2-SNAPSHOT for development towards next release.
By: EvilSeph <evilseph@gmail.com>
2012-04-03 10:15:11 -04:00
CraftBukkit/Spigot
8486eddf25 Updated version to 1.2.5-R0.1 in pom.xml for beta.
By: EvilSeph <evilseph@gmail.com>
2012-04-03 05:43:00 -04:00
CraftBukkit/Spigot
eabee56243 SpawnRadius should only apply to main world. Fixes BUKKIT-1427
By: feildmaster <admin@feildmaster.com>
2012-04-02 16:40:45 -05:00
CraftBukkit/Spigot
ee87f28221 Add BlockRedstoneEvent to Redstone Lamps, Addresses BUKKIT-1431
By: feildmaster <admin@feildmaster.com>
2012-04-02 09:01:48 -05:00
CraftBukkit/Spigot
495ebd7020 Fixed interacting with Air returning a false block.
By: feildmaster <admin@feildmaster.com>
2012-04-01 04:58:11 -05:00
CraftBukkit/Spigot
6ab777a338 Fixed breaking at world height in creative. Fixes BUKKIT-997
By: feildmaster <admin@feildmaster.com>
2012-03-31 18:59:14 -05:00
CraftBukkit/Spigot
bd3ae06ade Updated version to 1.2.5-R0.1-SNAPSHOT
By: Dinnerbone (Laptop) <dinnerbone@dinnerbone.com>
2012-03-30 23:33:51 +02:00
CraftBukkit/Spigot
66f67ca425 Updated version to 1.2.4-R1.1-SNAPSHOT for development towards next release.
By: EvilSeph <evilseph@gmail.com>
2012-03-29 07:58:14 -04:00
CraftBukkit/Spigot
b508266065 Updated version to 1.2.4-R1.0 for release.
By: EvilSeph <evilseph@gmail.com>
2012-03-28 20:27:53 -04:00
CraftBukkit/Spigot
33284b8b86 Reverting the Drop API for now, we need to re-evalute this as it is causing too many issues and blocking releases.
This reverts commits:
- d2d03afc8854394aeefb40ea5ebf224c8032b19f
- 6245746e91123dd8ef70e5f15b7cdfc7e36d8e8c
- 41fae5c613e9e69a8f6bdf33b23bb09d7f407433
- c34bdecab42cf4098054a5ea43e1c2958d44ae92
- d7445084ac9a90fa0b66d8b050b8d0d2a062eaf3
- 6a6ed2e6ae2328a8a791bcc6857c44dc6c6a7030
- a783bc4dc95da8e26c673abe48fad96b550aba28
- cb50fd68766df8e07631ba5be85759f8257e8068
- 34dfff2ad5c407c712b2783f02960aac5e8649f2
- f33b513820de987b49a4338e85df80968217a601
- 5fd9fdfde055e6eb6a83db246d009b69377b7c94
- 2795b116f40d06551fbb7b96d1963c0ddbeac384

By: Warren Loo <evilseph@gmail.com>
2012-03-27 11:37:00 -04:00
CraftBukkit/Spigot
0ebe730fce [Bleeding] Allow CraftItem to be backed by non-EntityItems. Fixes BUKKIT-1351
By: feildmaster <admin@feildmaster.com>
2012-03-25 20:58:12 -05:00
CraftBukkit/Spigot
ae4b2591f7 [Bleeding] Fixed potions throwing double events. Fixes BUKKIT-1332
By: feildmaster <admin@feildmaster.com>
2012-03-25 04:21:25 -05:00
CraftBukkit/Spigot
c925bcb49d Refactor code to be more efficient.
By: feildmaster <admin@feildmaster.com>
2012-03-25 18:06:43 -05:00
CraftBukkit/Spigot
ade2618d1d [Bleeding] Fixed item duping in certain occasions. Fixes BUKKIT-1310
By: feildmaster <admin@feildmaster.com>
2012-03-25 17:53:59 -05:00
CraftBukkit/Spigot
11ea95ba9d [Bleeding] Fixed blocks dropping when BlockBreakEvent is canceled. Fixes BUKKIT-1299
By: feildmaster <admin@feildmaster.com>
2012-03-23 09:49:34 -05:00
CraftBukkit/Spigot
c92c764f2c Fixed incorrect assigning to isFlying when toggling setAllowedFlight(false)
By: Nathan Adams <dinnerbone@dinnerbone.com>
2012-03-23 14:41:53 +00:00
CraftBukkit/Spigot
7d54b49e13 Seriously fix natural drops. Fixes BUKKIT-1297 and fixes BUKKIT-1295
By: feildmaster <admin@feildmaster.com>
2012-03-23 06:08:54 -05:00
CraftBukkit/Spigot
25b27ad27b Really fixed Block.breakNaturally(). Fixes BUKKIT-1295
By: EvilSeph <evilseph@gmail.com>
2012-03-23 03:06:37 -04:00
CraftBukkit/Spigot
f03c3bd1e9 Fixed Block.breakNaturally(). Fixes BUKKIT-1295
By: EvilSeph <evilseph@gmail.com>
2012-03-23 02:12:51 -04:00
CraftBukkit/Spigot
330cba4099 [Bleeding] Add a check for illegal blocks. Addresses BUKKIT-1278. Needs more investigation.
By: feildmaster <admin@feildmaster.com>
2012-03-22 19:56:59 -05:00
CraftBukkit/Spigot
6b217d17c4 Reverted to original TextWrapper. Might re-investigate after the RB. Fixes BUKKIT-1275
By: EvilSeph <evilseph@gmail.com>
2012-03-22 19:22:35 -04:00
CraftBukkit/Spigot
9aba8f4210 Re-added TextWrapper, and fixed chat length issues (at cost of it looking not so nice sometimes!) This fixes BUKKIT-1275
By: Nathan Adams <dinnerbone@dinnerbone.com>
2012-03-22 23:02:29 +00:00
CraftBukkit/Spigot
ec19b8a466 Implemented new player flight methods. This implements BUKKIT-1281. This also fixes BUKKIT-1146.
By: Nathan Adams <dinnerbone@dinnerbone.com>
2012-03-22 22:04:13 +00:00
CraftBukkit/Spigot
12fff3a0e9 Added configurable Connection Throttle. Addresses BUKKIT-1274
By: EvilSeph <evilseph@gmail.com>
2012-03-22 08:03:24 -04:00
CraftBukkit/Spigot
51b68f06be Nuked TextWrapper. We don't need you anymore, old friend :(
By: Nathan Adams <dinnerbone@dinnerbone.com>
2012-03-22 20:49:05 +00:00
CraftBukkit/Spigot
7bb0a3fe51 Updated to Minecraft version 1.2.4. Updated version string to 1.2.4-R0.1.
By: Nathan Adams <dinnerbone@dinnerbone.com>
2012-03-22 20:39:39 +00:00
CraftBukkit/Spigot
f65e901b07 [Bleeding] Added support for custom index help topics in help.yml. Addresses BUKKIT-1263
By: rmichela <deltahat@gmail.com>
2012-03-22 00:21:18 -04:00
CraftBukkit/Spigot
2fd133b50a [Bleeding] Added option to completely disable all automatic help topic generation by adding "All" to the ignore-plugins list in help.yml. Addresses BUKKIT-1264
By: rmichela <deltahat@gmail.com>
2012-03-21 23:01:06 -04:00
CraftBukkit/Spigot
2a1f1b1008 [Bleeding] Fixed a StackOverflowError with command alias handling for Help. Addresses BUKKIT-1253
By: zml2008 <zach@zachsthings.com>
2012-03-20 19:12:14 -07:00
CraftBukkit/Spigot
d434857d8a [Bleeding] Added support for all TreeType entries to CraftWorld.generateTree(). Addresses BUKKIT-1161
By: zml2008 <zach@zachsthings.com>
2012-03-13 19:38:39 -07:00
CraftBukkit/Spigot
d6e7e41468 [Bleeding] Added Ageable interface for Villagers and Animals to extend. Addresses BUKKIT-1232
By: aPunch <theapunch@yahoo.com>
2012-03-19 14:12:17 -05:00
CraftBukkit/Spigot
4e5359c080 [Bleeding] Added getting and setting drops to all appropriate events. Fixes BUKKIT-397 and fixes BUKKIT-1252
- Allows drops in creative mode by adding items to the getDrops() list
- Contents of containers are not reported
- Contents of storage minecarts are not reported

By: Celtic Minstrel <celtic.minstrel.ca@some.place>
2012-03-05 14:21:43 -05:00
CraftBukkit/Spigot
7e41baa24b [Bleeding] Fix the openInventory methods for custom inventories. Fixes BUKKIT-1248
Details:
- The attributes of custom inventory views are no longer ignored
- Enchanting or crafting inventories no longer ignore the passed inventory and open a new one
- Inventories associated with tile entities no longer raise a class cast exception if there was no associated tile entity
- InventoryOpenEvent and InventoryCloseEvent (if they already had some other inventory open) now fire in all cases
- If for any reason the inventory failed to open, the method now returns null instead of returned the previous inventory they had open (or the default inventory, if none)

By: Celtic Minstrel <celtic.minstrel.ca@some.place>
2012-03-17 13:06:21 -04:00
CraftBukkit/Spigot
5f0bee3860 [Bleeding] Fixed NullPointerException in InventoryView.setCursor() if you tried to empty the cursor by setting it to null. Fixes BUKKIT-1043
By: Celtic Minstrel <celtic.minstrel.ca@some.place>
2012-03-13 21:46:00 -04:00
CraftBukkit/Spigot
b350a11bc0 [Bleeding] Fix some return types that could lead to ArrayStoreException
By: Celtic Minstrel <celtic.minstrel.ca@some.place>
2012-03-17 10:28:20 -04:00
CraftBukkit/Spigot
1a5043d05d [Bleeding] Add Chest.getBlockInventory() for convenience; this always returns a single chest inventory. Addresses BUKKIT-1247
By: Celtic Minstrel <celtic.minstrel.ca@some.place>
2012-03-19 15:01:53 -04:00
CraftBukkit/Spigot
51074e000d [Bleeding] Add iterator() with starting index. Addresses BUKKIT-1246
By: Celtic Minstrel <celtic.minstrel.ca@some.place>
2012-03-17 10:37:54 -04:00
CraftBukkit/Spigot
04dd6bd9fe [Bleeding] Added way to get/set if Iron Golem was player created. Addresses BUKKIT-1229
By: aPunch <alexpuncochar@yahoo.com>
2012-03-08 20:20:15 -06:00
CraftBukkit/Spigot
e470617011 [Bleeding] Implement ExpBottleEvent; Addresses BUKKIT-888
By: Wesley Wolfe <weswolf@aol.com>
2012-03-20 02:07:13 -05:00
CraftBukkit/Spigot
e1b4d5f3ae Reverted invalid clone. Fixes BUKKIT-1198
By: Celtic Minstrel <celtic.minstrel.ca@some.place>
2012-03-16 15:46:46 -04:00
CraftBukkit/Spigot
344f7d09a2 [Bleeding] Moved HelpTopicComparator to Bukkit.jar. Addresses BUKKIT-1193
By: rmichela <deltahat@gmail.com>
2012-03-16 03:41:41 -04:00
CraftBukkit/Spigot
177d81afaf [Bleeding] Added support for color codes in help.yml. Addresses BUKKIT-1191
By: rmichela <deltahat@gmail.com>
2012-03-16 00:41:13 -04:00
CraftBukkit/Spigot
8c07dee8c8 [Bleeding] Implemented the command-topics-in-master-index option in help.yml. Addresses BUKKIT-1189
When false, help topics that start with a slash are omitted from the mater index.

By: rmichela <deltahat@gmail.com>
2012-03-15 22:32:31 -04:00
CraftBukkit/Spigot
bb5bd5c069 [Bleeding] Added automatically generated plugin-level sub-indexes to the master help index. Addresses BUKKIT-1180
By: rmichela <deltahat@gmail.com>
2012-03-15 02:28:01 -04:00
CraftBukkit/Spigot
0a4dd7c032 [Bleeding] Added option to remove entire plugins from the help index using the help.yml file. Addresses BUKKIT-1178
By: rmichela <deltahat@gmail.com>
2012-03-14 23:39:19 -04:00
CraftBukkit/Spigot
f3941a2787 [Bleeding] Allow custom inventory views to change their type to BREWING or ENCHANTING, and also allow them to change their title and size. Fixes BUKKIT-1190
By: Celtic Minstrel <celtic.minstrel.ca@some.place>
2012-03-12 17:33:18 -04:00
CraftBukkit/Spigot
5cb45990cc [Bleeding] Implemented Inventory.{get,set}MaxStackSize(). Addresses BUKKIT-1076
- Custom inventories also respect this setting now.

By: Celtic Minstrel <celtic.minstrel.ca@some.place>
2012-03-14 10:00:54 -04:00
CraftBukkit/Spigot
abfdfbf0e2 [Bleeding] Make InventoryView.setItem(-999, item) drop the item on the ground by default.
By: Celtic Minstrel <celtic.minstrel.ca@some.place>
2012-03-13 22:28:27 -04:00
CraftBukkit/Spigot
6f4a370798 [Bleeding] Made ItemStack constructors not default to an amount of 0. Fixes BUKKIT-610
By: Celtic Minstrel <celtic.minstrel.ca@some.place>
2012-03-12 16:59:00 -04:00
CraftBukkit/Spigot
4113afbd7c [Bleeding] DoubleChestInventory.getHolder() no longer returns null. Addresses BUKKIT-995
By: Celtic Minstrel <celtic.minstrel.ca@some.place>
2012-03-12 16:47:43 -04:00
CraftBukkit/Spigot
5a2b483937 Fix some improper item cloning instances that would have dropped enchantments
By: Celtic Minstrel <celtic.minstrel.ca@some.place>
2012-03-13 20:50:36 -04:00
CraftBukkit/Spigot
a247a422c1 Fix losing enchants from stacked items in custom inventories
By: Wesley Wolfe <weswolf@aol.com>
2012-03-02 12:52:45 -06:00
CraftBukkit/Spigot
852f37abfd [Bleeding] Implemented ProjectileLaunchEvent. Addresses BUKKIT-284
By: Celtic Minstrel <celtic.minstrel.ca@some.place>
2012-03-12 12:45:09 -04:00
CraftBukkit/Spigot
6219bc5085 Updating minecraft-server dependency.
By: EvilSeph <evilseph@gmail.com>
2012-03-15 06:38:46 -04:00
CraftBukkit/Spigot
34c3b6022a Disabled BukkitDLUpdaterServiceTests. Nice to have, but should not be run on every compile as it relies on DLB being up. Addresses BUKKIT-1140
By: EvilSeph <evilseph@gmail.com>
2012-03-15 05:46:27 -04:00
CraftBukkit/Spigot
af07ac93b0 [Bleeding] Fixed maxStack being incorrectly set to 0 in custom craft inventories. Fixes BUKKIT-1181
By: md_5 <md_5@bigpond.com>
2012-03-15 17:55:19 +11:00
CraftBukkit/Spigot
26325dfa92 Fixed EntityDamageByEntityEvent to call for every attackable entity. Fixes BUKKIT-1129, Fixes BUKKIT-1054 and Fixes BUKKIT-147.
By: feildmaster <admin@feildmaster.com>
2012-03-12 17:55:02 -05:00
CraftBukkit/Spigot
4f37e35665 [Bleeding] Call a LAVA BlockIgniteEvent in another place in BlockStationary. Fixes BUKKIT-970
Also adds CraftEventFactory.callEvent(Event), which returns the event called. Currently only used for n.m.s.BlockStationary's lava
BlockIgniteEvent calls.

By: zml2008 <zach@zachsthings.com>
2012-03-10 21:56:55 -08:00
CraftBukkit/Spigot
67f275fc78 Implemented Enchantment.conflictsWith(). Addresses BUKKIT-1159
By: Celtic Minstrel <celtic.minstrel.ca@some.place>
2012-03-12 15:32:46 -04:00
CraftBukkit/Spigot
70900406c9 [Bleeding] Added Player.isBlocking(). Addresses BUKKIT-858
By: Celtic Minstrel <celtic.minstrel.ca@some.place>
2012-03-12 10:55:00 -04:00
CraftBukkit/Spigot
cad4f85021 [Bleeding] Added EntityBreakDoorEvent. Fixes BUKKIT-1134
By: feildmaster <admin@feildmaster.com>
2012-03-10 18:43:35 -06:00