zaup-mysql-whitelist

last built 2 weeks ago
Build #224
By downloading this file, you agree to our license terms.
Source: github.com
License: MIT
Maintainer: Community Plugin
This plugin is maintained by the RocketMod Community.
The RocketMod team curates a dozen of community plugins and could need your support.
Consider a donation to RocketMod and sponsor your favourite plugins or contribute code to them.

ZaupWhitelist

Per request, I created a way for the whitelist to be used in a mysql database. It will override permit and unpermit commands, and makes them available to be used in the console. You can also add to the whitelist directly into the mysql, and the whitelist in game will be updated when the server restarts. Comes with a default config file and translation file.

This will not include into the mysql table anything already in the whitelist. If you want them in the mysql, you need to add them into the mysql or call the command again.

/permit <steamid>/<name>
/unpermit <steamid>

If you set AddtoGameWhitelist to false, you can still use permit and unpermit to add and remove from the mysql, but it will stop adding and removing from the game whitelist.  If you want to maintain a whitelist in case of future whitelisting, this is the way to go.  Remember to delete the whitelist file in your server folder if you are taking off the game whitelist and you used it before.

Default configuration


<?xml version="1.0" encoding="utf-8"?>
<ZaupWhitelistConfiguration xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <DatabaseAddress>localhost</DatabaseAddress>
  <DatabaseUsername>unturned</DatabaseUsername>
  <DatabasePassword>password</DatabasePassword>
  <DatabaseName>unturned</DatabaseName>
  <DatabaseTableName>whitelist</DatabaseTableName>
  <DatabasePort>3306</DatabasePort>
  <DefaultWhitelisterSteamId>11111111111111111</DefaultWhitelisterSteamId>
  <AddtoGameWhitelist>true</AddtoGameWhitelist>
</ZaupWhitelistConfiguration>

Default english translation


<?xml version="1.0" encoding="utf-8"?>
<Translations xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <Translation Id="command_generic_invalid_parameter" Value="Invalid format." />
  <Translation Id="command_generic_invalid_steamid" Value="{0} is an invalid SteamID format." />
  <Translation Id="default_permit_message" Value="You have added {0} {1} to the whitelist." />
  <Translation Id="default_unpermit_message" Value="You have removed {0} from the whitelist." />
  <Translation Id="no_player_found_unpermit" Value="No player found that has id {0}." />
  <Translation Id="update_whitelist_mysql_message" Value="Whitelist up to date from Mysql Database." />
</Translations>

Commands and permissions


/permit <steamid> <name>

Permissions: permit

Adds a person to the whitelist.


/unpermit <steamid>

Permissions: unpermit

Removes a person to the whitelist.


Git changelog


33aeb1785ccd850 2019-05-11 13:48:58

Forget to update I18N libraries.

    fc97ebae3778dfb 2019-05-11 13:44:44

    Fixed.

      c4f9f2d5d21c927 2017-01-13 21:15:08

      ..

        5a9fa82e87bf6cf 2017-01-13 21:12:22

        ..

          9419437deaabf22 2016-10-08 17:09:07

          ..

            e58a454a8b9008a 2016-10-08 17:06:06

            downgrading to 3.5

              213cf5d6be6123d 2015-12-23 18:28:50

              Fix

                017d49b2efc9410 2015-07-31 04:25:10

                Fixed config

                  d522424a315160b 2015-07-27 06:09:04

                  Update to Rocket 4.6

                    3758cc3b4884c07 2015-06-23 22:32:02

                    Updated to Unturned 3.11.0.0 and Rocket 4.5.0.0

                      6ac2f2b6f343a80 2015-06-03 23:41:59

                      Update project file

                        1b46e783d96bcf8 2015-06-03 23:28:51

                        Change to project

                          f75930e057fb29c 2015-06-03 22:00:49

                          Updated Project

                            439cfcc85454f5c 2015-05-26 18:59:51

                            Update to rocket 4.2.0.0

                              f9609dd0299a7e2 2015-05-17 03:57:59

                              Update to Rocket 4.0

                                30ad3930563d818 2015-05-09 03:30:39

                                Update to Translations and Rocket 3.9.1.0

                                  d59ee58e086aaf0 2015-04-14 21:43:31

                                  added license and readme

                                    3970c5c6448dbd5 2015-04-14 21:37:53

                                    First Release