49 Commits

Author SHA1 Message Date
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
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
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
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
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
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
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
culturespy
01ca4cc35b Added EXPLOSION_PRIMED event. 2011-02-12 02:47:27 -05:00
Timberjaw
3cc8c0dae0 Added SIGN_CHANGE event. 2011-02-11 20:34:02 -05:00
James Logsdon
164b687bcd Adding PLAYER_PICKUP_ITEM event 2011-02-12 01:39:44 +01:00
Dinnerbone
2db95ba0b9 Added event for when a world is saved (EyvindRM) 2011-02-09 12:57:48 +00:00
Alexander Hesse
6ba990ecfd Added Sneaking Event 2011-02-08 17:09:11 +01:00
Dinnerbone
46bc44ed5f New event WORLD_LOADED 2011-02-08 12:06:34 +00:00
Forsaken
0b998a2fe4 Added PlayerKick (setReason, setLeaveMessage, setCancelled) and PlayerRespawn (setLocation) 2011-02-06 12:13:18 +01:00
Meaglin
af9d2b86c3 Interface for BlockBreakEvent 2011-02-01 18:07:16 +01:00
Dinnerbone
1dba6e8874 Added PLAYER_DROP_ITEM 2011-02-01 10:45:39 +00:00
Dinnerbone
630f9a89d6 Added VEHICLE_UPDATE 2011-02-01 10:18:27 +00:00
Dinnerbone
000d2a300f Added PLAYER_ITEM_HELD event 2011-01-31 01:34:23 +00:00
stevenh
47af4404bf Renamed IExecutor -> CommandExecutor and fixed SERVER_COMMAND doc 2011-01-29 21:17:36 +00:00
stevenh
a89a96416b Refactored event calling so its front loading avoiding the lookup for each event call.
This now uses an annoymous class implementing IExecutor that facilitates direct event method handler calling

Changed commands from being executed exclusively by a player to by a CommandSender to facilitate external command callers such as rcon

Fixed CustomEventListener

Merged in additional events

Added getFullName to PluginDescriptionFile which returns the combination of Name and Version

There's also a few bits of reformatting as it seems someones been editing with either tabs or dos eol :(
2011-01-29 16:23:56 +00:00
speakeasy
f4908db7c1 Added EntityExplodeEvent :D 2011-01-18 00:22:02 +08:00
Andrew Ardill
db5d43c2a9 Implementation of the EntityDamage*Events.
A new event EntityDamageByProjectileEvent was created. EntityDamageByProjectileEvent
adds the ability to get the projectile entity (such as an egg) and also set if
the projectile 'bounces'. New interfaces were created to facilitate all kinds
of projectile entities. Changes were made to facilitate the new event, and
enable other events, for plugins and event listeners.
2011-01-16 14:13:44 +01:00
Erik Broes
8cf9d7fe6c Fixed 3 event rename typos, cheers Master-Guy for letting me know 2011-01-15 21:58:57 +01:00
Erik Broes
9afcb8ecc7 Events should be present tense, not paste tense. 2011-01-15 21:26:42 +01:00
Taylor Kelly
e35b9b594a EggThrow - remove extra stuff 2011-01-11 03:02:30 -05:00
Taylor Kelly
0b4916afd6 PlayerEggThrowEvent 2011-01-11 02:58:51 -05:00
Taylor Kelly
219c0772fd EntityCombustEvent 2011-01-10 02:59:30 +00:00
Luke GB
7c93a16862 Added JavaDoc @see comments and @todo notes for those that aren't specified in the listener 2011-01-09 13:14:28 +00:00
durron597
b43d8d60a6 Implemented BlockInteract, BlockRightClicked and PlayerItem. Removed
BlockItem as we're not doing it that way anymore.
2011-01-08 05:45:15 -05:00
durron597
3fc85a5e82 Implemented Item_Use events 2011-01-07 05:34:07 -05:00
Dinnerbone
a210fcc0ef Removed onBlockSent, added onLeavesDecay 2011-01-04 22:03:15 +00:00
angelsl
23cdf49521 Overhaul entity damage structure... 2011-01-03 15:54:58 +00:00
angelsl
6da623bd18 Entity damage hooks 2011-01-03 15:54:24 +00:00
sk89q
135c6f240a Change vehicle hook changes. 2011-01-03 22:24:44 +08:00
sk89q
e05708c9df Implemented vehicle hooks (some changes will still be made). 2011-01-03 22:24:43 +08:00
durron597
b80eb77fa6 removed unnecessary import 2011-01-02 21:38:48 -05:00
Dinnerbone
f4fa9c6e00 Updated Event list 2011-01-02 18:08:26 +00:00
Dinnerbone
696bdf7ff1 Updated event priorities 2011-01-02 15:10:51 +00:00
Lymia
4a9c7e0712 Added custom event support. 2011-01-02 01:50:45 -06:00
durron597
3317654a9c Changed all tabs to 4 spaces 2011-01-01 08:01:07 -05:00
Erik Broes
ddff384203 Transition to Maven 2011-01-01 11:23:14 +01:00