Commit Graph

221 Commits

Author SHA1 Message Date
sk89q
b2dd16984f Added a check for when the old and new data folders are the same. 2011-04-03 23:05:25 -07:00
Tahg
1723111b36 added some API for entities 2011-04-04 01:14:26 -04:00
Erik Broes
78c87ee4bf Pluginnames can also space out now 2011-04-03 19:17:18 +02:00
Erik Broes
ead1f771c9 Forgot we have windows to support as well 2011-04-03 16:42:33 +02:00
Erik Broes
0de380f51c A plugin's name can now only contain: [A-Za-z0-9()\[\]{}_.-] 2011-04-03 16:26:27 +02:00
Erik Broes
9b1c7348bd Plugin's datafolders are now named after the plugin's name (from config.yml)
The code will automagically rename the old data folder to the new format (if it can)
or else throw a fatal error you better solve :D
2011-04-03 16:12:44 +02: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
Dinnerbone
3fb7d7e240 Added {NAME} replacement in database location 2011-04-01 16:51:33 +01:00
Dinnerbone
8ba69aaf28 DDL generation methods 2011-04-01 16:09:23 +01:00
Dinnerbone
cf6b46bda9 Implemented ebeans 2011-04-01 16:09:23 +01:00
Erik Broes
d9c309d82c Fix IIOB error when dealing with an incomplete YAML && Nagging 2011-04-01 10:24:48 +02:00
Erik Broes
faa15bc068 Catch YAML exceptions as InvalidPluginExceptions 2011-04-01 09:59:24 +02:00
Dinnerbone
fe2c6c7b1c 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
lukegb
96305c2bc2 Seal-fail workaround 2011-03-31 14:16:13 +00:00
Erik Broes
d208614fcc Just NAG once, to be nice 2011-03-30 00:38:46 +02:00
Erik Broes
f9767d4025 Add 'NagException' to disclose plugin fail 2011-03-30 00:25:11 +02:00
Dinnerbone
9c63b27755 RegisterInterface reload bug fix 2011-03-29 21:29:46 +01:00
Erik Broes
325fbdc01a 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
e07a997517 Fix some wrong event creations after previous change 2011-03-26 23:19:50 +01:00
Erik Broes
158906c132 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
aa0732519c Added player join event 2011-03-26 15:32:29 +01:00
Raphfrk
5aa266fd8c Fixed basic dependency functionality - If class can't be found, all other .jar files are scanned 2011-03-25 20:36:59 +01: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
9768ecc96b onLoad optional... 2011-03-15 11:45:11 +00:00
Dinnerbone
3d750c5440 Plugins can no longer register events while disabled 2011-03-14 15:11:43 +00:00
Raphfrk
157f9d9d9f Adds an onLoad method to Plugin. The onLoad method is called for all plugins before the onEnable calls 2011-03-14 14:46:11 +00:00
Dinnerbone
8a0500b596 Reverted classloader changes by 1f0d89be27, now actually works! Again! 2011-03-08 18:22:52 +00:00
Dinnerbone
1f0d89be27 Adds basic plugin dependencies, courtesy of Raphfrk 2011-03-07 14:04:00 +00:00
VictorD
cd490d826b Added a few null pointer checks and performed minor touchups (tried improving a few equals, clone and hashCode methods). 2011-03-05 12:27:51 +01:00
Dinnerbone
e8519fc347 Added JavaPlugin.getCommand 2011-02-28 01:35:03 +00:00
Dinnerbone
adcb291d05 Readded default onCommand on plugins 2011-02-28 00:45:44 +00:00
Dinnerbone
4fa84d995c Tweaks to command system to allow setting executors via plugins (no more ambiguous onCommand in plugins) 2011-02-28 00:30:59 +00:00
Dinnerbone
dc313db919 Removed onPlayerCommand (PLAYER_COMMAND) (and fixed Fillr to stop using it) 2011-02-26 19:09:57 +00:00
Dinnerbone
72e3c06651 No longer supporting the TSLPC (inb4pitchforks) 2011-02-25 22:01:21 +00:00
Dinnerbone
c6b31f29ec onPluginEnabled after plugin is enabled + same for onPluginDisabled 2011-02-25 12:54:08 +00:00
Dinnerbone
18e2a4de26 Updating plugin nags to use logger 2011-02-20 02:29:12 +00:00
Dinnerbone
f115161578 Added Server.getLogger, changed a few anonymous loggers to use it 2011-02-20 02:27:31 +00: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
0a722adaa2 And this is so that we don't have to support misbehaving plugins. 2011-02-20 00:47:21 +00:00
Dinnerbone
9739370fe2 ... Supporting the plugins which really shouldn't be doing what they're doing. Don't put crap in the constructor! 2011-02-20 00:43:06 +00:00
Dinnerbone
3197313378 Removed TSLPC (That Stupidly Long Plugin Constructor) 2011-02-20 00:13:25 +00:00
Dinnerbone
115d1cb30e Fixed event priorities 2011-02-19 20:43:35 +00: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
ss2man44
6c06199f44 Added CREATURE_SPAWN event 2011-02-16 22:28:44 -05:00
EvilSeph
a0b6267236 Exposes recently added PLAYER_PICKUP_ITEM event. 2011-02-12 07:58:03 -05: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