mirror of
https://github.com/AtlasMediaGroup/TotalFreedomMod.git
synced 2024-11-27 01:05:38 +00:00
let's not break the license shall we
update wasn't used anyway
This commit is contained in:
parent
94b7e138d7
commit
6e3fa2d6dd
@ -15,7 +15,7 @@ import org.bukkit.entity.Player;
|
|||||||
* See https://github.com/TotalFreedom/License - This file may not be edited or removed.
|
* See https://github.com/TotalFreedom/License - This file may not be edited or removed.
|
||||||
*/
|
*/
|
||||||
@CommandPermissions(level = Rank.NON_OP, source = SourceType.BOTH)
|
@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
|
public class Command_totalfreedommod extends FreedomCommand
|
||||||
{
|
{
|
||||||
|
|
||||||
@ -44,31 +44,6 @@ public class Command_totalfreedommod extends FreedomCommand
|
|||||||
FLog.info(message);
|
FLog.info(message);
|
||||||
return true;
|
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;
|
TotalFreedomMod.BuildProperties build = TotalFreedomMod.build;
|
||||||
msg("TotalFreedomMod for 'Total Freedom', the original all-op server.", ChatColor.GOLD);
|
msg("TotalFreedomMod for 'Total Freedom', the original all-op server.", ChatColor.GOLD);
|
||||||
|
Loading…
Reference in New Issue
Block a user