.kickPlayer()

This commit is contained in:
business-goose 2022-03-21 21:21:42 +00:00
parent 35bee2d9e8
commit f0eb0f5d28

View file

@ -31,7 +31,7 @@ public class Command_updatetfm extends FreedomCommand {
playerMsg("Updated TFM! Reloading..."); playerMsg("Updated TFM! Reloading...");
Utilities.adminAction(sender.getName(), "Update successful, reloading TFM...", false); Utilities.adminAction(sender.getName(), "Update successful, reloading TFM...", false);
for (Player onlinePlayer : Bukkit.getOnlinePlayers()) { for (Player onlinePlayer : Bukkit.getOnlinePlayers()) {
SynchronousUtil.playerKick(onlinePlayer, "Reloading TFM, please rejoin."); onlinePlayer.kickPlayer(ChatColor.RED + "Reloading TFM, please rejoin.");
} }
Bukkit.dispatchCommand(sender, "plugman reload TotalFreedomMod"); Bukkit.dispatchCommand(sender, "plugman reload TotalFreedomMod");