mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2024-11-02 00:30:07 +01:00
notifications pt 1
This commit is contained in:
parent
dc5766035b
commit
7d1cbe4c45
@ -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;
|
||||||
|
}
|
@ -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;
|
||||||
|
}
|
||||||
|
}
|
@ -15,4 +15,8 @@ public class ConfigNotifications {
|
|||||||
public boolean isSuperAbilityToolMessage() {
|
public boolean isSuperAbilityToolMessage() {
|
||||||
return superAbilityToolMessage;
|
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();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user