forked from MagicBane/Server
Message when claiming mine succeeds.
This commit is contained in:
@@ -36,8 +36,7 @@ import java.time.LocalDateTime;
|
|||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
import java.util.concurrent.ConcurrentHashMap;
|
import java.util.concurrent.ConcurrentHashMap;
|
||||||
|
|
||||||
import static engine.gameManager.DbManager.MineQueries;
|
import static engine.gameManager.DbManager.*;
|
||||||
import static engine.gameManager.DbManager.getObject;
|
|
||||||
import static engine.math.FastMath.sqr;
|
import static engine.math.FastMath.sqr;
|
||||||
|
|
||||||
public class Mine extends AbstractGameObject {
|
public class Mine extends AbstractGameObject {
|
||||||
|
|||||||
@@ -47,7 +47,9 @@ public class ClaimMinePowerAction extends AbstractPowerAction {
|
|||||||
if (mine == null)
|
if (mine == null)
|
||||||
return;
|
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.");
|
ChatManager.sendSystemMessage( (PlayerCharacter) source, "Your attempt for to claim this mine failed.");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user