Commit Graph

55 Commits

Author SHA1 Message Date
Dinnerbone
bca3b8d0c5 Added custom world generator API 2011-06-06 18:37:20 +01:00
Erik Broes
c4d444ce98 Whitespace + general cleanup 2011-05-15 14:06:02 +02:00
sk89q
2406a4496d Added dispenser event. 2011-05-08 02:57:26 -07:00
EvilSeph
4e3d770ad3 Added PlayerInteractEntityEvent which fires when a player right clicks an entity. Thanks fullwall! 2011-05-02 04:31:42 -04:00
EvilSeph
f0d14d156e Added SnowFormEvent. Thanks aPunch! 2011-05-02 01:46:55 -04:00
EvilSeph
de28e15e50 Removed trailing spaces. 2011-05-02 01:18:23 -04:00
EvilSeph
b0e81bcc7b Added a lot of events relating to weather, including those for entities. Thanks wizjany! 2011-04-25 19:46:10 -04:00
Stephen
a6c61782ac Added painting events (thanks verrier and tanelsuurhans) 2011-04-25 23:25:55 +02:00
sk89q
a7724a5138 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
ef5d72ec02 Added bed events and methods. 2011-04-07 11:26:33 -07:00
EvilSeph
227772ba4f Fixed PlayerInventoryEvent Type. 2011-04-04 20:40:46 -04:00
Tahg
1723111b36 added some API for entities 2011-04-04 01:14:26 -04:00
Robert Sargant
49be099147 Added VEHICLE_DESTROY event 2011-04-02 17:10:36 +02:00
William Bowers
c105f68327 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
49976e8ef3 Add PLAYER_INTERACT, remove BLOCK_RIGHT_CLICK, BLOCK_INTERACT and PLAYER_ITEM 2011-03-23 16:58:43 +01:00
Erik Broes
ae47996105 Added PlayerBucket events 2011-03-23 16:58:43 +01:00
Erik Broes
a6a128197c Renamed many events/constants to be not past tense <-- Major Break says: "HI" 2011-03-23 16:58:26 +01:00
Dinnerbone
dc313db919 Removed onPlayerCommand (PLAYER_COMMAND) (and fixed Fillr to stop using it) 2011-02-26 19:09:57 +00:00
Raphfrk
b98b082ea3 small change 2011-02-27 01:22:24 +08:00
sk89q
03f4e0ec22 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
adcf330eb2 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
400b4a9fd5 Added EXPLOSION_PRIMED event. 2011-02-12 02:47:27 -05:00
Timberjaw
d3cebcfb5a Added SIGN_CHANGE event. 2011-02-11 20:34:02 -05:00
James Logsdon
4e4bd13ae0 Adding PLAYER_PICKUP_ITEM event 2011-02-12 01:39:44 +01:00
Dinnerbone
be485d43ee Added event for when a world is saved (EyvindRM) 2011-02-09 12:57:48 +00:00
Alexander Hesse
1204340b96 Added Sneaking Event 2011-02-08 17:09:11 +01:00
Dinnerbone
a435cae101 New event WORLD_LOADED 2011-02-08 12:06:34 +00:00
Forsaken
836dc323d6 Added PlayerKick (setReason, setLeaveMessage, setCancelled) and PlayerRespawn (setLocation) 2011-02-06 12:13:18 +01:00
Meaglin
746b7a1ab2 Interface for BlockBreakEvent 2011-02-01 18:07:16 +01:00
Dinnerbone
cd05af918f Added PLAYER_DROP_ITEM 2011-02-01 10:45:39 +00:00
Dinnerbone
77832e6871 Added VEHICLE_UPDATE 2011-02-01 10:18:27 +00:00
Dinnerbone
86780fcb39 Added PLAYER_ITEM_HELD event 2011-01-31 01:34:23 +00:00
stevenh
247e77579a Renamed IExecutor -> CommandExecutor and fixed SERVER_COMMAND doc 2011-01-29 21:17:36 +00:00
stevenh
cc404ced12 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
f9e46f8481 Added EntityExplodeEvent :D 2011-01-18 00:22:02 +08:00
Andrew Ardill
696880e64f 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
e436bfc3d9 Fixed 3 event rename typos, cheers Master-Guy for letting me know 2011-01-15 21:58:57 +01:00
Erik Broes
bbd7fffaac Events should be present tense, not paste tense. 2011-01-15 21:26:42 +01:00
Taylor Kelly
b6a573c31f EggThrow - remove extra stuff 2011-01-11 03:02:30 -05:00
Taylor Kelly
e732e72985 PlayerEggThrowEvent 2011-01-11 02:58:51 -05:00
Taylor Kelly
04f5a1e82b EntityCombustEvent 2011-01-10 02:59:30 +00:00
Luke GB
b1cab8c5ee 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
98b6937ac2 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
380b5c212c Implemented Item_Use events 2011-01-07 05:34:07 -05:00
Dinnerbone
b0d938d9ef Removed onBlockSent, added onLeavesDecay 2011-01-04 22:03:15 +00:00
angelsl
153aa4d14f Overhaul entity damage structure... 2011-01-03 15:54:58 +00:00
angelsl
bc585f5892 Entity damage hooks 2011-01-03 15:54:24 +00:00
sk89q
9798171149 Change vehicle hook changes. 2011-01-03 22:24:44 +08:00
sk89q
30f7da4d0b Implemented vehicle hooks (some changes will still be made). 2011-01-03 22:24:43 +08:00
durron597
ab2191c482 removed unnecessary import 2011-01-02 21:38:48 -05:00