Correctly return the updated key

This commit is contained in:
Dane Everitt 2020-04-12 15:56:50 -07:00
parent 4ed7b26f89
commit df140184e6
No known key found for this signature in database
GPG key ID: EEA66103B3D71F53

View file

@ -195,7 +195,7 @@ class EggConfigurationService
// that. For example, the Spigot egg uses "config.docker.interface" to identify the Docker // that. For example, the Spigot egg uses "config.docker.interface" to identify the Docker
// interface to proxy through, but the Panel would be unaware of that. // interface to proxy through, but the Panel would be unaware of that.
if (Str::startsWith($key, 'config.')) { if (Str::startsWith($key, 'config.')) {
return "{{{$key}}}"; return preg_replace('/{{(.*)}}/', "{{{$key}}}", $value);
} }
// Replace anything starting with "server." with the value out of the server configuration // Replace anything starting with "server." with the value out of the server configuration