Add item pickup option to config

This commit is contained in:
Shevchik 2014-01-02 17:59:53 +04:00
parent e9ce76aca4
commit 3ee46ccf9a
2 changed files with 4 additions and 0 deletions

View File

@ -125,6 +125,8 @@ public class Chairs extends JavaPlugin {
sitMaxHealth = config.getInt("sit-effects.healing.max-percent",100); sitMaxHealth = config.getInt("sit-effects.healing.max-percent",100);
sitHealthPerInterval = config.getInt("sit-effects.healing.amount",1); sitHealthPerInterval = config.getInt("sit-effects.healing.amount",1);
sitPickupEnabled = config.getBoolean("sit-effects.itempickup.enabled", false);
sitDisableAllCommands = config.getBoolean("sit-restrictions.commands.all"); sitDisableAllCommands = config.getBoolean("sit-restrictions.commands.all");
sitDisabledCommands = new HashSet<String>(config.getStringList("sit-restrictions.commands.list")); sitDisabledCommands = new HashSet<String>(config.getStringList("sit-restrictions.commands.list"));

View File

@ -44,6 +44,8 @@ sit-effects:
interval: 20 interval: 20
amount: 1 amount: 1
max-percent: 100 max-percent: 100
itempickup:
enabled: false
sit-restrictions: sit-restrictions:
commands: commands:
all: false all: false