prittier code
This commit is contained in:
parent
792e57bde9
commit
d69b12b8d6
1 changed files with 4 additions and 1 deletions
|
@ -89,7 +89,10 @@ expose(Global, Table) ->
|
||||||
{"sendCommand", fun(#erlv8_fun_invocation{}, [Player, Command, Args])->
|
{"sendCommand", fun(#erlv8_fun_invocation{}, [Player, Command, Args])->
|
||||||
ggs_table:send_command(Table, Player, {Command, Args})
|
ggs_table:send_command(Table, Player, {Command, Args})
|
||||||
end},
|
end},
|
||||||
{"sendCommandToAll", fun(#erlv8_fun_invocation{}, [Command, Args])-> ggs_table:notify_all_players(Table, {Command, Args}) end}
|
{"sendCommandToAll", fun(#erlv8_fun_invocation{}, [Command, Args])->
|
||||||
|
erlang:display(Args),
|
||||||
|
ggs_table:notify_all_players(Table, {Command, Args})
|
||||||
|
end}
|
||||||
%{"setTimeout", fund(#erlv8_fun_invocation{}, [Time, FunctionName])-> setTimeout(Time, FunctionName) end}
|
%{"setTimeout", fund(#erlv8_fun_invocation{}, [Time, FunctionName])-> setTimeout(Time, FunctionName) end}
|
||||||
])).
|
])).
|
||||||
|
|
||||||
|
|
Reference in a new issue