mirror of
https://github.com/etlegacy/wolfadmin.git
synced 2024-11-10 06:41:53 +00:00
Fixed minor bugs
This commit is contained in:
parent
87ece57322
commit
dcb2859378
3 changed files with 4 additions and 2 deletions
|
@ -48,6 +48,7 @@ CREATE TABLE IF NOT EXISTS `history` (
|
|||
`id` INTEGER NOT NULL PRIMARY KEY AUTOINCREMENT,
|
||||
`victim_id` INTEGER NOT NULL,
|
||||
`invoker_id` INTEGER NOT NULL,
|
||||
`type` TEXT NOT NULL,
|
||||
`datetime` INTEGER NOT NULL,
|
||||
`reason` TEXT NOT NULL,
|
||||
CONSTRAINT `history_victim` FOREIGN KEY (`victim_id`) REFERENCES `player` (`id`) ON DELETE NO ACTION ON UPDATE NO ACTION,
|
||||
|
@ -61,6 +62,7 @@ CREATE TABLE IF NOT EXISTS `mute` (
|
|||
`id` INTEGER NOT NULL PRIMARY KEY AUTOINCREMENT,
|
||||
`victim_id` INTEGER NOT NULL,
|
||||
`invoker_id` INTEGER NOT NULL,
|
||||
`type` TEXT NOT NULL,
|
||||
`issued` INTEGER NOT NULL,
|
||||
`expires` INTEGER NOT NULL,
|
||||
`duration` INTEGER NOT NULL,
|
||||
|
|
|
@ -64,7 +64,7 @@ function commandLock(clientId, cmdArguments)
|
|||
local team = util.getTeamFromCode(cmdArguments[1])
|
||||
teams.lock(team)
|
||||
|
||||
et.trap_SendConsoleCommand(et.EXEC_APPEND, "chat \"^dlock: "..util.getTeamColor(team).util.getTeamName(team).." ^9team has been locked.\";")
|
||||
et.trap_SendConsoleCommand(et.EXEC_APPEND, "chat \"^dlock: "..util.getTeamColor(team)..util.getTeamName(team).." ^9team has been locked.\";")
|
||||
|
||||
return false
|
||||
end
|
||||
|
|
|
@ -64,7 +64,7 @@ function commandUnlock(clientId, cmdArguments)
|
|||
local team = util.getTeamFromCode(cmdArguments[1])
|
||||
teams.unlock(team)
|
||||
|
||||
et.trap_SendConsoleCommand(et.EXEC_APPEND, "chat \"^dlock: "..util.getTeamColor(team).util.getTeamName(team).." ^9team has been unlocked.\";")
|
||||
et.trap_SendConsoleCommand(et.EXEC_APPEND, "chat \"^dlock: "..util.getTeamColor(team)..util.getTeamName(team).." ^9team has been unlocked.\";")
|
||||
|
||||
return false
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue