Skip to content

Commit

Permalink
Merge pull request #91 from Th3Shadowbroker/feature/eco-skills-woodcu…
Browse files Browse the repository at this point in the history
…tting-and-farming

Add support for woodcutting and farming skill
  • Loading branch information
Th3Shadowbroker authored Apr 9, 2023
2 parents 2bd1c49 + a5f542a commit f036831
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

<groupId>dev.th3shadowbroker.spigot</groupId>
<artifactId>OuroborosMines</artifactId>
<version>1.12.2-SNAPSHOT</version>
<version>1.12.3-SNAPSHOT</version>

<properties>
<plugin.name>${project.artifactId}</plugin.name>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,9 @@
package dev.th3shadowbroker.ouroboros.mines.thirdparty;

import com.willfp.ecoskills.skills.Skills;
import com.willfp.ecoskills.skills.skills.SkillFarming;
import com.willfp.ecoskills.skills.skills.SkillMining;
import com.willfp.ecoskills.skills.skills.SkillWoodcutting;
import dev.th3shadowbroker.ouroboros.mines.OuroborosMines;
import dev.th3shadowbroker.ouroboros.mines.events.MaterialCheckEvent;
import dev.th3shadowbroker.ouroboros.mines.events.MaterialMinedEvent;
Expand Down Expand Up @@ -58,8 +60,14 @@ public void onMaterialCheck(MaterialCheckEvent event) {

@EventHandler
public void onMaterialMined(MaterialMinedEvent event) {
var skill = (SkillMining) Skills.MINING;
skill.handleLevelling(event.getOriginalEvent());
var skillMining = (SkillMining) Skills.MINING;
skillMining.handleLevelling(event.getOriginalEvent());

var skillWoodcutting = (SkillWoodcutting) Skills.WOODCUTTING;
skillWoodcutting.handleLevelling(event.getOriginalEvent());

var skillFarming = (SkillFarming) Skills.FARMING;
skillFarming.handleLevelling(event.getOriginalEvent());
}

}

0 comments on commit f036831

Please sign in to comment.