Commit Graph

1239 Commits

Author SHA1 Message Date
Nathan Adams
d83c2e17ec Player.setPlayerListName no longer ignores colour length in size limit. This relates to BUKKIT-571 2012-01-19 15:10:14 +00:00
Erik Broes
792d2601e6 Use the type of the eventhandler method's parameter as type rather than specificing it. Thanks zml2008. 2012-01-19 08:13:49 +01:00
zml2008
a4ff34607b Added a default to EventHandler.priority()
Fixed HandlerList.unregisterAll()
Fixed incorrect isAssignableFrom check in SimplePluginManager.getRegistrationClass()
2012-01-18 14:46:15 +01:00
Erik Broes
a210df5d52 Add Player.setBedSpawnLocation(Location). Thanks md_5 2012-01-17 22:43:16 +01:00
Erik Broes
0062c83d81 Minor cleanup 2012-01-17 19:51:27 +01:00
Erik Broes
d57776f058 [Bleeding] Added EntityShootBowEvent. Thanks Zeerix. 2012-01-17 19:51:11 +01:00
Erik Broes
4d7a141a33 [Bleeding] Add BrewingStand API. Thanks N3X15 & md_5 2012-01-17 19:50:23 +01:00
Zeerix
fb45b3295b [Bleeding] Added DamageCause.POISON/MAGIC and RegainReason.MAGIC/MAGIC_REGEN for potions 2012-01-17 19:49:06 +01:00
Zeerix
7c7e78b914 [Bleeding] Added Block.breakNaturally and Block.getDrops 2012-01-17 19:48:36 +01:00
Nathan Adams
e35037ab50 [Bleeding] Changed event system into a new, much faster design. Huge thanks to @zml2008 & @lahwran. 2012-01-17 19:46:22 +01:00
Mike Primm
5c8bc62f26 [Bleeding] Added Block.getLightFromSky and getLightFromBlocks 2012-01-17 19:45:47 +01:00
rmichela
05173f2200 [Bleeding] Added Plugin.getLogger() which returns a java.util.Logger that prefixes messages with the plugin name.
Note: the server when enabling or disabling a plugin will now by default log this.
2012-01-17 19:45:36 +01:00
Mike Primm
cd30d470e7 [Bleeding] Added: <T extends Entity> Collection<T> World.getEntitiesByClass(Class<T>... classes) 2012-01-17 19:44:41 +01:00
Erik Broes
992fa6d039 [Bleeding] Add Animals: setAgeLock(bool), bool getAgeLock, void setBaby, void setAdult, void setBreed(bool), bool canBreed and bool isAdult. 2012-01-17 19:44:18 +01:00
Nathan Adams
5ace5adc62 Fixed incorrect value for ChatColor.BLACK (was 1, should be 0) 2012-01-16 19:49:16 +00:00
Nathan Adams
c72c570d77 Added ChatColor.MAGIC, changed to char based values and deprecated old methods. Added unit tests for ChatColor 2012-01-16 19:38:08 +00:00
Nathan Adams
dba43691ca Added a World.getWorldType() method 2012-01-15 17:43:53 +00:00
Erik Broes
eb9dc64493 Generic cleaning 2012-01-15 14:37:43 +01:00
Nathan Adams
78cc950c50 Added "class-loader-of" field to plugin.yml. Big thanks to CmdrDats for the PR. 2012-01-15 12:54:06 +00:00
Nathan Adams
b2364780cb Added an EntityCreatePortalEvent 2012-01-15 11:58:03 +00:00
Nathan Adams
0023c705eb Configurations now properly support lists of serializable objects, and ItemStack is properly serializable. Big thanks to GICodeWarrior for the PR. This fixes BUKKIT-425 2012-01-15 11:15:58 +00:00
Nathan Adams
c84c5a2132 Added Player set/getAllowFlight methods. Thanks to Qala for the PR. 2012-01-15 10:55:33 +00:00
Nathan Adams
77bcae7419 Fixed typo in Event javadoc, thanks to robin0van0der0v for the PR 2012-01-15 10:43:42 +00:00
Nathan Adams
dae33a62c9 ItemStack.getMaxStackSize no longer incorrectly returns -1 when not backed by an NMS instance. Thanks to feildmaster for the PR. This fixes BUKKIT-530 2012-01-15 10:00:27 +00:00
Nathan Adams
38601bfd28 Changed Material to use an array for lookups, instead of a hashmap. Thanks to zml2008 for the PR 2012-01-15 09:18:20 +00:00
Nathan Adams
03de75c5b9 Added EntityBlockFormEvent for block forming by entity actions (snowmen etc). Thanks to fieldmaster for the PR. 2012-01-15 09:13:00 +00:00
Nathan Adams
ab69fdd29f Config .get*List will return an empty list of the appropriate type instead of null when the value does not exist. Thanks to krinsdeath for the PR. 2012-01-15 09:04:08 +00:00
Feildmaster
ec2ccae979 Don't send events to disabled plugins. 2012-01-15 08:18:44 +00:00
Nathan Adams
e9d96383f4 Changed PluginDisableEvent to fire before the disabling of a plugin, instead of after (where it's then invalid). Thanks to holic for the PR. 2012-01-15 08:16:57 +00:00
Nathan Adams
3a89a0b643 Fixed documentation of getNearbyEntities in Entity. Thanks to epuidokas for the PR. 2012-01-15 07:38:14 +00:00
Nathan Adams
c6ea04c807 Fixed Leaves.getSpecies returning null on higher data values. Thanks to Wolvereness for the PR. 2012-01-15 07:33:02 +00:00
Nathan Adams
44217678e6 Added new methods to set a players respawned level/exp/totalExp in PlayerDeathEvent. Thanks to Feildmaster for the PR. 2012-01-14 17:54:03 +00:00
Nathan Adams
589f528f7f Updated javadocs of Player.setPlayerListName to reflect that the char limit is based on length without colours 2012-01-14 17:42:57 +00:00
Nathan Adams
e03e2cc1c2 Added entity.playEffect, thanks to main-- in an (unfortunately old) PR. 2012-01-14 17:35:52 +00:00
Feildmaster
0467c6aa06 Added ItemDespawnEvent 2012-01-14 17:01:03 +00:00
Nathan Adams
ebc7b22a10 Fixed nullcheck error message on null plugin (see previous commit) 2012-01-14 14:32:56 +00:00
Nathan Adams
987d277d91 Nullcheck in registerEvent (thanks to an old PR by LRFLEW - I'm sorry for the wait!) 2012-01-14 14:31:00 +00:00
Nathan Adams
239ece5c19 Added 5 new biomes as included in MC 1.1 as part of #BUKKIT-496 2012-01-14 13:13:25 +00:00
md-5
f139ea4a9f Allow proper integration with NMS WorldTypes 2012-01-14 11:15:56 +11:00
Nathan Adams
55cc8722c8 Implemented new Plugin Message API - see http://dinnerbone.com/blog/2012/01/13/minecraft-plugin-channels-messaging/ 2012-01-13 08:53:14 +00:00
md-5
b96b34925b Make getByName actually return values. 2012-01-13 07:32:32 +01:00
Nathan Adams
c423a56624 Added new 1.1 items, enchantments. Added WorldType, and a method to set/get the type of a world at creation. 2012-01-12 22:17:18 +00:00
Tahg
b43403e05c Further fix to Location. 2012-01-10 00:20:43 -05:00
EvilSeph
195bd2bef9 Revert "Improved some debug in Location."
This reverts commit 0569e71b26.
2012-01-09 23:55:43 -05:00
Tahg
0569e71b26 Improved some debug in Location. 2012-01-09 23:44:46 -05:00
Tahg
3d4c2010eb Added timings command. 2012-01-09 23:44:17 -05:00
Tahg
c80b2d2fd9 Added data argument to vanilla give command 2012-01-09 01:20:54 -05:00
Tahg
7f07319472 improved some debug in Location 2012-01-09 01:20:54 -05:00
Nathan Adams
b9d901a305 Fixed YamlConfiguration creating empty lines when reading a file with no contents, and made it trim the initial newlines of any existing config header 2012-01-08 23:32:36 +00:00
EvilSeph
f131151325 Fixed NPE in ItemStack. Thanks jascotty2! 2012-01-07 19:58:26 -05:00