1086 Commits

Author SHA1 Message Date
feildmaster
a54fdd96e8 Add API for getting and setting experience for BlockBreakEvent. Addresses BUKKIT-2033 2012-08-08 19:48:50 -05:00
feildmaster
3c91fdc121 Add spaces to gamemode message. Fixes BUKKIT-2148 2012-08-08 19:48:49 -05:00
Wesley Wolfe
b626fb894a Purge outdated biomes. Fixes BUKKIT-1087 2012-08-07 01:55:48 -05:00
Wesley Wolfe
1acd7401c7 Add Warning API and settings for Deprecated events 2012-08-07 00:16:57 -05:00
feildmaster
9835a9868f Don't send duplicate messages for Gamemode and Time commands.
Gamemode gets sent with the packet.
2012-08-06 11:29:38 -05:00
feildmaster
61d302c232 Update commands to match 1.3 vanilla commands 2012-08-06 06:59:46 -05:00
feildmaster
b374b3b2cd Fail silently on incorrect number input 2012-08-06 06:59:45 -05:00
Wesley Wolfe
9528f47727 Change inheritance for new MaterialData. 2012-08-05 22:01:54 -05:00
Mike Primm
91de17c900 [Bleeding] Add new MaterialData classes for new blocks and update existing blocks with new data 2012-08-05 19:55:46 -05:00
Wesley Wolfe
0249a23179 BREAKING: replace defunct PlayerChatEvent with async chat. Addresses BUKKIT-2064
PlayerChatEvent is now Deprecated. It should be fired asynchronously, but
has not been so traditionally. To do so would massively break plugins that
rely on it.

AsyncPlayerChatEvent now replaces PlayerChatEvent. It uses comparable
functionality, but can be fired without synchronizing to the event manager.
The event will sometimes fire synchronously if triggered by a plugin.

Because PlayerChatEvent is now deprecated, PlayerCommandPreprocessEvent will
no longer extend PlayerChatEvent. This is almost completely source and
binary compatible, bar plugins that downcast to PlayerChatEvent.
Additionally, some methods that are non-functional have been marked
deprecated and indicate such.

