- Moved Bukkit event registration from WorldEditPlugin into the respective listeners.

- Changed registerEvent to the string-based system WorldGuard has, which should improve compatibility with differing Bukkit versions.
This commit is contained in:
TomyLobo
2011-08-21 23:05:03 +02:00
parent d12bff993b
commit 9de9004834
3 changed files with 23 additions and 12 deletions

View File

@ -51,6 +51,10 @@ public class WorldEditPlayerListener extends PlayerListener {
*/
public WorldEditPlayerListener(WorldEditPlugin plugin) {
this.plugin = plugin;
plugin.registerEvent("PLAYER_QUIT", this);
plugin.registerEvent("PLAYER_INTERACT", this);
plugin.registerEvent("PLAYER_COMMAND_PREPROCESS", this);
}
/**