Exemple #1
0
 @Override
 public ConfigurationSection getDefaultConfig() {
   ConfigurationSection node = super.getDefaultConfig();
   node.set(Setting.DURATION.node(), 30000); // in milliseconds
   node.set(Setting.PERIOD.node(), 200); // in milliseconds
   node.set(Setting.APPLY_TEXT.node(), "%hero% is lighting the way.");
   node.set(Setting.EXPIRE_TEXT.node(), "%hero% is no longer lighting the way");
   return node;
 }
Exemple #2
0
 @Override
 public ConfigurationSection getDefaultConfig() {
   ConfigurationSection node = super.getDefaultConfig();
   node.set(Setting.DURATION.node(), 10000);
   node.set(Setting.PERIOD.node(), 2000);
   node.set("tick-damage", 1);
   node.set(Setting.APPLY_TEXT.node(), "%target% is bleeding!");
   node.set(Setting.EXPIRE_TEXT.node(), "%target% has stopped bleeding!");
   return node;
 }