addition of PlayerGameModeChangeEvent

This commit is contained in:
sunkid
2011-09-16 19:49:56 -07:00
committed by Dinnerbone
parent 103ceb2281
commit c8b70c5a8f
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: