Commit Graph

762 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
afforess
5a85c95c24 Added interface for player.saveData and player.loadData. 2011-04-03 15:53: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
sunkid
55e4fbfd14 Ton of Material extensions handling the meta-data of blocks. 2011-04-03 11:28:19 +02:00
Raphfrk
ebb3a6fbc7 Added the ability to set the quit message 2011-04-02 18:25:33 +02:00
Stephen
19fb291b34 Added getNearbyEntities 2011-04-02 17:24:45 +02:00
afforess
55f5b45e4c Entity.isDead returns true if the entity has been marked for removal 2011-04-02 17:20:05 +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
a250f66c2e Configuration tweaks - enforce default + parent file nullcheck 2011-04-01 16:09:23 +01:00
Dinnerbone
cf6b46bda9 Implemented ebeans 2011-04-01 16:09:23 +01:00
Dinnerbone
217eb0c642 Made Server a singleton, accessible by Bukkit.getServer(). 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
32dd96cab4 Missed a hard break 2011-03-31 23:02:39 +01: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
Dinnerbone
69537201b4 Added Wolf creature interface 2011-03-31 22:10:28 +01:00
Dinnerbone
b01b49da5e Added COOKIE and LOCKED_CHEST 2011-03-31 21:55:16 +01:00
Dinnerbone
95cf1ccadc Can now create worlds with specific seeds 2011-03-31 21:46:05 +01:00
Dinnerbone
30d8d1f4dd Line-endings! 2011-03-31 16:37:56 +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
6dfe133f17 Force compile-time failures for the subtle changes done in the API 2011-03-30 00:25:59 +02:00
Erik Broes
f9767d4025 Add 'NagException' to disclose plugin fail 2011-03-30 00:25:11 +02:00
Erik Broes
2d1f422003 Add 'MONSTER' to CreatureType 2011-03-29 23:09:44 +02:00
Erik Broes
5fd86517e8 Move passenger-handling to Entity 2011-03-29 23:09:44 +02:00
HACKhalo2
ced00079c2 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
Dinnerbone
9c63b27755 RegisterInterface reload bug fix 2011-03-29 21:29:46 +01:00
sunkid
1de3f3cecc fixed PlayerCommandPreprocessEvent inheritance 2011-03-28 17:15:41 -07:00
Byron Shelden
a5b07e7355 Fixed PlayerTeleportEvent so getType() returns Type.PLAYER_TELEPORT 2011-03-28 01:15:21 +02:00
Dinnerbone
4272e51e00 Line endings, consistency! 2011-03-27 21:27:27 +01:00
Erik Broes
e2d4603358 Fix Type of VehicleDamageEvent 2011-03-27 12:35:16 +02: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
Celtic Minstrel
7788522d65 Add setSheared() to Sheep and setSize() to Slimes. 2011-03-26 18:28:28 +01:00
Celtic Minstrel
30a821c904 Add material data classes for cake, jukeboxes, and diodes. Remove some unneeded ones. 2011-03-26 18:23:43 +01:00
Celtic Minstrel
8b58b44d2c World.spawnCreature now returns LivingEntity instead of Creature. 2011-03-26 18:11:21 +01:00
Erik Broes
0cf9d0a7d6 Fixed missing breaks breaking stuff. 2011-03-26 16:53:39 +01:00
Raphfrk
aa0732519c Added player join event 2011-03-26 15:32:29 +01:00
sk89q
d3620924fe Added Server.getServerId() for ID purposes. 2011-03-26 01:40:11 -07:00
sunkid
27d4917d0f added the MaterialData subclass Door 2011-03-25 23:07:34 +01:00
Erik Broes
8307687916 Add: player.getCompassTarget 2011-03-25 21:01:55 +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