mirror of
https://github.com/AtlasMediaGroup/TotalFreedomMod.git
synced 2024-11-30 10:05:59 +00:00
Added some getters for TFM_Announcer
This commit is contained in:
parent
b0aa4a850d
commit
9233bcfedc
@ -1,7 +1,7 @@
|
||||
package me.StevenLawson.TotalFreedomMod;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.Collection;
|
||||
import java.util.Collections;
|
||||
import java.util.List;
|
||||
import me.StevenLawson.TotalFreedomMod.Config.TFM_ConfigEntry;
|
||||
import org.bukkit.scheduler.BukkitRunnable;
|
||||
@ -14,6 +14,31 @@ public class TFM_Announcer
|
||||
private static String prefix;
|
||||
private static BukkitRunnable announcer;
|
||||
|
||||
private TFM_Announcer()
|
||||
{
|
||||
throw new AssertionError();
|
||||
}
|
||||
|
||||
public static boolean isEnabled()
|
||||
{
|
||||
return enabled;
|
||||
}
|
||||
|
||||
public static List<String> getAnnouncements()
|
||||
{
|
||||
return Collections.unmodifiableList(ANNOUNCEMENTS);
|
||||
}
|
||||
|
||||
public static long getTickInterval()
|
||||
{
|
||||
return interval;
|
||||
}
|
||||
|
||||
public static String getPrefix()
|
||||
{
|
||||
return prefix;
|
||||
}
|
||||
|
||||
public static void load()
|
||||
{
|
||||
stop();
|
||||
|
Loading…
Reference in New Issue
Block a user