Moved TotalFreedomMod-related information to /tfm

This commit is contained in:
Jerome van der Sar 2013-07-13 22:11:13 +02:00
parent f3087f0dca
commit e56c273457
4 changed files with 30 additions and 8 deletions

View File

@ -1,6 +1,6 @@
#Sat, 13 Jul 2013 12:48:46 +0200
#Sat, 13 Jul 2013 22:09:24 +0200
program.VERSION=2.21
program.BUILDNUM=306
program.BUILDDATE=07/13/2013 12\:48 PM
program.BUILDNUM=309
program.BUILDDATE=07/13/2013 10\:09 PM

View File

@ -1,3 +1,3 @@
#Build Number for ANT. Do not edit!
#Sat Jul 13 12:48:46 CEST 2013
build.number=307
#Sat Jul 13 22:09:24 CEST 2013
build.number=310

View File

@ -40,11 +40,9 @@ public class Command_status extends TFM_Command
@Override
public boolean run(final CommandSender sender, Player sender_p, Command cmd, String commandLabel, String[] args, boolean senderIsConsole)
{
playerMsg(String.format("Total Freedom Mod v%s.%s, built %s.", TotalFreedomMod.pluginVersion, TotalFreedomMod.buildNumber, TotalFreedomMod.buildDate), ChatColor.GOLD);
playerMsg("TotalFreedomMod was created by Madgeek1450 and DarthSalamon.", ChatColor.GOLD);
playerMsg("For information about TotalFreedomMod, try /tfm", ChatColor.GREEN); // Temporary
playerMsg("Server is currently running with 'online-mode=" + (server.getOnlineMode() ? "true" : "false") + "'.", ChatColor.YELLOW);
playerMsg("Loaded worlds:", ChatColor.BLUE);
int i = 0;
for (World world : server.getWorlds())

View File

@ -0,0 +1,24 @@
package me.StevenLawson.TotalFreedomMod.Commands;
import me.StevenLawson.TotalFreedomMod.TotalFreedomMod;
import org.bukkit.ChatColor;
import org.bukkit.command.Command;
import org.bukkit.command.CommandSender;
import org.bukkit.entity.Player;
@CommandPermissions(level = AdminLevel.ALL, source = SourceType.BOTH)
@CommandParameters(description = "Shows information about TotalFreedomMod", usage = "/<command>")
public class Command_tfm extends TFM_Command {
@Override
public boolean run(CommandSender sender, Player sender_p, Command cmd, String commandLabel, String[] args, boolean senderIsConsole)
{
playerMsg("TotalFreedomMod for 'TotalFreedom', the original all-op server.", ChatColor.GOLD);
playerMsg(String.format("Version " + ChatColor.BLUE + "%s.%s" + ChatColor.BLUE + ", built %s.", TotalFreedomMod.pluginVersion, TotalFreedomMod.buildNumber, TotalFreedomMod.buildDate), ChatColor.GOLD);
playerMsg("Created by Madgeek1450 and DarthSalamon.", ChatColor.GOLD);
playerMsg("Visit " + ChatColor.AQUA + "http://totalfreedom.me/" + ChatColor.GREEN + " for more information.", ChatColor.DARK_GREEN);
return true;
}
}