aboutsummaryrefslogtreecommitdiff
path: root/sql
diff options
context:
space:
mode:
authorShauren <none@none>2010-09-19 17:02:14 +0200
committerShauren <none@none>2010-09-19 17:02:14 +0200
commit97aeb251b897cffabbfffe3952b83ce7023a4165 (patch)
tree7a09c84b8cb01c76f8ed1f03376b87cdbd0ca880 /sql
parent639a90666439948b263d33f770eb9fffc7227161 (diff)
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
Diffstat (limited to 'sql')
-rw-r--r--sql/base/characters_database.sql27
-rw-r--r--sql/base/world_database.sql6
-rw-r--r--sql/updates/10000_characters_character_banned.sql10
-rw-r--r--sql/updates/10000_world_command.sql4
-rw-r--r--sql/updates/10000_world_trinity_string.sql5
5 files changed, 51 insertions, 1 deletions
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
@@ -489,6 +489,33 @@ LOCK TABLES `character_aura` WRITE;
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),
diff --git a/sql/updates/10000_characters_character_banned.sql b/sql/updates/10000_characters_character_banned.sql
new file mode 100644
index 00000000000..99c9195ad62
--- /dev/null
+++ b/sql/updates/10000_characters_character_banned.sql
@@ -0,0 +1,10 @@
+DROP TABLE IF EXISTS `character_banned`;
+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';
diff --git a/sql/updates/10000_world_command.sql b/sql/updates/10000_world_command.sql
new file mode 100644
index 00000000000..75717ac6aad
--- /dev/null
+++ b/sql/updates/10000_world_command.sql
@@ -0,0 +1,4 @@
+DELETE FROM `command` WHERE `name` IN ('ban character','ban playeraccount');
+INSERT INTO `command` (`name`,`security`,`help`) VALUES
+('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".');
diff --git a/sql/updates/10000_world_trinity_string.sql b/sql/updates/10000_world_trinity_string.sql
new file mode 100644
index 00000000000..40e970f8197
--- /dev/null
+++ b/sql/updates/10000_world_trinity_string.sql
@@ -0,0 +1,5 @@
+DELETE FROM `trinity_string` WHERE `entry` IN (1131,1132,1133);
+INSERT INTO `trinity_string` (`entry`, `content_default`) VALUES
+(1131, 'The following characters match your query:'),
+(1132, 'Currently Banned Characters:'),
+(1133, '| Character | BanDate | UnbanDate | Banned By | Ban Reason |');