Implement new event marshalling system
This commit is contained in:
@@ -178,5 +178,5 @@ import api.events
|
||||
def kick_banned_user(sender, instance, created, **kwargs):
|
||||
player = instance.player
|
||||
if player.isBanned():
|
||||
api.events.broadcast_server_event(api.events.KickEvent(player.mc_username, instance.reason))
|
||||
api.events.ServerQueue.broadcast(api.events.KickEvent(player.mc_username, instance.reason))
|
||||
post_save.connect(kick_banned_user, sender=Ban)
|
||||
|
||||
Reference in New Issue
Block a user