Whitelist Through SQL

Adds a new configuration option: whitelists_on_sql. If enabled, it starts looking through the client's whitelist_status var to see if a person is whitelisted for heads of staff (always a bit value of 1), or an alien (values stored in the ss13_whitelist_statuses table).
This commit is contained in:
skull132
2015-12-30 17:35:35 +02:00
parent 51c5151e4a
commit 4776d6daea
6 changed files with 96 additions and 31 deletions
+2 -1
View File
@@ -61,6 +61,7 @@ CREATE TABLE `ss13_player` (
`ip` varchar(18) NOT NULL,
`computerid` varchar(32) NOT NULL,
`lastadminrank` varchar(32) NOT NULL DEFAULT 'Player',
`whitelist_status` INT(11) UNSIGNED NOT NULL DEFAULT '0',
PRIMARY KEY (`id`),
UNIQUE KEY `ckey` (`ckey`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 ;
@@ -117,4 +118,4 @@ CREATE TABLE `ss13_privacy` (
`ckey` varchar(32) NOT NULL,
`option` varchar(128) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 ;
) ENGINE=InnoDB DEFAULT CHARSET=latin1 ;