From 5255ae846d1a437a856618fefa58dca852043d17 Mon Sep 17 00:00:00 2001 From: TheBusyBiscuit Date: Fri, 2 Jul 2021 01:11:22 +0200 Subject: [PATCH] Fixed #4556 (#4559) --- .../datatypes/interactions/NotificationType.java | 12 +++++++----- src/main/resources/advanced.yml | 3 +++ 2 files changed, 10 insertions(+), 5 deletions(-) diff --git a/src/main/java/com/gmail/nossr50/datatypes/interactions/NotificationType.java b/src/main/java/com/gmail/nossr50/datatypes/interactions/NotificationType.java index 339621547..406dbe92f 100644 --- a/src/main/java/com/gmail/nossr50/datatypes/interactions/NotificationType.java +++ b/src/main/java/com/gmail/nossr50/datatypes/interactions/NotificationType.java @@ -1,5 +1,7 @@ package com.gmail.nossr50.datatypes.interactions; +import org.jetbrains.annotations.NotNull; + /** * This class helps define the types of information interactions we will have with players */ @@ -23,14 +25,14 @@ public enum NotificationType { CHAT_ONLY("ChatOnly"), PARTY_MESSAGE("PartyMessage"); - final String niceName; + private final String niceName; - NotificationType(String niceName) - { + NotificationType(@NotNull String niceName) { this.niceName = niceName; } @Override - public String toString() { + public @NotNull String toString() { return niceName; - }} + } +} diff --git a/src/main/resources/advanced.yml b/src/main/resources/advanced.yml index 2ff9795d4..66b79f79a 100644 --- a/src/main/resources/advanced.yml +++ b/src/main/resources/advanced.yml @@ -78,6 +78,9 @@ Feedback: PartyMessage: Enabled: true SendCopyOfMessageToChat: true + AbilityRefreshed: + Enabled: true + SendCopyOfMessageToChat: false Skills: General: LimitBreak: