138 Commits

Author SHA1 Message Date
EvilSeph
a231c514d9 Removed trailing spaces. 2011-05-02 01:18:23 -04:00
EvilSeph
8e95e2788a Fixed formatting and removed tabs. 2011-04-27 23:48:43 -04:00
EvilSeph
a5aa113ce3 Added a lot of events relating to weather, including those for entities. Thanks wizjany! 2011-04-25 19:46:10 -04:00
Stephen
bd5d86665a Added painting events (thanks verrier and tanelsuurhans) 2011-04-25 23:25:55 +02:00
Erik Broes
b39503de71 Updated README for line-ending demands, also fixed line-endigs. 2011-04-25 13:24:32 +02:00
sk89q
ca74c6d3ee Added lightning as a cause for fires. 2011-04-22 01:20:49 -07:00
Dinnerbone
626edb3eb0 Added LIGHTNING as a possible source of damage 2011-04-21 17:29:07 +01:00
Dinnerbone
df18fad33f Dammit, line endings! 2011-04-21 15:27:18 +01:00
sk89q
3791a158de Added pre-login event for catching logins right after name verification has completed. This happens in a different thread from the server (and thus can also block). 2011-04-16 03:08:05 -07:00
sk89q
bd533b3c8a Added bed events and methods. 2011-04-07 11:26:33 -07:00
Dinnerbone
a521a8ae77 Line endings. This is getting very annoying. 2011-04-05 16:35:57 +01:00
EvilSeph
aa7c55627d Fixed PlayerInventoryEvent Type. 2011-04-04 20:40:46 -04:00
Tahg
4378464989 added some API for entities 2011-04-04 01:14:26 -04:00
Raphfrk
04ddb17fce Added the ability to set the quit message 2011-04-02 18:25:33 +02:00
Robert Sargant
c5fbd41659 Added VEHICLE_DESTROY event 2011-04-02 17:10:36 +02:00
William Bowers
287114f8ed Added the SPAWN_CHANGE event, which occurs when a world's spawn is changed.
This event includes the world who's spawn changed and its previous spawn location.

To listen for this event:
  PluginManager pm = getServer().getPluginManager();
  YourWorldListener worldListener = new YourWorldListener(this);
  pm.registerEvent(Event.Type.SPAWN_CHANGE, worldListener, Priority.Normal, this);

To use this event:
  public class YourWorldListener extends WorldListener {
      @Override
      public void onSpawnChange(SpawnChangeEvent event) {
          World world = event.getWorld();
          Location previousLocation = event.getPreviousLocation();
      }
  }
