From c367a9cb09a498b21d9e38e2e184ce151e4dcf9b Mon Sep 17 00:00:00 2001 From: Trent Hensler Date: Thu, 4 Jan 2018 14:41:14 -0800 Subject: [PATCH] Make faction announcement borders configurable --- .../massivecraft/factions/zcore/persist/MemoryFaction.java | 4 ++-- src/main/java/com/massivecraft/factions/zcore/util/TL.java | 2 ++ 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/main/java/com/massivecraft/factions/zcore/persist/MemoryFaction.java b/src/main/java/com/massivecraft/factions/zcore/persist/MemoryFaction.java index 6e2a37e5..cb61688e 100644 --- a/src/main/java/com/massivecraft/factions/zcore/persist/MemoryFaction.java +++ b/src/main/java/com/massivecraft/factions/zcore/persist/MemoryFaction.java @@ -63,11 +63,11 @@ public abstract class MemoryFaction implements Faction, EconomyParticipator { if (!announcements.containsKey(fPlayer.getId())) { return; } - fPlayer.sendMessage(ChatColor.LIGHT_PURPLE + "--Unread Faction Announcements--"); + fPlayer.msg(TL.FACTIONS_ANNOUNCEMENT_TOP); for (String s : announcements.get(fPlayer.getPlayer().getUniqueId().toString())) { fPlayer.sendMessage(s); } - fPlayer.sendMessage(ChatColor.LIGHT_PURPLE + "--Unread Faction Announcements--"); + fPlayer.msg(TL.FACTIONS_ANNOUNCEMENT_BOTTOM); announcements.remove(fPlayer.getId()); } diff --git a/src/main/java/com/massivecraft/factions/zcore/util/TL.java b/src/main/java/com/massivecraft/factions/zcore/util/TL.java index ef605788..47e1897a 100644 --- a/src/main/java/com/massivecraft/factions/zcore/util/TL.java +++ b/src/main/java/com/massivecraft/factions/zcore/util/TL.java @@ -720,6 +720,8 @@ public enum TL { SAFEZONE_DESCRIPTION("safezone-description", "Free from pvp and monsters."), TOGGLE_SB("toggle-sb", "You now have scoreboards set to {value}"), FACTION_LEAVE("faction-leave", "Leaving %1$s, Entering %2$s"), + FACTIONS_ANNOUNCEMENT_TOP("faction-announcement-top", "&d--Unread Faction Announcements--"), + FACTIONS_ANNOUNCEMENT_BOTTOM("faction-announcement-bottom", "&d--Unread Faction Announcements--"), DEFAULT_PREFIX("default-prefix", "{relationcolor}[{faction}] &r"), FACTION_LOGIN("faction-login", "&e%1$s &9logged in."), FACTION_LOGOUT("faction-logout", "&e%1$s &9logged out.."),