From 97aeb251b897cffabbfffe3952b83ce7023a4165 Mon Sep 17 00:00:00 2001 From: Shauren Date: Sun, 19 Sep 2010 17:02:14 +0200 Subject: Core/Players: Added support for single character bans Core/Commands: Renamed .ban character to .ban playeraccount (.ban character will ban only the player, not account) This revision reaches 10000, congratulations and thanks to everyone who contributed! --HG-- branch : trunk --- sql/base/characters_database.sql | 27 +++++++++++++++++++++++++++ sql/base/world_database.sql | 6 +++++- 2 files changed, 32 insertions(+), 1 deletion(-) (limited to 'sql/base') diff --git a/sql/base/characters_database.sql b/sql/base/characters_database.sql index 0ca70b84dec..ede2e59e225 100644 --- a/sql/base/characters_database.sql +++ b/sql/base/characters_database.sql @@ -488,6 +488,33 @@ LOCK TABLES `character_aura` WRITE; /*!40000 ALTER TABLE `character_aura` ENABLE KEYS */; UNLOCK TABLES; +-- +-- Table structure for table `character_banned` +-- + +DROP TABLE IF EXISTS `character_banned`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE `character_banned` ( + `guid` int(11) NOT NULL default '0' COMMENT 'Account id', + `bandate` bigint(40) NOT NULL default '0', + `unbandate` bigint(40) NOT NULL default '0', + `bannedby` varchar(50) NOT NULL, + `banreason` varchar(255) NOT NULL, + `active` tinyint(4) NOT NULL default '1', + PRIMARY KEY (`guid`,`bandate`) +) ENGINE=MyISAM DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC COMMENT='Ban List'; +/*!40101 SET character_set_client = @saved_cs_client */; + +-- +-- Dumping data for table `character_banned` +-- + +LOCK TABLES `character_banned` WRITE; +/*!40000 ALTER TABLE `character_banned` DISABLE KEYS */; +/*!40000 ALTER TABLE `character_banned` ENABLE KEYS */; +UNLOCK TABLES; + -- -- Table structure for table `character_battleground_data` -- diff --git a/sql/base/world_database.sql b/sql/base/world_database.sql index d0731fa8a6f..a503b591cbb 100644 --- a/sql/base/world_database.sql +++ b/sql/base/world_database.sql @@ -334,7 +334,8 @@ INSERT INTO `command` VALUES ('aura',3,'Syntax: .aura #spellid\r\n\r\nAdd the aura from spell #spellid to the selected Unit.'), ('ban',3,'Syntax: .ban $subcommand\nType .ban to see the list of possible subcommands or .help ban $subcommand to see info on subcommands'), ('ban account',3,'Syntax: .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: .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 character',3,'Syntax: .ban character $Name $bantime $reason\nBan character and kick player.\n$bantime: negative value leads to permban, otherwise use a timestring like "4d20h3s".'), +('ban playeraccount',3,'Syntax: .ban playeraccount $Name $bantime $reason\nBan account and kick player.\n$bantime: negative value leads to permban, otherwise use a timestring like "4d20h3s".'), ('ban ip',3,'Syntax: .ban ip $Ip $bantime $reason\r\nBan IP.\r\n$bantime: negative value leads to permban, otherwise use a timestring like \"4d20h3s\".'), ('baninfo',3,'Syntax: .baninfo $subcommand\nType .baninfo to see the list of possible subcommands or .help baninfo $subcommand to see info on subcommands'), ('baninfo account',3,'Syntax: .baninfo account $accountid\r\nWatch full information about a specific ban.'), @@ -27604,6 +27605,9 @@ INSERT INTO `trinity_string` (`entry`,`content_default`,`content_loc1`,`content_ (1128, '%d - |cffffffff|Htaxinode:%u|h[%s %s]|h|r (Map:%u X:%f Y:%f Z:%f)', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL), (1129, '%d - %s %s (Map:%u X:%f Y:%f Z:%f)', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL), (1130, 'Can''t dump deleted characters, aborting.', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL), +(1131, 'The following characters match your query:', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL), +(1132, 'Currently Banned Characters:', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL), +(1133, '| Character | BanDate | UnbanDate | Banned By | Ban Reason |', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL), (1200, 'You try to view cinemitic %u but it doesn''t exist.', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL), (1201, 'You try to view movie %u but it doesn''t exist.', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL), (1300, 'Alliance', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL), -- cgit v1.2.3