2011-04-02 17:00:29 +02:00
Dinnerbone
0d98e831cc Missed a hard break 2011-03-31 23:02:39 +01:00
Dinnerbone
2362fc6511 We weren't supposed to break things *that* hard. Plugins still need to update but here's a TEMPORARY fix. 2011-03-31 22:51:26 +01:00
Erik Broes
6929a1830e Force compile-time failures for the subtle changes done in the API 2011-03-30 00:25:59 +02:00
HACKhalo2
9baed69563 Added the KICK_WHITELIST Result for players being kicked from not being on the whitelist, just because KICK_BANNED didn't seem to fit. 2011-03-29 21:37:31 +01:00
sunkid
1ae3433d89 fixed PlayerCommandPreprocessEvent inheritance 2011-03-28 17:15:41 -07:00
Byron Shelden
2b3698d6b1 Fixed PlayerTeleportEvent so getType() returns Type.PLAYER_TELEPORT 2011-03-28 01:15:21 +02:00
Dinnerbone
32b3c77165 Line endings, consistency! 2011-03-27 21:27:27 +01:00
Erik Broes
6d987ec850 Fix Type of VehicleDamageEvent 2011-03-27 12:35:16 +02:00
Erik Broes
cc899b0048 Change some more signatures :(
onPlayerCommandPreprocess(PlayerChatEvent event) -> onPlayerCommandPreprocess(PlayerCommandPreprocessEvent event)
onBlockFlow(BlockFromToEvent event)     -> onBlockFromTo(BlockFromToEvent event)
onPlayerJoin(PlayerEvent event)         -> onPlayerJoin(PlayerJoinEvent event)
onPlayerQuit(PlayerEvent event)         -> onPlayerQuit(PlayerQuitEvent event)
onPlayerTeleport(PlayerMoveEvent event) -> onPlayerTeleport(PlayerTeleportEvent event)
2011-03-27 00:16:06 +01:00
Erik Broes
94894216e8 Some more backwards incompatible changes (minor though), also a ton of small cleanup.
onPluginEnable(PluginEvent event)   -> onPluginEnable(PluginEnableEvent event)
onPluginDisable(PluginEvent event)  -> onPluginDisable(PluginDisableEvent event)
onVehicleUpdate(VehicleEvent event) -> onVehicleUpdate(VehicleUpdateEvent event)
onWorldSave(WorldEvent event)       -> onWorldSave(WorldSaveEvent event)
onWorldLoad(WorldEvent event)       -> onWorldLoad(WorldLoadEvent event)
2011-03-26 22:32:14 +01:00
Raphfrk
6ece05bc73 Added player join event 2011-03-26 15:32:29 +01:00
Erik Broes
5141b7fe10 Fix wrong useItemInHand setting 2011-03-24 22:50:12 +01:00
Erik Broes
2916cba631 Fix for placing blocks after interacting with a block 2011-03-24 12:12:21 +01:00
Erik Broes
0ede0ca875 Remove lingering PlayerItemEvent file 2011-03-24 00:11:26 +01:00
Erik Broes
d6341293e7 Reworked BlockDamageEvent to match with the latest Mojang client/server changes. 2011-03-23 16:58:43 +01:00
Erik Broes
700c8a20dd Add PLAYER_INTERACT, remove BLOCK_RIGHT_CLICK, BLOCK_INTERACT and PLAYER_ITEM 2011-03-23 16:58:43 +01:00
Erik Broes
f0544a90fc Added PlayerBucket events 2011-03-23 16:58:43 +01:00
Erik Broes
8cf7b9e371 Renamed many events/constants to be not past tense <-- Major Break says: "HI" 2011-03-23 16:58:26 +01:00
Gunther De Wachter
f89e47ba9c Added DamageType.VOID 2011-03-17 20:04:02 +01:00
Dinnerbone
7867b27965 All previous deprecated methods removed (OH GOD EVERYTHING BROKEN) 2011-03-14 15:05:46 +00:00
Dinnerbone
1de6f5bef8 Purged deprecated MobType and MobSpawner 2011-03-07 16:29:03 +00:00
Erik Broes
4b1688f4da Small change for CraftBukkit BlockFlowing fix 2011-03-02 21:23:37 +01:00
Dinnerbone
27b680375f Added PlayerChatEvent.getRecipients 2011-02-26 19:31:13 +00:00
Dinnerbone
72e6769d68 Removed onPlayerCommand (PLAYER_COMMAND) (and fixed Fillr to stop using it) 2011-02-26 19:09:57 +00:00
Raphfrk
b53769f088 small change 2011-02-27 01:22:24 +08:00
Tahg
dbab772ca8 refactor Items 2011-02-21 19:57:06 -05:00
Tahg
b2847fdf8c added yield to explosions 2011-02-19 23:36:59 -05:00
sk89q
e529e44d86 Lowered the priority of the old command handler event because a number of plugins were using this event incorrectly. A new event, the command preprocesser event, has replaced the previous function of the original command event. 2011-02-19 17:47:49 -08:00
Dinnerbone
361d8f2b9f Shifting damage events per http://forums.bukkit.org/threads/oops-i-broke-your-plugins.599/#post-67424 (This breaks stuff!) 2011-02-19 17:08:14 +00:00
EvilSeph
050f21b2f0 When deprecating, the alternative should be provided. 2011-02-19 06:00:55 -05:00
Andrew Ardill
ac68b8594e Renamed MobType->CreatureType and MobSpawner->CreatureSpawner.
This is to bring the names in line with the rest of bukkit.

Deprecated code has been left in to ensure nothing breaks as
a result of refactoring MobType.
This will be removed after 1 week, to give plugin devs time to
migrate
2011-02-17 18:01:25 +11:00
sk89q
69d3880730 Deprecated PlayerListener.onPlayerCommand(PlayerChatEvent event). 2011-02-16 21:47:05 -08:00
ss2man44
93f6e5191e Added CREATURE_SPAWN event 2011-02-16 22:28:44 -05:00
Timberjaw
524515cb83 Added getPlayer method to SignChangeEvent 2011-02-12 14:49:49 -05:00