You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
I want to be able to run a command whenever a player leaves the server BUT only if there are no more players in the server.
Describe the solution you'd like
Possibly a server_empty event:
"server_empty": {
"actions": [
"nothing but chickens"
]
}
Describe alternatives you've considered
I first tried this using execute command when the player leaves. It is possible to check if there are players in the server using execute if entity @a run someOtherCommand but there's no way to negate this condition (like a not option).
I understand this might be beyond the scope of this project (considering it's called "player" events) but I think this is still slightly relevant.
The text was updated successfully, but these errors were encountered:
Is your feature request related to a problem? Please describe.
I want to be able to run a command whenever a player leaves the server BUT only if there are no more players in the server.
Describe the solution you'd like
Possibly a
server_empty
event:or a condition specifically for
leave
event:Describe alternatives you've considered
I first tried this using
execute
command when the player leaves. It is possible to check if there are players in the server usingexecute if entity @a run someOtherCommand
but there's no way to negate this condition (like anot
option).I understand this might be beyond the scope of this project (considering it's called "player" events) but I think this is still slightly relevant.
The text was updated successfully, but these errors were encountered: