Added announcement for new players
This commit is contained in:
@@ -308,5 +308,8 @@ class ServerConstants {
|
||||
|
||||
@JvmField
|
||||
var BETTER_DFS = true
|
||||
|
||||
@JvmField
|
||||
var NEW_PLAYER_ANNOUNCEMENT = true
|
||||
}
|
||||
}
|
||||
|
||||
@@ -578,6 +578,7 @@ class MiscCommandSet : CommandSet(Privilege.ADMIN){
|
||||
sendDialogue(player, "Thank you!")
|
||||
player.unlock()
|
||||
player.removeAttribute("rules:pin")
|
||||
if(ServerConstants.NEW_PLAYER_ANNOUNCEMENT) sendNews("A new player has joined. Welcome ${player.username}!")
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
@@ -160,6 +160,7 @@ object ServerConfigParser {
|
||||
ServerConstants.GRAFANA_LOGGING = data.getBoolean("integrations.grafana_logging", false)
|
||||
ServerConstants.GRAFANA_TTL_DAYS = data.getLong("integrations.grafana_log_ttl_days", 7L).toInt()
|
||||
ServerConstants.BETTER_DFS = data.getBoolean("world.better_dfs", true)
|
||||
ServerConstants.NEW_PLAYER_ANNOUNCEMENT = data.getBoolean("world.new_player_announcement", true)
|
||||
|
||||
val logLevel = data.getString("server.log_level", "VERBOSE").uppercase()
|
||||
ServerConstants.LOG_LEVEL = parseEnumEntry<LogLevel>(logLevel) ?: LogLevel.VERBOSE
|
||||
|
||||
@@ -95,6 +95,8 @@ i_want_to_cheat = false
|
||||
better_agility_pyramid_gp = true
|
||||
#better dragonfire shield attack (30 second cooldown instead of 2 minutes)
|
||||
better_dfs = true
|
||||
#new player announcement
|
||||
new_player_announcement = true
|
||||
|
||||
[paths]
|
||||
#path to the data folder, which contains the cache subfolder and such
|
||||
|
||||
Reference in New Issue
Block a user