notifications pt 1

This commit is contained in:
nossr50 2019-03-28 23:29:37 -07:00
parent dc5766035b
commit 7d1cbe4c45
3 changed files with 35 additions and 0 deletions

View File

@ -0,0 +1,13 @@
package com.gmail.nossr50.config.hocon.notifications;
public class ActionBarNotificationSetting {
public ActionBarNotificationSetting(boolean enabled, boolean sendCopyOfMessageToChat)
{
this.enabled = enabled;
this.sendCopyOfMessageToChat = sendCopyOfMessageToChat;
}
public boolean enabled;
public boolean sendCopyOfMessageToChat;
}

View File

@ -0,0 +1,18 @@
package com.gmail.nossr50.config.hocon.notifications;
import com.gmail.nossr50.datatypes.interactions.NotificationType;
import ninja.leaping.configurate.objectmapping.Setting;
import ninja.leaping.configurate.objectmapping.serialize.ConfigSerializable;
import java.util.HashMap;
@ConfigSerializable
public class ConfigActionBarNotifications {
@Setting(value = "Notification-Settings")
private HashMap<NotificationType, ActionBarNotificationSetting> notificationSettingHashMap;
public HashMap<NotificationType, ActionBarNotificationSetting> getNotificationSettingHashMap() {
return notificationSettingHashMap;
}
}

View File

@ -15,4 +15,8 @@ public class ConfigNotifications {
public boolean isSuperAbilityToolMessage() {
return superAbilityToolMessage;
}
@Setting(value = "Action-Bar-Notifications", comment = "Settings related to action bar messages." +
"\nThe action bar is the area above your health and armor.")
public ConfigActionBarNotifications actionBarNotifications = new ConfigActionBarNotifications();
}