diff --git a/README.md b/README.md
index be1dce5..0bbee32 100644
--- a/README.md
+++ b/README.md
@@ -15,7 +15,7 @@ project produces its result item at the station.
add points to the project, while unneeded aspects are eventually rejected.
- **Hidden recipes** — required aspects sit among decoy rows in a shuffled station
menu, and both their identity and the product are revealed as research progresses.
-- **Character focus** — experiments spend TFMCCore mental points, and a configurable
+- **Character focus** — experiments spend RPCharacters focus points, and a configurable
MMOCore attribute lowers the reveal and confirmation thresholds.
- **Weighted result pools** — outputs grant a fixed item or roll from nested,
weighted result templates using TLibs item paths.
diff --git a/pom.xml b/pom.xml
index 11d88e1..a7aa759 100644
--- a/pom.xml
+++ b/pom.xml
@@ -15,7 +15,7 @@
21
UTF-8
full
- 2.0.1
+ 2.1.0
2.0.1
@@ -52,8 +52,8 @@
net.tfminecraft
- tfmccore
- ${tfmccore.version}
+ rpcharacters
+ ${rpcharacters.version}
provided
diff --git a/src/main/java/net/tfminecraft/research/manager/PlayerManager.java b/src/main/java/net/tfminecraft/research/manager/PlayerManager.java
index ca0bb23..855d53e 100644
--- a/src/main/java/net/tfminecraft/research/manager/PlayerManager.java
+++ b/src/main/java/net/tfminecraft/research/manager/PlayerManager.java
@@ -2,8 +2,8 @@
import org.bukkit.entity.Player;
-import net.tfminecraft.tfmccore.TFMCCore;
-import net.tfminecraft.tfmccore.focus.FocusService;
+import net.tfminecraft.rpcharacters.RPCharacters;
+import net.tfminecraft.rpcharacters.focus.FocusService;
public final class PlayerManager {
@@ -18,17 +18,17 @@ public static PlayerManager getInstance() {
}
public int getMentalPoints(Player player) {
- FocusService focus = TFMCCore.getFocusService();
+ FocusService focus = RPCharacters.getFocusService();
return focus != null ? focus.getPoints(player) : 0;
}
public boolean trySpendMentalPoints(Player player, int amount) {
- FocusService focus = TFMCCore.getFocusService();
+ FocusService focus = RPCharacters.getFocusService();
return focus != null && focus.trySpend(player, amount);
}
public void grantMentalPoints(Player player, int amount) {
- FocusService focus = TFMCCore.getFocusService();
+ FocusService focus = RPCharacters.getFocusService();
if (focus != null) {
focus.grant(player, amount);
}
diff --git a/src/main/resources/plugin.yml b/src/main/resources/plugin.yml
index 001c943..2254407 100644
--- a/src/main/resources/plugin.yml
+++ b/src/main/resources/plugin.yml
@@ -3,7 +3,7 @@ api-version: '1.21.10'
name: Research
version: '${project.version}'
author: Drefvelin
-depend: [MMOItems, MythicLib, ItemsAdder, TLibs, TFMCCore]
+depend: [MMOItems, MythicLib, ItemsAdder, TLibs, RPCharacters]
softdepend: [MMOCore]
commands: