mirror of
https://github.com/AtlasMediaGroup/TotalFreedomMod.git
synced 2025-07-02 20:56:40 +00:00
admin chat discord formatting (FS-59)
This commit is contained in:
@ -11,7 +11,7 @@ public class FSync
|
||||
|
||||
public static void playerMsg(final Player player, final String message)
|
||||
{
|
||||
final TotalFreedomMod plugin = TotalFreedomMod.plugin();
|
||||
final TotalFreedomMod plugin = TotalFreedomMod.getPlugin();
|
||||
new BukkitRunnable()
|
||||
{
|
||||
|
||||
@ -26,7 +26,7 @@ public class FSync
|
||||
|
||||
public static void playerMsg(final CommandSender sender, final String message)
|
||||
{
|
||||
final TotalFreedomMod plugin = TotalFreedomMod.plugin();
|
||||
final TotalFreedomMod plugin = TotalFreedomMod.getPlugin();
|
||||
new BukkitRunnable()
|
||||
{
|
||||
|
||||
@ -41,7 +41,7 @@ public class FSync
|
||||
|
||||
public static void playerKick(final Player player, final String reason)
|
||||
{
|
||||
final TotalFreedomMod plugin = TotalFreedomMod.plugin();
|
||||
final TotalFreedomMod plugin = TotalFreedomMod.getPlugin();
|
||||
new BukkitRunnable()
|
||||
{
|
||||
|
||||
@ -56,7 +56,7 @@ public class FSync
|
||||
|
||||
public static void adminChatMessage(final CommandSender sender, final String message)
|
||||
{
|
||||
final TotalFreedomMod plugin = TotalFreedomMod.plugin();
|
||||
final TotalFreedomMod plugin = TotalFreedomMod.getPlugin();
|
||||
new BukkitRunnable()
|
||||
{
|
||||
|
||||
@ -71,7 +71,7 @@ public class FSync
|
||||
|
||||
public static void autoEject(final Player player, final String kickMessage)
|
||||
{
|
||||
final TotalFreedomMod plugin = TotalFreedomMod.plugin();
|
||||
final TotalFreedomMod plugin = TotalFreedomMod.getPlugin();
|
||||
new BukkitRunnable()
|
||||
{
|
||||
|
||||
@ -86,7 +86,7 @@ public class FSync
|
||||
|
||||
public static void bcastMsg(final String message, final ChatColor color)
|
||||
{
|
||||
final TotalFreedomMod plugin = TotalFreedomMod.plugin();
|
||||
final TotalFreedomMod plugin = TotalFreedomMod.getPlugin();
|
||||
new BukkitRunnable()
|
||||
{
|
||||
|
||||
|
@ -163,7 +163,7 @@ public class FUtil
|
||||
List<String> names = new ArrayList<>();
|
||||
for (Player player : Bukkit.getOnlinePlayers())
|
||||
{
|
||||
if (!TotalFreedomMod.plugin().al.isVanished(player.getName()))
|
||||
if (!TotalFreedomMod.getPlugin().al.isVanished(player.getName()))
|
||||
{
|
||||
names.add(player.getName());
|
||||
}
|
||||
|
@ -64,7 +64,7 @@ public class History
|
||||
FSync.playerMsg(sender, ChatColor.RED + "Player not found!");
|
||||
}
|
||||
}
|
||||
}.runTaskAsynchronously(TotalFreedomMod.plugin());
|
||||
}.runTaskAsynchronously(TotalFreedomMod.getPlugin());
|
||||
}
|
||||
|
||||
private static void printHistory(CommandSender sender, FName[] oldNames)
|
||||
|
Reference in New Issue
Block a user