1
0
mirror of https://e.coding.net/circlecloud/SimpleEssential.git synced 2024-11-17 01:18:47 +00:00

fix world command and add warp warps command...

Signed-off-by: 502647092 <jtb1@163.com>
This commit is contained in:
502647092 2015-10-21 20:07:52 +08:00
parent e56e6a3134
commit c2b6f00bc2
5 changed files with 113 additions and 0 deletions

View File

@ -0,0 +1,36 @@
/**
*
*/
package cn.citycraft.SimpleEssential.command;
import org.bukkit.command.Command;
import org.bukkit.command.CommandException;
import org.bukkit.command.CommandSender;
import cn.citycraft.PluginHelper.commands.BaseCommand;
import cn.citycraft.SimpleEssential.SimpleEssential;
/**
* 传送到顶部命令
*
* @author 蒋天蓓
* 2015年8月12日下午2:04:05
*
*/
public class CommandBase extends BaseCommand {
SimpleEssential plugin;
/**
* @param name
*/
public CommandBase(final SimpleEssential main) {
super("warps");
this.plugin = main;
setDescription("查看所有地表");
}
@Override
public void execute(final CommandSender sender, final Command command, final String label, final String[] args) throws CommandException {
sender.sendMessage("§c当前功能暂未开发...");
}
}

View File

@ -0,0 +1,38 @@
/**
*
*/
package cn.citycraft.SimpleEssential.command;
import org.bukkit.command.Command;
import org.bukkit.command.CommandException;
import org.bukkit.command.CommandSender;
import cn.citycraft.PluginHelper.commands.BaseCommand;
import cn.citycraft.SimpleEssential.SimpleEssential;
/**
* 传送到顶部命令
*
* @author 蒋天蓓
* 2015年8月12日下午2:04:05
*
*/
public class CommandWarp extends BaseCommand {
SimpleEssential plugin;
/**
* @param name
*/
public CommandWarp(final SimpleEssential main) {
super("warp");
this.plugin = main;
setMinimumArguments(1);
setPermission("se.warp");
setDescription("传送至地标");
}
@Override
public void execute(final CommandSender sender, final Command command, final String label, final String[] args) throws CommandException {
sender.sendMessage("§c当前功能暂未开发...");
}
}

View File

@ -0,0 +1,36 @@
/**
*
*/
package cn.citycraft.SimpleEssential.command;
import org.bukkit.command.Command;
import org.bukkit.command.CommandException;
import org.bukkit.command.CommandSender;
import cn.citycraft.PluginHelper.commands.BaseCommand;
import cn.citycraft.SimpleEssential.SimpleEssential;
/**
* 传送到顶部命令
*
* @author 蒋天蓓
* 2015年8月12日下午2:04:05
*
*/
public class CommandWarps extends BaseCommand {
SimpleEssential plugin;
/**
* @param name
*/
public CommandWarps(final SimpleEssential main) {
super("warps");
this.plugin = main;
setDescription("查看所有地表");
}
@Override
public void execute(final CommandSender sender, final Command command, final String label, final String[] args) throws CommandException {
sender.sendMessage("§c当前功能暂未开发...");
}
}

View File

@ -49,6 +49,7 @@ public class CommandWorld extends BaseCommand {
}
sender.sendMessage(I18n.p("World.info", wd.getName(), wd.getEnvironment().toString(), wd.getLoadedChunks().length, wd.getEntities().size(), tileEntities, wd.getPlayers().size()));
}
break;
case 1:
final World wd = Bukkit.getWorld(args[0]);
if (wd != null) {
@ -60,6 +61,7 @@ public class CommandWorld extends BaseCommand {
} else {
sender.sendMessage(I18n.p("World.unknow", args[1]));
}
break;
}
}
}

View File

@ -0,0 +1 @@
warps: