aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/de/hype/bbsentials/constants/enviromentShared/MiningEvents.java
diff options
context:
space:
mode:
authorHacktheTime <l4bg0jb7@duck.com>2023-09-03 11:09:38 +0200
committerHacktheTime <l4bg0jb7@duck.com>2023-09-03 11:09:38 +0200
commitcdd951d912e172ea42fc9707a786db6e69ba2901 (patch)
tree006302c766d9e09e141a9ee03e73c0626750191b /src/main/java/de/hype/bbsentials/constants/enviromentShared/MiningEvents.java
parent7d9f695e2603c2349ce0693bb0e1e6dbbd274fbc (diff)
downloadBBsentials-cdd951d912e172ea42fc9707a786db6e69ba2901.tar.gz
BBsentials-cdd951d912e172ea42fc9707a786db6e69ba2901.tar.bz2
BBsentials-cdd951d912e172ea42fc9707a786db6e69ba2901.zip
added packet communication to work now at least as base. not all features changed and therefore supported yet. first version working at least partially with the new server.
fixed trapper yes via chat prompt action not working. changed the get getter of the string from messageOriginal in Chat.java to now use just messageOriginal.getString(). previosly removed everything in [] brackets.
Diffstat (limited to 'src/main/java/de/hype/bbsentials/constants/enviromentShared/MiningEvents.java')
-rw-r--r--src/main/java/de/hype/bbsentials/constants/enviromentShared/MiningEvents.java40
1 files changed, 40 insertions, 0 deletions
diff --git a/src/main/java/de/hype/bbsentials/constants/enviromentShared/MiningEvents.java b/src/main/java/de/hype/bbsentials/constants/enviromentShared/MiningEvents.java
new file mode 100644
index 0000000..1dc72d1
--- /dev/null
+++ b/src/main/java/de/hype/bbsentials/constants/enviromentShared/MiningEvents.java
@@ -0,0 +1,40 @@
+package de.hype.bbsentials.constants.enviromentShared;
+
+
+import de.hype.bbsentials.constants.BBDisplayNameProvider;
+
+// Mining Events
+public enum MiningEvents implements BBDisplayNameProvider {
+ BETTER_TOGETHER("Better Together"),
+ DOUBLE_POWDER("Double Powder"),
+ GONE_WITH_THE_WIND("Gone with the Wind"),
+ GOBLIN_RAID("Goblin Raid"),
+ MITHRIL_GOURMAND("Mithril Gourmand"),
+ RAFFLE("Raffle");
+
+ private final String displayName;
+
+ MiningEvents(String displayName) {
+ this.displayName = displayName;
+ }
+
+ @Override
+ public String getDisplayName() {
+ return displayName;
+ }
+
+ //Some Events cant happen in Crystal Holows
+ public boolean isDWEventOnly() {
+ if (this.equals(MiningEvents.MITHRIL_GOURMAND) || this.equals(MiningEvents.RAFFLE) || this.equals(MiningEvents.GOBLIN_RAID)) {
+ return true;
+ }
+ return false;
+ }
+
+ public static boolean isDWEventOnly(String event) {
+ if (event.equals(MiningEvents.MITHRIL_GOURMAND.getDisplayName()) || event.equals(MiningEvents.RAFFLE.getDisplayName()) || event.equals(MiningEvents.GOBLIN_RAID.getDisplayName())) {
+ return true;
+ }
+ return false;
+ }
+}