mirror of
https://e.coding.net/circlecloud/SimpleEssential.git
synced 2025-01-06 12:18:56 +00:00
fix world command and add warp warps command...
Signed-off-by: 502647092 <jtb1@163.com>
This commit is contained in:
parent
e56e6a3134
commit
c2b6f00bc2
@ -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当前功能暂未开发...");
|
||||||
|
}
|
||||||
|
}
|
@ -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当前功能暂未开发...");
|
||||||
|
}
|
||||||
|
}
|
@ -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当前功能暂未开发...");
|
||||||
|
}
|
||||||
|
}
|
@ -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()));
|
sender.sendMessage(I18n.p("World.info", wd.getName(), wd.getEnvironment().toString(), wd.getLoadedChunks().length, wd.getEntities().size(), tileEntities, wd.getPlayers().size()));
|
||||||
}
|
}
|
||||||
|
break;
|
||||||
case 1:
|
case 1:
|
||||||
final World wd = Bukkit.getWorld(args[0]);
|
final World wd = Bukkit.getWorld(args[0]);
|
||||||
if (wd != null) {
|
if (wd != null) {
|
||||||
@ -60,6 +61,7 @@ public class CommandWorld extends BaseCommand {
|
|||||||
} else {
|
} else {
|
||||||
sender.sendMessage(I18n.p("World.unknow", args[1]));
|
sender.sendMessage(I18n.p("World.unknow", args[1]));
|
||||||
}
|
}
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
1
src/main/resources/warps.yml
Normal file
1
src/main/resources/warps.yml
Normal file
@ -0,0 +1 @@
|
|||||||
|
warps:
|
Loading…
Reference in New Issue
Block a user