Additionally, new constructors are now provided to allow for lazier
initialization of the receiving player set. A note has been added stating
plugins should be prepared for UnsupportedOperationExceptions if the caller
provides an unmodifiable collection.
2012-08-03 20:31:01 -05:00
Wesley Wolfe
bd309e212c Warn server owners of plugins using deprecated events. Fixes BUKKIT-2027 2012-08-02 23:21:02 -05:00
Travis Watkins
7789f67744 Test command permissions before running them. 2012-08-02 19:02:23 -05:00
feildmaster
bd5dd94afb Revive the toggledownfall permission! (and fix descriptions) 2012-08-02 18:31:19 -05:00
feildmaster
638bdde9bc Add LargeBiomes WorldType. 2012-08-02 08:55:11 -05:00
feildmaster
0b304a288e Update Bukkit for 1.3.1 changes 2012-08-02 04:54:21 -05:00
feildmaster
77bdf88cd6 Add API to get a players experience to level (getExpToLevel). Implements BUKKIT-1906
This is the total experience one needs to gain a level.
2012-07-11 17:12:26 -05:00
feildmaster
eb3f24011f Implement server.getMotd() for BUKKIT-1799 2012-07-04 23:21:03 -05:00
feildmaster
3b42b1d170 Don't "setLastDamageCause" in the DamageEvent constructor. Addresses BUKKIT-1881
This is now done after the event to allow you to be able to get previous damageCauses, and is now only applied if the event is not canceled.
2012-07-03 14:09:51 -05:00
TomyLobo
16d0694dcf Add an isValid() method to Entity. Addresses BUKKIT-810 2012-06-28 19:33:33 -05:00
Wesley Wolfe
34b63c06cc Add check for existing config file. Addresses BUKKIT-1851 2012-06-28 16:39:19 -05:00
TomyLobo
d3bf76da9d Add LivingEntity.hasLineOfSight. Addresses BUKKIT-1255 2012-06-23 10:58:01 -05:00
V10lator
f735129254 Deprecate spawnCreature and add spawnEntity. Addresses BUKKIT-1168 2012-06-23 10:57:59 -05:00
Wesley Wolfe
9cb65fd1cd Add plugin channel events. Addresses BUKKIT-1844 2012-06-21 02:39:35 -05:00
Travis Ralston
e7396e74c4 Add PlayerItemBreakEvent. Addresses BUKKIT-1600 2012-06-21 02:08:31 -05:00
Wesley Wolfe
b17ca47d88 Revert "Shift plugin initialization; Addresses BUKKIT-1788"
This reverts commit 27cb5e7c9c6b2cfc5419262df75d89bc6bfe7879. Issues
were discovered with shared class loaders.
2012-06-16 00:48:47 -05:00
Wesley Wolfe
d21cc6a999 Shift plugin initialization; Addresses BUKKIT-1788 2012-06-15 23:48:09 -05:00
obnoxint
d7ff46b10c Add NotePlayEvent. Fixes BUKKIT-1779 2012-06-14 20:58:19 -05:00
Wesley Wolfe
8c68913506 Add asynchronous pre-login event; Addresses BUKKIT-1213 2012-06-13 23:01:03 -05:00
Wesley Wolfe
9e73a8887c Support asynchronous events; Addresses BUKKIT-1212 2012-06-13 23:01:03 -05:00
H31IX
ef1748ef68 Add PlayerToggleFlightEvent. Fixes BUKKIT-1696 2012-06-13 22:19:51 -05:00
Wesley Wolfe
cb632c0cc3 Check for non-existent class alias; Fixes BUKKIT-1780 2012-06-09 15:58:53 -05:00
feildmaster
062a3df78d Javadoc updates
Fixes BUKKIT-1653, Fixes BUKKIT-1383 and Fixes BUKKIT-1644
2012-06-03 05:40:54 -05:00
Wesley Wolfe
ff198c25a8 Change logger references to explicitly use plugin logger 2012-05-26 14:33:27 -05:00
Wesley Wolfe
f8981b1792 Reverse disable order; Addresses BUKKIT-1389 2012-05-26 01:28:51 -05:00
Wesley Wolfe
f54d9354e8 Make class loader preference predictable; Fixes BUKKIT-1591 2012-05-25 15:47:39 -05:00
Acrobot
9f3b14f323 Use existing function to get opposite block face 2012-05-25 05:01:47 -05:00
Wesley Wolfe
eb8f92c83a Add getName() to AnimalTamer 2012-05-24 22:33:45 -05:00
Travis Watkins
f4bee983b0 Optimize ChatColor.getLastColors.
ChatColor searches from the start to the end of a string for chat format
characters but this always has to search the entire string. By starting
from the end of the string and working backwards we can stop searching once
we find a color code or a reset code as any previous formatting is wiped
out by these.
2012-05-16 18:42:39 -05:00
Travis Watkins
5a7f09f1a7 Add IgniteCause.FIREBALL for BUKKIT-1566 2012-05-09 01:41:47 -05:00
feildmaster
f83a59e19f Set help index page to 1 for invalid numbers. Fixes BUKKIT-1569 2012-04-30 17:47:27 -05:00
Wesley Wolfe
5c32e54226 Making MemorySection much more efficient; Addresses BUKKIT-1454 2012-04-30 16:54:00 -05:00
feildmaster
a11efdcfb7 Made clearPermissions public. Addresses BUKKIT-1541 2012-04-27 12:31:42 -05:00
feildmaster
1eb3d54c4b We default to OP 2012-04-27 04:59:53 -05:00
Travis Watkins
78f7c8038d Add API for managing mob spawn limits per-world. Fixes BUKKIT-1565 2012-04-23 21:53:52 -04:00
Wesley Wolfe
1fd825cb7b Adding ceil to NumberConversions 2012-04-15 18:25:57 -05:00
feildmaster
55c12d5dd5 Add SpawnReason.DEFAULT, to make SpawnReason.CUSTOM solely for plugins 2012-04-14 01:31:59 -05:00
feildmaster
92821498f0 Added SpawnReason.SLIME_SPLIT. Addresses BUKKIT-790 2012-04-14 00:59:29 -05:00
feildmaster
3fb02d56b3 Fix createSection getting sections from itself. Fixes BUKKIT-1513 2012-04-14 00:59:22 -05:00
Wesley Wolfe
9030ba5f99 Adds address to PlayerLoginEvent; Addresses BUKKIT-431
This also deprecates old constructors left for compatibility. Address
will default to null in these cases.
2012-04-03 17:00:05 -05:00
EvilSeph
20779ab582 Removed pointless counter and use .length in PluginsCommand. Thanks nallar! 2012-04-02 16:28:58 -04:00