addition of PlayerGameModeChangeEvent

By: sunkid <sunkid@iminurnetz.com>
This commit is contained in:
Bukkit/Spigot
2011-09-16 19:49:56 -07:00
parent 6d19165044
commit a7f6bb5cd4
5 changed files with 53 additions and 0 deletions

View File

@@ -419,6 +419,13 @@ public class JavaPluginLoader implements PluginLoader {
((PlayerListener) listener).onPlayerFish((PlayerFishEvent) event);
}
};
case PLAYER_GAME_MODE_CHANGE:
return new EventExecutor() {
public void execute(Listener listener, Event event) {
((PlayerListener) listener).onPlayerGameModeChange((PlayerGameModeChangeEvent) event);
}
};
// Block Events
case BLOCK_PHYSICS: