1052 Commits

Author SHA1 Message Date
Eric Stokes
67301a1d29 Added 'generate-structure' setting support and WorldCreator property.
Fixes BUKKIT-655 and BUKKIT-592
2012-01-29 13:06:23 -05:00
EvilSeph
b4713855e2 Added useExactLoginLocation(). Closes BUKKIT-145
useExactLoginLocation() looks for settings.use-exact-login-location within bukkit.yml.

If true, we will bypass Vanilla's behaviour of checking for collisions and moving the player if needed when they login.

If false, we will continue to follow Vanilla's behaviour and move players that 'collide' with objects when they login.
2012-01-29 12:31:59 -05:00
Erik Broes
839d00f9d6 Add some testing 2012-01-29 11:17:44 +01:00
EvilSeph
76dc09be3c Cleanup. 2012-01-27 18:23:27 -05:00
EvilSeph
d7469ca79e Fixed plugin loader. Thanks Wolvereness! 2012-01-25 04:11:37 -05:00
EvilSeph
a31f506e25 Adhere to naming conventions. 2012-01-25 02:10:02 -05:00
EvilSeph
66ffbbf1c5 This will be re-added after the RB. 2012-01-25 02:08:00 -05:00
Mike Primm
65e4d888c1 [Bleeding] Added EnchantmentTable API. 2012-01-24 06:13:48 -05:00
Zeerix
b516d3bf78 [Bleeding] Added PotionSplashEvent for splash potions. Closes BUKKIT-307 2012-01-24 02:11:38 -05:00
EvilSeph
8d19709c5a Added spacing to BanListCommand output. 2012-01-23 20:30:21 -05:00
Aidan Matzko
26a6a1edf4 [Bleeding] Added Sheep, Shear and EntityChangeBlock API. Thanks tips48! Closes BUKKIT-512 2012-01-23 18:57:37 -05:00
Tahg
468d45b761 Updated timing code for new event system 2012-01-19 18:41:04 -05:00
Nathan Adams
92bbf8957c Added new PlayerExpChangeEvent and PlayerLevelChangeEvent events. Thanks to feildmaster for the PR. 2012-01-19 16:07:03 +00:00
Nathan Adams
c29a93a8c1 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
257e35d51c 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
81dc1c0a52 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
95e3f07b69 Add Player.setBedSpawnLocation(Location). Thanks md_5 2012-01-17 22:43:16 +01:00
Erik Broes
e542942d45 Minor cleanup 2012-01-17 19:51:27 +01:00
Erik Broes
8874b94185 [Bleeding] Added EntityShootBowEvent. Thanks Zeerix. 2012-01-17 19:51:11 +01:00
Erik Broes
c2e82a68c1 [Bleeding] Add BrewingStand API. Thanks N3X15 & md_5 2012-01-17 19:50:23 +01:00
Zeerix
418d18831c [Bleeding] Added DamageCause.POISON/MAGIC and RegainReason.MAGIC/MAGIC_REGEN for potions 2012-01-17 19:49:06 +01:00
Zeerix
d384da1e7c [Bleeding] Added Block.breakNaturally and Block.getDrops 2012-01-17 19:48:36 +01:00
Nathan Adams
86f33b82c9 [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
64a8e06102 [Bleeding] Added Block.getLightFromSky and getLightFromBlocks 2012-01-17 19:45:47 +01:00
rmichela
5ca940b907 [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
b52aa71501 [Bleeding] Added: <T extends Entity> Collection<T> World.getEntitiesByClass(Class<T>... classes) 2012-01-17 19:44:41 +01:00
Erik Broes
ef63530432 [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
f73a9bac8f Fixed incorrect value for ChatColor.BLACK (was 1, should be 0) 2012-01-16 19:49:16 +00:00
Nathan Adams
ed34f17ddf 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
2e547c5b33 Added a World.getWorldType() method 2012-01-15 17:43:53 +00:00
Erik Broes
88c17a7f86 Generic cleaning 2012-01-15 14:37:43 +01:00
Nathan Adams
bc95edd4dc 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
a10057b541 Added an EntityCreatePortalEvent 2012-01-15 11:58:03 +00:00
Nathan Adams
ea3e91b416 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
96b3a075af Added Player set/getAllowFlight methods. Thanks to Qala for the PR. 2012-01-15 10:55:33 +00:00
Nathan Adams
bf123c8b02 Fixed typo in Event javadoc, thanks to robin0van0der0v for the PR 2012-01-15 10:43:42 +00:00
Nathan Adams
f442a92c1e 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
5ba2e0e158 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
11adb74a23 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
9e3ce5cd24 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
42f7a6b8e4 Don't send events to disabled plugins. 2012-01-15 08:18:44 +00:00
Nathan Adams
b2f0af9499 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
65cf915a15 Fixed documentation of getNearbyEntities in Entity. Thanks to epuidokas for the PR. 2012-01-15 07:38:14 +00:00
Nathan Adams
87ee353d4d 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
d36385d28f 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
2c1cd77cdc 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
2d1e365c43 Added entity.playEffect, thanks to main-- in an (unfortunately old) PR. 2012-01-14 17:35:52 +00:00
Feildmaster
c16210e2e2 Added ItemDespawnEvent 2012-01-14 17:01:03 +00:00
Nathan Adams
88a1512ee3 Fixed nullcheck error message on null plugin (see previous commit) 2012-01-14 14:32:56 +00:00
Nathan Adams
63673c496f Nullcheck in registerEvent (thanks to an old PR by LRFLEW - I'm sorry for the wait!) 2012-01-14 14:31:00 +00:00