mirror of
https://github.com/mangosfour/server.git
synced 2025-12-13 04:37:00 +00:00
slit ban/baninfi/banlist/unban commands to subcommands (this allow write not full subcomand string ".ban acc ...". Fixed crash at unexpected use .account in console. Fixed hide .gm on by .gm online (renamed to .gm ingame)
22 lines
1.9 KiB
SQL
22 lines
1.9 KiB
SQL
DELETE FROM command WHERE name IN (
|
|
'gm ingame','gm online',
|
|
'ban','ban account','ban character','ban ip',
|
|
'baninfo','baninfo account','baninfo character','baninfo ip',
|
|
'banlist','banlist account','banlist character','banlist ip',
|
|
'unban','unban account','unban character','unban ip'
|
|
);
|
|
|
|
INSERT INTO command VALUES
|
|
('gm ingame',0,'Syntax: .gm ingame\r\n\r\nDisplay a list of available in game Game Masters.'),
|
|
('ban account',3,'Syntax is: ban account $Name $bantime $reason\r\nBan account kick player.\r\n$bantime: negative value leads to permban, otherwise use a timestring like \"4d20h3s\".'),
|
|
('ban character',3,'Syntax is: ban character $Name $bantime $reason\r\nBan account and kick player.\r\n$bantime: negative value leads to permban, otherwise use a timestring like \"4d20h3s\".'),
|
|
('ban ip',3,'Syntax is: ban ip $Ip $bantime $reason\r\nBan IP.\r\n$bantime: negative value leads to permban, otherwise use a timestring like \"4d20h3s\".'),
|
|
('baninfo account',3,'Syntax is: baninfo account\r\nWatch full information about a specific ban.'),
|
|
('baninfo character',3,'Syntax is: baninfo character\r\nWatch full information about a specific ban.'),
|
|
('baninfo ip',3,'Syntax is: baninfo ip\r\nWatch full information about a specific ban.'),
|
|
('banlist account',3,'Syntax is: banlist account [$Name]\r\nSearches the banlist for a account name pattern or show full list account bans.'),
|
|
('banlist character',3,'Syntax is: banlist character $Name\r\nSearches the banlist for a character name pattern. Pattern required.'),
|
|
('banlist ip',3,'Syntax is: banlist ip [$Ip]\r\nSearches the banlist for a IP pattern or show full list of IP bans.'),
|
|
('unban account',3,'Syntax is: unban account $Name\r\nUnban accounts for account name pattern.'),
|
|
('unban character',3,'Syntax is: unban character $Name\r\nUnban accounts for character name pattern.'),
|
|
('unban ip',3,'Syntax is: unban ip $Ip\r\nUnban accounts for IP pattern.');
|