You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# See here for image contents: https://github.com/microsoft/vscode-dev-containers/tree/v0.234.0/containers/java-8/.devcontainer/base.Dockerfile
2
+
3
+
# [Choice] Debian OS version (use bullseye on local arm64/Apple Silicon): buster, bullseye
4
+
ARG VARIANT="bullseye"
5
+
FROM mcr.microsoft.com/vscode/devcontainers/java:0-8-${VARIANT}
6
+
7
+
# [Option] Install Maven
8
+
ARG INSTALL_MAVEN="false"
9
+
ARG MAVEN_VERSION=""
10
+
# [Option] Install Gradle
11
+
ARG INSTALL_GRADLE="false"
12
+
ARG GRADLE_VERSION=""
13
+
RUN if [ "${INSTALL_MAVEN}" = "true" ]; then su vscode -c "umask 0002 && . /usr/local/sdkman/bin/sdkman-init.sh && sdk install maven \"${MAVEN_VERSION}\""; fi \
14
+
&& if [ "${INSTALL_GRADLE}" = "true" ]; then su vscode -c "umask 0002 && . /usr/local/sdkman/bin/sdkman-init.sh && sdk install gradle \"${GRADLE_VERSION}\""; fi
StringmessageToSend = "While you were offline, a bird dropped off a message for you. It was sent by " + sender.getName() + ". It reads:\n\n'" + message + "'";
sender.sendMessage(ColorChecker.getInstance().getPositiveAlertColor() + "The bird flies off with your message. Since this player is offline, this message will go to their mailbox.");
90
-
returntrue;
91
-
}
92
-
else {
93
-
sender.sendMessage(ColorChecker.getInstance().getNegativeAlertColor() + "Your bird wasn't able to find this player's mailbox.");
94
-
returnfalse;
83
+
try {
84
+
if (MailboxesIntegrator.getInstance().isMailboxesPresent()) {
StringmessageToSend = "While you were offline, a bird dropped off a message for you. It was sent by " + sender.getName() + ". It reads:\n\n'" + message + "'";
sender.sendMessage(ColorChecker.getInstance().getPositiveAlertColor() + "The bird flies off with your message. Since this player is offline, this message will go to their mailbox.");
92
+
returntrue;
93
+
}
94
+
else {
95
+
sender.sendMessage(ColorChecker.getInstance().getNegativeAlertColor() + "Your bird wasn't able to find this player's mailbox.");
96
+
returnfalse;
97
+
}
95
98
}
96
99
}
100
+
} catch (MailboxesNotFoundExceptione) {
101
+
sender.sendMessage(ColorChecker.getInstance().getNegativeAlertColor() + "Your bird wasn't able to find this player's mailbox.");
if (MedievalFactionsIntegrator.getInstance().isMedievalFactionsPresent() && MedievalFactionsIntegrator.getInstance().getAPI().isPlayerInFactionChat(player)) {
45
-
player.sendMessage(ColorChecker.getInstance().getPositiveAlertColor() + "You are now in local chat, but you won't send messages to local chat until you leave faction chat.");
46
-
}
47
-
else {
45
+
try {
46
+
if (MedievalFactionsIntegrator.getInstance().isMedievalFactionsPresent() && MedievalFactionsIntegrator.getInstance().getAPI().isPlayerInFactionChat(player)) {
47
+
player.sendMessage(ColorChecker.getInstance().getPositiveAlertColor() + "You are now in local chat, but you won't send messages to local chat until you leave faction chat.");
48
+
}
49
+
else {
50
+
player.sendMessage(ColorChecker.getInstance().getPositiveAlertColor() + "You are now talking in local chat.");
51
+
}
52
+
} catch (MedievalFactionsNotFoundExceptione) {
48
53
player.sendMessage(ColorChecker.getInstance().getPositiveAlertColor() + "You are now talking in local chat.");
49
54
}
50
55
}
51
56
else {
52
-
if (MedievalFactionsIntegrator.getInstance().isMedievalFactionsPresent() && MedievalFactionsIntegrator.getInstance().getAPI().isPlayerInFactionChat(player)) {
53
-
player.sendMessage(ColorChecker.getInstance().getPositiveAlertColor() + "You're already now in local chat, but you won't send messages to local chat until you leave faction chat.");
54
-
}
55
-
else {
57
+
try {
58
+
if (MedievalFactionsIntegrator.getInstance().isMedievalFactionsPresent() && MedievalFactionsIntegrator.getInstance().getAPI().isPlayerInFactionChat(player)) {
59
+
player.sendMessage(ColorChecker.getInstance().getPositiveAlertColor() + "You're already now in local chat, but you won't send messages to local chat until you leave faction chat.");
60
+
}
61
+
else {
62
+
player.sendMessage(ColorChecker.getInstance().getPositiveAlertColor() + "You're already now in local chat.");
63
+
}
64
+
} catch (MedievalFactionsNotFoundExceptione) {
56
65
player.sendMessage(ColorChecker.getInstance().getPositiveAlertColor() + "You're already now in local chat.");
0 commit comments