aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/kr/syeyoung/dungeonsguide/commands
diff options
context:
space:
mode:
authorsyeyoung <cyougn06@naver.com>2021-12-19 02:29:11 +0900
committersyeyoung <cyougn06@naver.com>2021-12-19 02:29:11 +0900
commit5fd8d7844b5a77f2a85c9a92aaea967dd2a8932d (patch)
treec12e07dc3dbc21516e44127b3be14b16203274c2 /src/main/java/kr/syeyoung/dungeonsguide/commands
parent7b7d13ede25aa3022cfbd03763ca9ee82ca12656 (diff)
downloadSkyblock-Dungeons-Guide-5fd8d7844b5a77f2a85c9a92aaea967dd2a8932d.tar.gz
Skyblock-Dungeons-Guide-5fd8d7844b5a77f2a85c9a92aaea967dd2a8932d.tar.bz2
Skyblock-Dungeons-Guide-5fd8d7844b5a77f2a85c9a92aaea967dd2a8932d.zip
- Collect Score
- New Score Update
Diffstat (limited to 'src/main/java/kr/syeyoung/dungeonsguide/commands')
-rw-r--r--src/main/java/kr/syeyoung/dungeonsguide/commands/CommandDungeonsGuide.java35
1 files changed, 34 insertions, 1 deletions
diff --git a/src/main/java/kr/syeyoung/dungeonsguide/commands/CommandDungeonsGuide.java b/src/main/java/kr/syeyoung/dungeonsguide/commands/CommandDungeonsGuide.java
index d7bee24f..50f5aa7f 100644
--- a/src/main/java/kr/syeyoung/dungeonsguide/commands/CommandDungeonsGuide.java
+++ b/src/main/java/kr/syeyoung/dungeonsguide/commands/CommandDungeonsGuide.java
@@ -469,6 +469,16 @@ public class CommandDungeonsGuide extends CommandBase {
public boolean isTrapSpawn(String dungeonName) {
return false;
}
+
+ @Override
+ public double secretPercentage(String dungeonName) {
+ return 0;
+ }
+
+ @Override
+ public int speedSecond(String dungeonName) {
+ return 0;
+ }
});
SkyblockStatus skyblockStatus = DungeonsGuide.getDungeonsGuide().getSkyblockStatus();
skyblockStatus.setDungeonName("TEST DG");
@@ -539,7 +549,30 @@ public class CommandDungeonsGuide extends CommandBase {
}
System.out.println(stringBuilder.toString());
System.out.println(stringBuilder2.toString());
- } else{
+ } else if (args[0].equals("readMap")) {
+ try {
+ int fromX = Integer.parseInt(args[1]);
+ int fromY = Integer.parseInt(args[2]);
+ sender.addChatMessage(new ChatComponentText(MapUtils.readDigit(MapUtils.getColors(), fromX, fromY)+"-"));
+// int cntY = Integer.parseInt(args[3]);
+// int target = Integer.parseInt(args[4]);
+// StringBuilder sb = new StringBuilder("{");
+// for (int y = fromY; y < fromY + cntY; y++) {
+// int curr = 0;
+// for (int x = fromX; x < fromX+8; x++) {
+// byte clr = MapUtils.getMapColorAt(MapUtils.getColors(), x,y);
+// if (clr == target) curr = (curr << 1) | 1;
+// else curr <<= 1;
+// }
+// sb.append("0x").append(Integer.toHexString(curr).toUpperCase());
+// if (y != fromY + cntY - 1) sb.append(", ");
+// }
+// sb.append("}");
+// System.out.println("\n"+sb.toString());
+ } catch (Exception e) {
+ e.printStackTrace();
+ }
+ } else {
sender.addChatMessage(new ChatComponentText("§eDungeons Guide §7:: §e/dg §7-§fOpens configuration gui"));
sender.addChatMessage(new ChatComponentText("§eDungeons Guide §7:: §e/dg gui §7-§fOpens configuration gui"));
sender.addChatMessage(new ChatComponentText("§eDungeons Guide §7:: §e/dg help §7-§fShows command help"));