TotalFreedomMod/src/me/StevenLawson/TotalFreedomMod/Commands/Command_flatlands.java

27 lines
878 B
Java
Raw Normal View History

2011-10-19 00:37:00 +00:00
package me.StevenLawson.TotalFreedomMod.Commands;
import me.StevenLawson.TotalFreedomMod.TFM_Util;
import me.StevenLawson.TotalFreedomMod.TotalFreedomMod;
import org.bukkit.ChatColor;
2011-10-19 00:37:00 +00:00
import org.bukkit.command.Command;
import org.bukkit.command.CommandSender;
import org.bukkit.entity.Player;
@CommandPermissions(level = ADMIN_LEVEL.ALL, source = SOURCE_TYPE_ALLOWED.BOTH, ignore_permissions = true)
2011-10-19 00:37:00 +00:00
public class Command_flatlands extends TFM_Command
{
@Override
public boolean run(CommandSender sender, Player sender_p, Command cmd, String commandLabel, String[] args, boolean senderIsConsole)
{
if (TotalFreedomMod.generateFlatlands)
{
TFM_Util.gotoWorld(sender, "flatlands");
}
else
{
sender.sendMessage(ChatColor.GRAY + "Flatlands is currently disabled.");
}
2011-10-19 00:37:00 +00:00
return true;
}
}