Преглед изворни кода

improve the config file for readability

Lucas Silva пре 8 година
родитељ
комит
b476e1b14b
2 измењених фајлова са 38 додато и 23 уклоњено
  1. 19 12
      TimeIsMoney2/src/config.yml
  2. 19 11
      TimeIsMoney2/src/config.yml~

+ 19 - 12
TimeIsMoney2/src/config.yml

@@ -1,39 +1,46 @@
-give_money_every_second: 600
+configuration-version: 12
+
+auto-update: true
+debug-log: false
+
 afk_payout: false
-#You can add more payouts by copy and paste them. Don't forget to change the numbers!
+display-messages-in-chat: true
+display-messages-in-actionbar: true
+display-messages-in-actionbar-time: 10
+give_money_every_second: 600
 store-money-in-bank: false
-#Set choose-payout-by-chance to true in order to choose the payouts by chances. Replace the "permission" to "chance", e.g. chance: 20. 
+# Payouts will be delivered by "chance" instead "permission".
 choose-payout-by-chance: false
+
+# You can add as many payouts you want. You only can choose between "permission"
+# and "change", not both.
 payouts:
   1:
     payout_amount: 50
     max_payout_per_day: 1000
-    #chance: 10
+    # chance: 10
     permission:
   2:
     payout_amount: 100
     max_payout_per_day: 10000
     commands:
       - /give %player% diamond 1
-    #chance: 90
+    # chance: 90
+    # You can use any permission name you want. e.g. myserver.donor
     permission: tim.vip
+
+# Translations
 message: "&aYou earned &c%money% &afor 10 minutes online time!"
 message_payoutlimit_reached: "&cYou have reached the payout limit today. You earned 0$"
 message_afk: "&cYou havn't earned money because you were afk!"
 message_actionbar: "&aYou earned &c%money% &afor 10 minutes online time!"
 message_payoutlimit_reached_actionbar: "&cYou have reached the payout limit today. You got 0$"
 message_afk_actionbar: "&cYou havn't earned money because you were afk!"
-display-messages-in-chat: true
-display-messages-in-actionbar: true
-display-messages-in-actionbar-time: 10
-#ATM -> Place down a sign with [atm] on the first line to use it!
 message_atm_noperms: "&cYou don't have the permission to use ATM's!"
 message_atm_nomoneyinbank: "&cYou don't have enough money in bank!"
 message_atm_nomoney: "&cYou don't have enough money!"
+# ATM -> Place down a sign with [atm] on the first line to use it!
 atm_title: "&cATM"
 atm_withdraw: "&cWithdraw"
 atm_deposit: "&cDeposit"
 atm_balance: "&cBank balance:"
-auto-update: true
-debug-log: false
-configuration-version: 12

+ 19 - 11
TimeIsMoney2/src/config.yml~

@@ -1,38 +1,46 @@
-give_money_every_second: 600
+configuration-version: 12
+
+auto-update: true
+debug-log: false
+
 afk_payout: false
-#You can add more payouts by copy and paste them. Don't forget to change the numbers!
+display-messages-in-chat: true
+display-messages-in-actionbar: true
+display-messages-in-actionbar-time: 10
+give_money_every_second: 600
 store-money-in-bank: false
-#Set choose-payout-by-chance to true in order to choose the payouts by chances. Replace the "permission" to "chance", e.g. chance: 20. 
+# Payouts will be delivered by "chance" instead "permission".
 choose-payout-by-chance: false
+
+# You can add as many payouts you want. You only can choose between "permission"
+# and "change", not both.
 payouts:
   1:
     payout_amount: 50
     max_payout_per_day: 1000
-    #chance: 10
+    # chance: 10
     permission:
   2:
     payout_amount: 100
     max_payout_per_day: 10000
     commands:
       - /give %player% diamond 1
-    #chance: 90
+    # chance: 90
+    # You can use any permission name you want. e.g. myserver.donor
     permission: tim.vip
+
+# Translations
 message: "&aYou earned &c%money% &afor 10 minutes online time!"
 message_payoutlimit_reached: "&cYou have reached the payout limit today. You earned 0$"
 message_afk: "&cYou havn't earned money because you were afk!"
 message_actionbar: "&aYou earned &c%money% &afor 10 minutes online time!"
 message_payoutlimit_reached_actionbar: "&cYou have reached the payout limit today. You got 0$"
 message_afk_actionbar: "&cYou havn't earned money because you were afk!"
-display-messages-in-chat: true
-display-messages-in-actionbar: true
-display-messages-in-actionbar-time: 10
-#ATM -> Place down a sign with [atm] on the first line to use it!
 message_atm_noperms: "&cYou don't have the permission to use ATM's!"
 message_atm_nomoneyinbank: "&cYou don't have enough money in bank!"
 message_atm_nomoney: "&cYou don't have enough money!"
+# ATM -> Place down a sign with [atm] on the first line to use it!
 atm_title: "&cATM"
 atm_withdraw: "&cWithdraw"
 atm_deposit: "&cDeposit"
 atm_balance: "&cBank balance:"
-auto-update: true
-configuration-version: 12