setup/Configuration Files
config.yml
config.yml houses the static configuration settings: settings that cannot be changed while the plugin is running. Below is the default file generated:
1 2 3 4 | loginperks: checkunits: days checkvalue: 1 perday: true |
Configuration Nodes
- loginperks.perday (default: true): Should the plugin look at days only (no hours, minutes)? This means that if
loginperks.checkvalue = 1and somebody logs in at 11:59pm one day then again at 12:00am the following day, the user will receive rewards twice. When true, this value ignores the other two config nodes! - loginperks.checkunits (default: days): What unit of time to check in. This defaults to days. Acceptable options are:
[months, days, hours, minutes] - loginperks.checkvalue: How many units of time to compare to. For example, if this is set to
3, andloginperks.checkunitsis set tohours, the user can log in again in 3 hours to get another reward.
data.yml
data.yml is where all the dynamic settings are kept: things that will change as the server is running. Below is a sample file with every single potential node filled out:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 | loginperks: defaults: material_id: 1 material_amt: 64 money_amt: 50 groups: newbie: money_amt: 20 user: money_amt: 50 donor: money_amt: 100 vip: money_amt: 200 material_id: 264 material_amt: 1 mod: money_amt: 250 material_id: 264 material_amt: 1 admin: money_amt: 400 material_id: 264 material_amt: 1 users: Th3Bra1n: money_amt: 9000 last_online: 1323757181227 |
Comments