aboutsummaryrefslogtreecommitdiff
path: root/sql
diff options
context:
space:
mode:
authorjackpoz <giacomopoz@gmail.com>2020-06-14 15:41:01 +0200
committerShauren <shauren.trinity@gmail.com>2022-01-06 20:49:28 +0100
commit5886bf7484f26deb0e26d3a14791041cc14266be (patch)
tree4822b0e1fcda28c4c440c6855ecc0b18cd344ff6 /sql
parent1fc9e0172da4018ab24422bee51b025d0fb79701 (diff)
Scripts/Commands: Add .debug objectcount <optional map id> chat command
Add .debug objectcount <optional map id> chat command to show the number of Creatures and GameObjects (cherry picked from commit cd37a17103b88a56ec1fde2156c4325b74989e08)
Diffstat (limited to 'sql')
-rw-r--r--sql/updates/world/master/2022_01_06_37_world_2020_06_14_00_world.sql6
1 files changed, 6 insertions, 0 deletions
diff --git a/sql/updates/world/master/2022_01_06_37_world_2020_06_14_00_world.sql b/sql/updates/world/master/2022_01_06_37_world_2020_06_14_00_world.sql
new file mode 100644
index 00000000000..47a04e605ca
--- /dev/null
+++ b/sql/updates/world/master/2022_01_06_37_world_2020_06_14_00_world.sql
@@ -0,0 +1,6 @@
+--
+DELETE FROM `command` WHERE `name`='debug objectcount';
+INSERT INTO `command` (`name`,`permission`,`help`) VALUES
+('debug objectcount',300,'Syntax: .debug objectcount <optional map id>
+Shows the number of Creatures and GameObjects for the specified map id or for all maps if none is specified
+');