mirror of
https://github.com/PHIDIAS0303/ExpCluster.git
synced 2025-12-27 11:35:22 +09:00
Merge branch 'main' into aperx
This commit is contained in:
@@ -25,7 +25,7 @@ local Commands = require("modules/exp_commands")
|
||||
local add, parse = Commands.add_data_type, Commands.parse_input
|
||||
local valid, invalid = Commands.status.success, Commands.status.invalid_input
|
||||
|
||||
local types = {} --- @class Commands._types
|
||||
local types = {} --- @class Commands.types
|
||||
|
||||
--- A boolean value where true is one of: yes, y, true, 1
|
||||
types.boolean =
|
||||
|
||||
@@ -76,11 +76,11 @@ local Commands = {
|
||||
},
|
||||
}
|
||||
|
||||
--- @class Commands._status: table<string, Commands.Status>
|
||||
--- @class Commands.status: table<string, Commands.Status>
|
||||
--- Contains the different status values a command can return
|
||||
Commands.status = {}
|
||||
|
||||
--- @class Commands._types: table<string, Commands.InputParser | Commands.InputParserFactory>
|
||||
--- @class Commands.types: table<string, Commands.InputParser | Commands.InputParserFactory>
|
||||
--- Stores all input parsers and validators for different data types
|
||||
Commands.types = {}
|
||||
|
||||
@@ -595,6 +595,7 @@ end
|
||||
--- @param parameter string The raw command parameter that was used
|
||||
--- @param detail any
|
||||
local function log_command(comment, command, player, parameter, detail)
|
||||
if player.index == 0 and comment == "Command Ran" then return end
|
||||
ExpUtil.write_json("log/commands.log", {
|
||||
comment = comment,
|
||||
command_name = command.name,
|
||||
|
||||
Reference in New Issue
Block a user