Example #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;
 }
Example #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;
 }
Example #3
0
 @Override
 public void init() {
   super.init();
   applyText =
       SkillConfigManager.getRaw(this, Setting.APPLY_TEXT.node(), "%target% is bleeding!")
           .replace("%target%", "$1");
   expireText =
       SkillConfigManager.getRaw(
               this, Setting.EXPIRE_TEXT.node(), "%target% has stopped bleeding!")
           .replace("%target%", "$1");
 }