added player_escapes_sleep event. Fixes #579

This commit is contained in:
gnembon committed 2020-11-27 00:34:24 -04:00
1 parent 2e661a996f
commit a099ed79e1
6 files changed
+28 -2

No files matched your search

@@ -337,6 +337,14 @@ public class CarpetEventServer
handler.call( () -> Collections.singletonList(new EntityValue(player)), player::getCommandSource);
}
};
public static final Event PLAYER_ESCAPES_SLEEP = new Event("player_escapes_sleep", 1, false)
{
@Override
public void onPlayerEvent(ServerPlayerEntity player)
{
handler.call( () -> Collections.singletonList(new EntityValue(player)), player::getCommandSource);
}
};
public static final Event PLAYER_RIDES = new Event("player_rides", 5, false)
{
@Override