package net.minecraftforge.cauldron.command; import java.io.File; import java.text.SimpleDateFormat; import java.util.ArrayList; import java.util.Date; import java.util.List; import net.minecraft.server.MinecraftServer; import net.minecraftforge.cauldron.CauldronHooks; import net.minecraftforge.cauldron.configuration.BoolSetting; import net.minecraftforge.cauldron.configuration.IntSetting; import net.minecraftforge.cauldron.configuration.Setting; import org.apache.commons.lang.StringUtils; import org.apache.commons.lang.Validate; import org.apache.commons.lang.math.NumberUtils; import org.bukkit.ChatColor; import org.bukkit.command.Command; import org.bukkit.command.CommandSender; import org.bukkit.util.StringUtil; import com.google.common.collect.ImmutableList; public class CauldronCommand extends Command { private static final List COMMANDS = ImmutableList.of("get", "set", "tick-interval", "save", "reload", "chunks", "heap"); private static final List CHUNK_COMMANDS = ImmutableList.of("print", "dump"); public CauldronCommand() { super("cauldron"); this.description = "Toggle certain Cauldron options"; this.usageMessage = "/cauldron [" + StringUtils.join(COMMANDS, '|') + "]