From 6e3fa2d6dde97c76786620df3c3656422e82b18e Mon Sep 17 00:00:00 2001 From: Lemon Date: Tue, 22 May 2018 00:44:18 +0500 Subject: [PATCH] let's not break the license shall we update wasn't used anyway --- .../command/Command_totalfreedommod.java | 27 +------------------ 1 file changed, 1 insertion(+), 26 deletions(-) diff --git a/src/main/java/me/totalfreedom/totalfreedommod/command/Command_totalfreedommod.java b/src/main/java/me/totalfreedom/totalfreedommod/command/Command_totalfreedommod.java index e2cdb37f..37cc8f60 100644 --- a/src/main/java/me/totalfreedom/totalfreedommod/command/Command_totalfreedommod.java +++ b/src/main/java/me/totalfreedom/totalfreedommod/command/Command_totalfreedommod.java @@ -15,7 +15,7 @@ import org.bukkit.entity.Player; * See https://github.com/TotalFreedom/License - This file may not be edited or removed. */ @CommandPermissions(level = Rank.NON_OP, source = SourceType.BOTH) -@CommandParameters(description = "Shows information about TotalFreedomMod or reloads it", usage = "/ [reload | update]", aliases = "tfm") +@CommandParameters(description = "Shows information about TotalFreedomMod or reloads it", usage = "/ [reload]", aliases = "tfm") public class Command_totalfreedommod extends FreedomCommand { @@ -44,31 +44,6 @@ public class Command_totalfreedommod extends FreedomCommand FLog.info(message); return true; } - else if (args[0].equals("update")) - { - if (plugin.al.isAdmin(sender) && FUtil.DEVELOPERS.contains(sender.getName())) - { - if (plugin.ud.updateAvailable) - { - FUtil.adminAction(sender.getName(), "Updating TotalFreedomMod", false); - plugin.ud.update(); - } - else - { - msg("TFM is already up to date!"); - } - } - else - { - noPerms(); - } - return true; - } - else - { - return false; - } - } TotalFreedomMod.BuildProperties build = TotalFreedomMod.build; msg("TotalFreedomMod for 'Total Freedom', the original all-op server.", ChatColor.GOLD);