Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactor config #8

Draft
wants to merge 3 commits into
base: main
Choose a base branch
from
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
155 changes: 2 additions & 153 deletions config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,153 +16,7 @@ worlds:
fishing_rate: 10 #Multiplier for success likelihood on meso thrown during fishing.
travel_rate: 10 #Means of transportation rides/departs using 1/N of the default time.

#Properties for Bera 1
- flag: 0
server_message: Welcome to Bera!
event_message: Bera!
why_am_i_recommended: Welcome to Bera!
channels: 3

#Properties for Broa 2
- flag: 0
server_message: Welcome to Broa!
event_message: Broa!
why_am_i_recommended: Welcome to Broa!
channels: 3

#Properties for Windia 3
- flag: 0
server_message: Welcome to Windia!
event_message: Windia!
why_am_i_recommended: Welcome to Windia!
channels: 3

#Properties for Khaini 4
- flag: 0
server_message: Welcome to Khaini!
event_message: Khaini!
why_am_i_recommended: Welcome to Khaini!
channels: 3

#Properties for Bellocan 5
- flag: 0
server_message: Welcome to Bellocan!
event_message: Bellocan!
why_am_i_recommended: Welcome to Bellocan!
channels: 3

#Properties for Mardia 6
- flag: 0
server_message: Welcome to Mardia!
event_message: Mardia!
why_am_i_recommended: Welcome to Mardia!
channels: 3

#Properties for Kradia 7
- flag: 0
server_message: Welcome to Kradia!
event_message: Kradia!
why_am_i_recommended: Welcome to Kradia!
channels: 3

#Properties for Yellonde 8
- flag: 0
server_message: Welcome to Yellonde!
event_message: Yellonde!
why_am_i_recommended: Welcome to Yellonde!
channels: 3

#Properties for Demethos 9
- flag: 0
server_message: Welcome to Demethos!
event_message: Demethos!
why_am_i_recommended: Welcome to Demethos!
channels: 3

#Properties for Galicia 10
- flag: 0
server_message: Welcome to Galicia!
event_message: Galicia!
why_am_i_recommended: Welcome to Galicia!
channels: 3

#Properties for Kastia 11
- flag: 0
server_message: Welcome to Kastia!
event_message: Kastia!
why_am_i_recommended: Welcome to Kastia!
channels: 3

#Properties for Judis 12
- flag: 0
server_message: Welcome to Judis!
event_message: Judis!
why_am_i_recommended: Welcome to Judis!
channels: 3

#Properties for Arcenia 13
- flag: 0
server_message: Welcome to Arcenia!
event_message: Arcenia!
why_am_i_recommended: Welcome to Arcenia!
channels: 3

#Properties for Plana 14
- flag: 0
server_message: Welcome to Plana!
event_message: Plana!
why_am_i_recommended: Welcome to Plana!
channels: 3

#Properties for El Nido 15
- flag: 0
server_message: Welcome to El Nido!
event_message: El Nido!
why_am_i_recommended: Welcome to El Nido!
channels: 3

#Properties for Kalluna 16
- flag: 0
server_message: Welcome to Kalluna!
event_message: Kalluna!
why_am_i_recommended: Welcome to Kalluna!
channels: 3

#Properties for Stius 17
- flag: 0
server_message: Welcome to Stius!
event_message: Stius!
why_am_i_recommended: Welcome to Stius!
channels: 3

#Properties for Croa 18
- flag: 0
server_message: Welcome to Croa!
event_message: Croa!
why_am_i_recommended: Welcome to Croa!
channels: 3

#Properties for Zenith 19
- flag: 0
server_message: Welcome to Zenith!
event_message: Zenith!
why_am_i_recommended: Welcome to Zenith!
channels: 3

#Properties for Medere 20
- flag: 0
server_message: Welcome to Medere!
event_message: Medere!
why_am_i_recommended: Welcome to Medere!
channels: 3


server:
#Database Configuration
DB_URL: "jdbc:mysql://localhost:3306/ashes"
DB_USER: "root"
INIT_CONNECTION_POOL_TIMEOUT: 90 # Seconds

#Login Configuration
WORLDS: 1 #Initial number of worlds on the server.
WLDLIST_SIZE: 21 #Max possible worlds on the server.
Expand All @@ -176,7 +30,7 @@ server:
COUPON_INTERVAL: 3600000 #60 minutes, 3600000.
UPDATE_INTERVAL: 777 #Dictates the frequency on which the "centralized server time" is updated.

AUTOMATIC_REGISTER: true #Automatically register players when they login with a nonexistent username.
AUTOMATIC_REGISTER: false #Automatically register players when they login with a nonexistent username.
BCRYPT_MIGRATION: true #Performs a migration from old SHA-1 and SHA-512 password to bcrypt.
COLLECTIVE_CHARSLOT: false #Available character slots are contabilized globally rather than per world server.
DETERRED_MULTICLIENT: false #Enables detection of multi-client and suspicious remote IP on the login system.
Expand All @@ -187,13 +41,8 @@ server:
MAX_ACCOUNT_LOGIN_ATTEMPT: 15 #After N tries on an account, login on that account gets disabled for a short period.
LOGIN_ATTEMPT_DURATION: 120 #Period in seconds the login attempt remains registered on the system.

#Ip Configuration
HOST: 127.0.0.1 #WAN IPv4 address
LANHOST: 127.0.0.1 #LAN IPv4 address
LOCALHOST: 127.0.0.1 #Loopback IPv4 address
GMSERVER: false

#Other configuration
GMSERVER: false
SHUTDOWNHOOK: true

#Server Flags
Expand Down