mirror of
https://github.com/msmhq/msm.git
synced 2024-08-30 18:12:35 +00:00
Defined a list of properties that can be versioned, the regex filter was not strict enough.
This commit is contained in:
parent
d38a328324
commit
c41ba62dab
4
init/msm
4
init/msm
@ -1747,6 +1747,8 @@ server_set_property() {
|
||||
# $1: The ID of the server
|
||||
# $2: The name of the server property
|
||||
server_property() {
|
||||
local VERSIONABLE_PROPERTIES="LOG_PATH;WHITELIST_PATH;BANNED_PLAYERS_PATH;BANNED_IPS_PATH;OPS_PATH OPS_LIST;"
|
||||
|
||||
# Do nothing if we want to load a property handled
|
||||
# by a versioning file that is already loaded.
|
||||
if [[ "$2" =~ ^CONSOLE_ ]] && [ "${SERVER_VERSIONING_LOADED[$1]}" == "true" ]; then
|
||||
@ -1810,7 +1812,7 @@ server_property() {
|
||||
esac
|
||||
|
||||
# If its a command lookup or server path, load from versioning files
|
||||
if [[ "$2" =~ ^CONSOLE_ ]] || [[ "$2" =~ _PATH$ ]]; then
|
||||
if [[ "$2" =~ ^CONSOLE_ ]] || [[ "$VERSIONABLE_PROPERTIES" == *"$2;"* ]]; then
|
||||
server_property "$1" VERSION_CONF
|
||||
|
||||
if [[ -f "${SERVER_VERSION_CONF[$1]}" ]]; then
|
||||
|
Loading…
Reference in New Issue
Block a user