mirror of
https://github.com/redstrate/Kawari.git
synced 2025-06-30 11:47:45 +00:00
Pass all four arguments to GM command scripts
No GM command we have implemented currently uses these, but just a little bit of future-proofing.
This commit is contained in:
parent
776bac9463
commit
ed1263d587
1 changed files with 2 additions and 2 deletions
|
@ -615,7 +615,7 @@ async fn client_loop(
|
|||
}
|
||||
}
|
||||
}
|
||||
ClientZoneIpcData::GMCommand { command, arg0, arg1, .. } => {
|
||||
ClientZoneIpcData::GMCommand { command, arg0, arg1, arg2, arg3, .. } => {
|
||||
let lua = lua.lock().unwrap();
|
||||
let state = lua.app_data_ref::<ExtraLuaState>().unwrap();
|
||||
|
||||
|
@ -655,7 +655,7 @@ async fn client_loop(
|
|||
if connection.player_data.gm_rank as u8 >= required_rank? {
|
||||
let func: Function =
|
||||
lua.globals().get("onCommand")?;
|
||||
func.call::<()>(([*arg0, *arg1], connection_data))?;
|
||||
func.call::<()>(([*arg0, *arg1, *arg2, *arg3], connection_data))?;
|
||||
|
||||
/* `command_sender` is an optional variable scripts can define to identify themselves in print messages.
|
||||
* It's okay if this global isn't set. We also don't care what its value is, just that it exists.
|
||||
|
|
Loading…
Add table
Reference in a new issue