diff --git a/src/engine/objects/Mine.java b/src/engine/objects/Mine.java index 42b1d9ef..1bced3a8 100644 --- a/src/engine/objects/Mine.java +++ b/src/engine/objects/Mine.java @@ -36,8 +36,7 @@ import java.time.LocalDateTime; import java.util.ArrayList; import java.util.concurrent.ConcurrentHashMap; -import static engine.gameManager.DbManager.MineQueries; -import static engine.gameManager.DbManager.getObject; +import static engine.gameManager.DbManager.*; import static engine.math.FastMath.sqr; public class Mine extends AbstractGameObject { diff --git a/src/engine/powers/poweractions/ClaimMinePowerAction.java b/src/engine/powers/poweractions/ClaimMinePowerAction.java index 0742bc7d..6dd896d3 100644 --- a/src/engine/powers/poweractions/ClaimMinePowerAction.java +++ b/src/engine/powers/poweractions/ClaimMinePowerAction.java @@ -47,7 +47,9 @@ public class ClaimMinePowerAction extends AbstractPowerAction { if (mine == null) return; - if (mine.claimMine((PlayerCharacter) source) == false) + if (mine.claimMine((PlayerCharacter) source) == true) + ChatManager.sendSystemMessage( (PlayerCharacter) source, "You successfully claimed this mine.."); + else ChatManager.sendSystemMessage( (PlayerCharacter) source, "Your attempt for to claim this mine failed."); }