Search in sources :

Example 1 with TotalFreedomMod

use of me.totalfreedom.totalfreedommod.TotalFreedomMod in project TotalFreedomMod by TotalFreedom.

the class FSync method playerMsg.

public static void playerMsg(final Player player, final String message) {
    final TotalFreedomMod plugin = TotalFreedomMod.plugin();
    new BukkitRunnable() {

        @Override
        public void run() {
            FUtil.playerMsg(player, message);
        }
    }.runTask(plugin);
}
Also used : TotalFreedomMod(me.totalfreedom.totalfreedommod.TotalFreedomMod) BukkitRunnable(org.bukkit.scheduler.BukkitRunnable)

Example 2 with TotalFreedomMod

use of me.totalfreedom.totalfreedommod.TotalFreedomMod in project TotalFreedomMod by TotalFreedom.

the class FSync method autoEject.

public static void autoEject(final Player player, final String kickMessage) {
    final TotalFreedomMod plugin = TotalFreedomMod.plugin();
    new BukkitRunnable() {

        @Override
        public void run() {
            plugin.ae.autoEject(player, kickMessage);
        }
    }.runTask(plugin);
}
Also used : TotalFreedomMod(me.totalfreedom.totalfreedommod.TotalFreedomMod) BukkitRunnable(org.bukkit.scheduler.BukkitRunnable)

Example 3 with TotalFreedomMod

use of me.totalfreedom.totalfreedommod.TotalFreedomMod in project TotalFreedomMod by TotalFreedom.

the class FSync method adminChatMessage.

public static void adminChatMessage(final CommandSender sender, final String message) {
    final TotalFreedomMod plugin = TotalFreedomMod.plugin();
    new BukkitRunnable() {

        @Override
        public void run() {
            plugin.cm.adminChat(sender, message);
        }
    }.runTask(plugin);
}
Also used : TotalFreedomMod(me.totalfreedom.totalfreedommod.TotalFreedomMod) BukkitRunnable(org.bukkit.scheduler.BukkitRunnable)

Example 4 with TotalFreedomMod

use of me.totalfreedom.totalfreedommod.TotalFreedomMod in project TotalFreedomMod by TotalFreedom.

the class FSync method playerKick.

public static void playerKick(final Player player, final String reason) {
    final TotalFreedomMod plugin = TotalFreedomMod.plugin();
    new BukkitRunnable() {

        @Override
        public void run() {
            player.kickPlayer(reason);
        }
    }.runTask(plugin);
}
Also used : TotalFreedomMod(me.totalfreedom.totalfreedommod.TotalFreedomMod) BukkitRunnable(org.bukkit.scheduler.BukkitRunnable)

Example 5 with TotalFreedomMod

use of me.totalfreedom.totalfreedommod.TotalFreedomMod in project TotalFreedomMod by TotalFreedom.

the class FSync method bcastMsg.

public static void bcastMsg(final String message, final ChatColor color) {
    final TotalFreedomMod plugin = TotalFreedomMod.plugin();
    new BukkitRunnable() {

        @Override
        public void run() {
            FUtil.bcastMsg(message, color);
        }
    }.runTask(plugin);
}
Also used : TotalFreedomMod(me.totalfreedom.totalfreedommod.TotalFreedomMod) BukkitRunnable(org.bukkit.scheduler.BukkitRunnable)

Aggregations

TotalFreedomMod (me.totalfreedom.totalfreedommod.TotalFreedomMod)6 BukkitRunnable (org.bukkit.scheduler.BukkitRunnable)5