mirror of
https://github.com/PaperMC/Paper.git
synced 2025-08-15 12:13:54 -07:00
addition of PlayerGameModeChangeEvent
By: sunkid <sunkid@iminurnetz.com>
This commit is contained in:
@@ -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:
|
||||
|
Reference in New Issue
Block a user