let's not break the license shall we

update wasn't used anyway
This commit is contained in:
Lemon 2018-05-22 00:44:18 +05:00 committed by GitHub
parent 94b7e138d7
commit 6e3fa2d6dd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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 = "/<command> [reload | update]", aliases = "tfm")
@CommandParameters(description = "Shows information about TotalFreedomMod or reloads it", usage = "/<command> [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);