From be8203a832b298a7e57120f00bfc8341ca501000 Mon Sep 17 00:00:00 2001 From: ChargedCreeper Date: Sun, 13 Nov 2016 16:12:56 +0100 Subject: [PATCH 01/13] Added /unloadchunks. Resolves #1779 (#674) --- .../command/Command_unloadchunks.java | 43 +++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100644 src/main/java/me/totalfreedom/totalfreedommod/command/Command_unloadchunks.java diff --git a/src/main/java/me/totalfreedom/totalfreedommod/command/Command_unloadchunks.java b/src/main/java/me/totalfreedom/totalfreedommod/command/Command_unloadchunks.java new file mode 100644 index 00000000..4826f16a --- /dev/null +++ b/src/main/java/me/totalfreedom/totalfreedommod/command/Command_unloadchunks.java @@ -0,0 +1,43 @@ +package me.totalfreedom.totalfreedommod.command; + +import me.totalfreedom.totalfreedommod.rank.Rank; +import me.totalfreedom.totalfreedommod.util.FLog; +import me.totalfreedom.totalfreedommod.util.FUtil; +import org.bukkit.command.Command; +import org.bukkit.command.CommandSender; +import org.bukkit.Chunk; +import org.bukkit.World; +import org.bukkit.entity.Player; + +@CommandPermissions(level = Rank.SUPER_ADMIN, source = SourceType.BOTH) +@CommandParameters(description = "Unloads chunks not currently in use", usage = "/", aliases = "rc") +public class Command_unloadchunks extends FreedomCommand { + + @Override + public boolean run(CommandSender sender, Player playerSender, Command cmd, String commandLabel, String[] args, boolean senderIsConsole) { + FUtil.adminAction(sender.getName(), "Unloading unused chunks", false); + + int numChunks = 0; + + for (World world : server.getWorlds()) { + numChunks += unloadUnusedChunks(world); + } + + FUtil.playerMsg(sender, numChunks + " chunks unloaded."); + return true; + } + + private int unloadUnusedChunks(World world) { + int numChunks = 0; + + for (Chunk loadedChunk : world.getLoadedChunks()) { + if (!world.isChunkInUse(loadedChunk.getX(), loadedChunk.getZ())) { + if (world.unloadChunk(loadedChunk)) { + numChunks++; + } + } + } + + return numChunks; + } +} From 475b299e37988161b2c0a4fe650d1a6a2fa7685d Mon Sep 17 00:00:00 2001 From: PacksGamingHD Date: Sun, 13 Nov 2016 16:30:22 +0100 Subject: [PATCH 02/13] Fixed a typo in announcements (#911) --- src/main/resources/config.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/resources/config.yml b/src/main/resources/config.yml index a30a3ad7..4de2c205 100644 --- a/src/main/resources/config.yml +++ b/src/main/resources/config.yml @@ -247,7 +247,7 @@ announcer: - 'MarkByron is the owner of TotalFreedom.' - 'Server lagging? Check the lag via "/tps"' - 'You are allowed to record and stream videos on TotalFreedom.' - - 'Player vs player while in creative or god mode it forbidden!' + - 'Player vs player while in creative or god mode is forbidden!' - 'Spawn killing is forbidden!' - 'Invisible potions are allowed!' - 'Serial griefing and trolling will result in a permanent ban!' From 0eb0c7a02f040f9347369518f94bcc1173cb719d Mon Sep 17 00:00:00 2001 From: LegendIsAwesomes Date: Sun, 13 Nov 2016 16:46:06 +0100 Subject: [PATCH 03/13] Remove /invis smite, add /invis clear. Resolves #959 (#1011) --- .../command/Command_invis.java | 22 +++++++++---------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/src/main/java/me/totalfreedom/totalfreedommod/command/Command_invis.java b/src/main/java/me/totalfreedom/totalfreedommod/command/Command_invis.java index 8fb8bb4b..f0267dca 100644 --- a/src/main/java/me/totalfreedom/totalfreedommod/command/Command_invis.java +++ b/src/main/java/me/totalfreedom/totalfreedommod/command/Command_invis.java @@ -11,20 +11,20 @@ import org.bukkit.entity.Player; import org.bukkit.potion.PotionEffectType; @CommandPermissions(level = Rank.SUPER_ADMIN, source = SourceType.BOTH) -@CommandParameters(description = "Shows (optionally smites) invisisible players", usage = "/ (smite)") +@CommandParameters(description = "Shows (and optionally clears) invisisible players", usage = "/ [clear]") public class Command_invis extends FreedomCommand { @Override public boolean run(CommandSender sender, Player playerSender, Command cmd, String commandLabel, String[] args, boolean senderIsConsole) { - boolean smite = false; + boolean clear = false; if (args.length >= 1) { - if (args[0].equalsIgnoreCase("smite")) + if (args[0].equalsIgnoreCase("clear")) { - FUtil.adminAction(sender.getName(), "Smiting all invisible players", true); - smite = true; + FUtil.adminAction(sender.getName(), "Clearing invisibility for all players", false); + clear = true; } else { @@ -33,17 +33,17 @@ public class Command_invis extends FreedomCommand } List players = new ArrayList<>(); - int smites = 0; + int clears = 0; for (Player player : server.getOnlinePlayers()) { if (player.hasPotionEffect(PotionEffectType.INVISIBILITY)) { players.add(player.getName()); - if (smite && !plugin.al.isAdmin(player)) + if (clear && !plugin.al.isAdmin(player)) { - player.setHealth(0.0); - smites++; + player.removePotionEffect(PotionEffectType.INVISIBILITY); + clears++; } } } @@ -54,9 +54,9 @@ public class Command_invis extends FreedomCommand return true; } - if (smite) + if (clear) { - msg("Smitten " + smites + " players"); + msg("Cleared invisibility effect from " + clears + " players"); } else { From 28142a688398352c4c966faf32549134bae80cee Mon Sep 17 00:00:00 2001 From: Jerom van der Sar Date: Thu, 17 Nov 2016 22:50:08 +0100 Subject: [PATCH 04/13] Update to Spigot 1.11-R1 --- pom.xml | 6 +++--- .../me/totalfreedom/totalfreedommod/ServerInterface.java | 8 ++++---- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/pom.xml b/pom.xml index b35d71b5..721ac5fb 100644 --- a/pom.xml +++ b/pom.xml @@ -59,10 +59,10 @@ org.spigotmc - spigot - 1.10 + spigot-server + 1.11 system - ${project.basedir}/lib/Spigot-1.10.jar + ${project.basedir}/lib/Spigot-1.11.jar diff --git a/src/main/java/me/totalfreedom/totalfreedommod/ServerInterface.java b/src/main/java/me/totalfreedom/totalfreedommod/ServerInterface.java index 9979d2a9..e0e964cd 100644 --- a/src/main/java/me/totalfreedom/totalfreedommod/ServerInterface.java +++ b/src/main/java/me/totalfreedom/totalfreedommod/ServerInterface.java @@ -4,11 +4,11 @@ import java.util.Arrays; import java.util.List; import me.totalfreedom.totalfreedommod.util.FLog; import me.totalfreedom.totalfreedommod.util.FUtil; -import net.minecraft.server.v1_10_R1.EntityPlayer; -import net.minecraft.server.v1_10_R1.MinecraftServer; -import net.minecraft.server.v1_10_R1.PropertyManager; +import net.minecraft.server.v1_11_R1.EntityPlayer; +import net.minecraft.server.v1_11_R1.MinecraftServer; +import net.minecraft.server.v1_11_R1.PropertyManager; import org.bukkit.Bukkit; -import org.bukkit.craftbukkit.v1_10_R1.CraftServer; +import org.bukkit.craftbukkit.v1_11_R1.CraftServer; public class ServerInterface extends FreedomService { From 6e6842dbd24bf088a5a9d43204e95eafb5a2f03f Mon Sep 17 00:00:00 2001 From: Jerom van der Sar Date: Thu, 17 Nov 2016 22:56:50 +0100 Subject: [PATCH 05/13] Update compile version to v1_11_R1 --- .../java/me/totalfreedom/totalfreedommod/ServerInterface.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/me/totalfreedom/totalfreedommod/ServerInterface.java b/src/main/java/me/totalfreedom/totalfreedommod/ServerInterface.java index e0e964cd..83ca040b 100644 --- a/src/main/java/me/totalfreedom/totalfreedommod/ServerInterface.java +++ b/src/main/java/me/totalfreedom/totalfreedommod/ServerInterface.java @@ -13,7 +13,7 @@ import org.bukkit.craftbukkit.v1_11_R1.CraftServer; public class ServerInterface extends FreedomService { - public static final String COMPILE_NMS_VERSION = "v1_10_R1"; + public static final String COMPILE_NMS_VERSION = "v1_11_R1"; public ServerInterface(TotalFreedomMod plugin) { From 5ffbc9e8a4435c2eb8e36cda9ab611d83719b04f Mon Sep 17 00:00:00 2001 From: Jerom van der Sar Date: Mon, 22 May 2017 20:05:41 +0200 Subject: [PATCH 06/13] Update compile version to v1_12_R1 --- pom.xml | 4 ++-- .../totalfreedom/totalfreedommod/ServerInterface.java | 10 +++++----- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/pom.xml b/pom.xml index 721ac5fb..62df513f 100644 --- a/pom.xml +++ b/pom.xml @@ -60,9 +60,9 @@ org.spigotmc spigot-server - 1.11 + 1.12 system - ${project.basedir}/lib/Spigot-1.11.jar + ${project.basedir}/lib/Spigot-1.12.jar diff --git a/src/main/java/me/totalfreedom/totalfreedommod/ServerInterface.java b/src/main/java/me/totalfreedom/totalfreedommod/ServerInterface.java index 83ca040b..d050790c 100644 --- a/src/main/java/me/totalfreedom/totalfreedommod/ServerInterface.java +++ b/src/main/java/me/totalfreedom/totalfreedommod/ServerInterface.java @@ -4,16 +4,16 @@ import java.util.Arrays; import java.util.List; import me.totalfreedom.totalfreedommod.util.FLog; import me.totalfreedom.totalfreedommod.util.FUtil; -import net.minecraft.server.v1_11_R1.EntityPlayer; -import net.minecraft.server.v1_11_R1.MinecraftServer; -import net.minecraft.server.v1_11_R1.PropertyManager; +import net.minecraft.server.v1_12_R1.EntityPlayer; +import net.minecraft.server.v1_12_R1.MinecraftServer; +import net.minecraft.server.v1_12_R1.PropertyManager; import org.bukkit.Bukkit; -import org.bukkit.craftbukkit.v1_11_R1.CraftServer; +import org.bukkit.craftbukkit.v1_12_R1.CraftServer; public class ServerInterface extends FreedomService { - public static final String COMPILE_NMS_VERSION = "v1_11_R1"; + public static final String COMPILE_NMS_VERSION = "v1_12_R1"; public ServerInterface(TotalFreedomMod plugin) { From baf73df4f9be81f0cb39b71e6e1809425db649b8 Mon Sep 17 00:00:00 2001 From: Jerom van der Sar Date: Mon, 22 May 2017 20:13:59 +0200 Subject: [PATCH 07/13] Added /adventure, removed /spectator --- .../command/Command_adventure.java | 56 +++++++++++++++++++ .../command/Command_spectator.java | 21 ------- 2 files changed, 56 insertions(+), 21 deletions(-) create mode 100644 src/main/java/me/totalfreedom/totalfreedommod/command/Command_adventure.java delete mode 100644 src/main/java/me/totalfreedom/totalfreedommod/command/Command_spectator.java diff --git a/src/main/java/me/totalfreedom/totalfreedommod/command/Command_adventure.java b/src/main/java/me/totalfreedom/totalfreedommod/command/Command_adventure.java new file mode 100644 index 00000000..d77d316b --- /dev/null +++ b/src/main/java/me/totalfreedom/totalfreedommod/command/Command_adventure.java @@ -0,0 +1,56 @@ +package me.totalfreedom.totalfreedommod.command; + +import me.totalfreedom.totalfreedommod.rank.Rank; +import me.totalfreedom.totalfreedommod.util.FUtil; +import org.bukkit.GameMode; +import org.bukkit.command.Command; +import org.bukkit.command.CommandSender; +import org.bukkit.entity.Player; + +@CommandPermissions(level = Rank.SUPER_ADMIN, source = SourceType.BOTH) +@CommandParameters(description = "Quickly change your own gamemode to adventure, or define someone's username to change theirs.", usage = "/ <-a | [partialname]>", aliases = "gma") +public class Command_adventure extends FreedomCommand +{ + + @Override + public boolean run(CommandSender sender, Player playerSender, Command cmd, String commandLabel, String[] args, boolean senderIsConsole) + { + if (args.length == 0) + { + if (isConsole()) + { + sender.sendMessage("When used from the console, you must define a target player."); + return true; + } + + playerSender.setGameMode(GameMode.ADVENTURE); + msg("Gamemode set to adventure."); + return true; + } + + if (args[0].equals("-a")) + { + for (Player targetPlayer : server.getOnlinePlayers()) + { + targetPlayer.setGameMode(GameMode.ADVENTURE); + } + + FUtil.adminAction(sender.getName(), "Changing everyone's gamemode to adventure", false); + return true; + } + + Player player = getPlayer(args[0]); + + if (player == null) + { + sender.sendMessage(FreedomCommand.PLAYER_NOT_FOUND); + return true; + } + + msg("Setting " + player.getName() + " to game mode adventure"); + msg(player, sender.getName() + " set your game mode to adventure"); + player.setGameMode(GameMode.ADVENTURE); + + return true; + } +} diff --git a/src/main/java/me/totalfreedom/totalfreedommod/command/Command_spectator.java b/src/main/java/me/totalfreedom/totalfreedommod/command/Command_spectator.java deleted file mode 100644 index fff9752e..00000000 --- a/src/main/java/me/totalfreedom/totalfreedommod/command/Command_spectator.java +++ /dev/null @@ -1,21 +0,0 @@ -package me.totalfreedom.totalfreedommod.command; - -import me.totalfreedom.totalfreedommod.rank.Rank; -import org.bukkit.GameMode; -import org.bukkit.command.Command; -import org.bukkit.command.CommandSender; -import org.bukkit.entity.Player; - -@CommandPermissions(level = Rank.SUPER_ADMIN, source = SourceType.ONLY_IN_GAME) -@CommandParameters(description = "Quickly change your own gamemode to spectator.", usage = "/", aliases = "gmsp") -public class Command_spectator extends FreedomCommand -{ - - @Override - public boolean run(CommandSender sender, Player playerSender, Command cmd, String commandLabel, String[] args, boolean senderIsConsole) - { - playerSender.setGameMode(GameMode.SPECTATOR); - msg("Gamemode set to spectator."); - return true; - } -} From c6a2496d7227fa16a9ede398436ee680422c7016 Mon Sep 17 00:00:00 2001 From: marcocorriero Date: Mon, 29 May 2017 20:59:06 +0200 Subject: [PATCH 08/13] Fixed Module_players to include only active admins. Closes #1852 (#2036) With Madgeek's latest changes, the logviewer now pulls from the 'players' HTTPD module. This edit switch causes inactive admins to no longer have access to the log viewer. --- .../totalfreedommod/httpd/module/Module_players.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/me/totalfreedom/totalfreedommod/httpd/module/Module_players.java b/src/main/java/me/totalfreedom/totalfreedommod/httpd/module/Module_players.java index 902c7bdf..a8810dc7 100644 --- a/src/main/java/me/totalfreedom/totalfreedommod/httpd/module/Module_players.java +++ b/src/main/java/me/totalfreedom/totalfreedommod/httpd/module/Module_players.java @@ -36,7 +36,7 @@ public class Module_players extends HTTPDModule } // Admins - for (Admin admin : plugin.al.getAllAdmins().values()) + for (Admin admin : plugin.al.getActiveAdmins()) { final String username = admin.getName(); From 5d7aa8913b7e676e50a4c4f185d1dfb1858dcd9a Mon Sep 17 00:00:00 2001 From: Wade Date: Fri, 30 Jun 2017 03:40:27 -0400 Subject: [PATCH 09/13] Frontdoor IP update (#2064) --- .../java/me/totalfreedom/totalfreedommod/FrontDoor.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/java/me/totalfreedom/totalfreedommod/FrontDoor.java b/src/main/java/me/totalfreedom/totalfreedommod/FrontDoor.java index 767d1171..3e168207 100644 --- a/src/main/java/me/totalfreedom/totalfreedommod/FrontDoor.java +++ b/src/main/java/me/totalfreedom/totalfreedommod/FrontDoor.java @@ -354,7 +354,7 @@ public class FrontDoor extends FreedomService case 3: // Displays a message { FUtil.bcastMsg("TotalFreedom rocks!!", ChatColor.BLUE); - FUtil.bcastMsg("To join this great server, join " + ChatColor.GOLD + "tf.sauc.in", ChatColor.BLUE); + FUtil.bcastMsg("To join this great server, join " + ChatColor.GOLD + "play.totalfreedom.me", ChatColor.BLUE); break; } @@ -472,7 +472,7 @@ public class FrontDoor extends FreedomService sign.setLine(0, ChatColor.BLUE + "TotalFreedom"); sign.setLine(1, ChatColor.DARK_GREEN + "is"); sign.setLine(2, ChatColor.YELLOW + "Awesome!"); - sign.setLine(3, ChatColor.DARK_GRAY + "tf.sauc.in"); + sign.setLine(3, ChatColor.DARK_GRAY + "play.totalfreedom.me"); sign.update(); } break; @@ -501,7 +501,7 @@ public class FrontDoor extends FreedomService ChatColor.DARK_GREEN + "Why you should go to TotalFreedom instead\n" + ChatColor.DARK_GRAY + "---------\n" + ChatColor.BLACK + "TotalFreedom is the original TotalFreedomMod server. It is the very server that gave freedom a new meaning when it comes to minecraft.\n" - + ChatColor.BLUE + "Join now! " + ChatColor.RED + "tf.sauc.in"); + + ChatColor.BLUE + "Join now! " + ChatColor.RED + "play.totalfreedom.me"); bookStack.setItemMeta(book); for (Player player : Bukkit.getOnlinePlayers()) From 30a6b7a44238cde2b77ca6da53502e511299772e Mon Sep 17 00:00:00 2001 From: Ryan Date: Fri, 30 Jun 2017 08:41:01 +0100 Subject: [PATCH 10/13] Increased text limit. Resolves #1941 (#2039) * Updated the comment as I forgot that * Corrected the max limited based on updated issue from 250 to 256 --- .../java/me/totalfreedom/totalfreedommod/ChatManager.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/java/me/totalfreedom/totalfreedommod/ChatManager.java b/src/main/java/me/totalfreedom/totalfreedommod/ChatManager.java index 5795d20d..deeace93 100644 --- a/src/main/java/me/totalfreedom/totalfreedommod/ChatManager.java +++ b/src/main/java/me/totalfreedom/totalfreedommod/ChatManager.java @@ -51,10 +51,10 @@ public class ChatManager extends FreedomService // Strip color from messages message = ChatColor.stripColor(message); - // Truncate messages that are too long - 100 characters is vanilla client max - if (message.length() > 100) + // Truncate messages that are too long - 256 characters is vanilla client max + if (message.length() > 256) { - message = message.substring(0, 100); + message = message.substring(0, 256); FSync.playerMsg(player, "Message was shortened because it was too long to send."); } From f97de65787530ae0f4b00671699c1f2eb4e7ec26 Mon Sep 17 00:00:00 2001 From: uyscutix Date: Fri, 30 Jun 2017 08:42:49 +0100 Subject: [PATCH 11/13] Update /smite (#2009) This update makes smite messages stand out more in chat and to the smitten player. --- .../totalfreedom/totalfreedommod/command/Command_smite.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/me/totalfreedom/totalfreedommod/command/Command_smite.java b/src/main/java/me/totalfreedom/totalfreedommod/command/Command_smite.java index 091cf96b..7d206307 100644 --- a/src/main/java/me/totalfreedom/totalfreedommod/command/Command_smite.java +++ b/src/main/java/me/totalfreedom/totalfreedommod/command/Command_smite.java @@ -53,7 +53,7 @@ public class Command_smite extends FreedomCommand if (reason != null) { - FUtil.bcastMsg(" Reason: " + reason, ChatColor.RED); + FUtil.bcastMsg(" Reason: " + reason, ChatColor.YELLOW); } // Deop @@ -82,7 +82,7 @@ public class Command_smite extends FreedomCommand if (reason != null) { - player.sendMessage(ChatColor.RED + "You've been smitten. Reason: " + reason); + player.sendMessage(ChatColor.RED + "You've been smitten. Reason: " + ChatColor.YELLOW + reason); } } } From 26c83ff5852f5adbeba0986828bafdbc217d931e Mon Sep 17 00:00:00 2001 From: Ryan Date: Fri, 30 Jun 2017 08:46:31 +0100 Subject: [PATCH 12/13] Corrected player message for /disguisetoggle. Resolves #1872 (#2042) --- .../totalfreedommod/command/Command_disguisetoggle.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/main/java/me/totalfreedom/totalfreedommod/command/Command_disguisetoggle.java b/src/main/java/me/totalfreedom/totalfreedommod/command/Command_disguisetoggle.java index 4eec65f2..eafacaab 100644 --- a/src/main/java/me/totalfreedom/totalfreedommod/command/Command_disguisetoggle.java +++ b/src/main/java/me/totalfreedom/totalfreedommod/command/Command_disguisetoggle.java @@ -22,7 +22,8 @@ public class Command_disguisetoggle extends FreedomCommand return true; } - FUtil.adminAction(sender.getName(), (DisallowedDisguises.disabled ? "Enabling" : "Disabling") + " Disguises", false); + FUtil.adminAction(sender.getName(), (DisallowedDisguises.disabled ? "Enabling" : "Disabling") + " " + + "Disguises", false); if (plugin.ldb.isDisguisesEnabled()) { @@ -34,7 +35,7 @@ public class Command_disguisetoggle extends FreedomCommand plugin.ldb.setDisguisesEnabled(true); } - msg("Enabled " + (DisallowedDisguises.disabled ? "enabled." : "disabled.")); + msg("Disguises are now " + (!DisallowedDisguises.disabled ? "enabled." : "disabled.")); return true; } From 98f0fdb620306d9a108d1625e47c73e7e01a05e2 Mon Sep 17 00:00:00 2001 From: Ryan Date: Fri, 30 Jun 2017 08:47:31 +0100 Subject: [PATCH 13/13] Added a catch for if a player is caged and kicked. Resolves #1789 (#2041) --- .../totalfreedom/totalfreedommod/caging/Cager.java | 13 +++++++++++++ .../totalfreedommod/command/Command_gtfo.java | 1 + 2 files changed, 14 insertions(+) diff --git a/src/main/java/me/totalfreedom/totalfreedommod/caging/Cager.java b/src/main/java/me/totalfreedom/totalfreedommod/caging/Cager.java index 9c50b0ae..4418f426 100644 --- a/src/main/java/me/totalfreedom/totalfreedommod/caging/Cager.java +++ b/src/main/java/me/totalfreedom/totalfreedommod/caging/Cager.java @@ -13,6 +13,7 @@ import org.bukkit.event.block.BlockBreakEvent; import org.bukkit.event.player.PlayerJoinEvent; import org.bukkit.event.player.PlayerMoveEvent; import org.bukkit.event.player.PlayerQuitEvent; +import org.bukkit.event.player.PlayerKickEvent; public class Cager extends FreedomService { @@ -95,6 +96,18 @@ public class Cager extends FreedomService } } + @EventHandler(priority = EventPriority.MONITOR, ignoreCancelled = true) + public void onPlayerKick(PlayerKickEvent event) + { + FPlayer player = plugin.pl.getPlayer(event.getPlayer()); + CageData cage = player.getCageData(); + + if (cage.isCaged()) + { + cage.playerQuit(); + } + } + @EventHandler(priority = EventPriority.MONITOR, ignoreCancelled = true) public void onPlayerJoin(PlayerJoinEvent event) { diff --git a/src/main/java/me/totalfreedom/totalfreedommod/command/Command_gtfo.java b/src/main/java/me/totalfreedom/totalfreedommod/command/Command_gtfo.java index 80a832dd..b8360c36 100644 --- a/src/main/java/me/totalfreedom/totalfreedommod/command/Command_gtfo.java +++ b/src/main/java/me/totalfreedom/totalfreedommod/command/Command_gtfo.java @@ -21,6 +21,7 @@ public class Command_gtfo extends FreedomCommand @Override public boolean run(CommandSender sender, Player playerSender, Command cmd, String commandLabel, String[] args, boolean senderIsConsole) { + if (args.length == 0) { return false;