Commandwarp.java 文件源码

java
阅读 15 收藏 0 点赞 0 评论 0

项目:Essentials 作者:
@Override
protected void run(final CommandSender sender, final String commandLabel, final String[] args) throws Exception
{
    if (args.length < 2 || args[0].matches("[0-9]+"))
    {
        warpList(sender, args);
        throw new NoChargeException();
    }
    IUser otherUser = ess.getUserMap().matchUser(args[1], false);
    if (otherUser == null)
    {
        throw new Exception(_("§4Player not found."));
    }
    otherUser.getTeleport().warp(args[0], null, TeleportCause.COMMAND);
    throw new NoChargeException();

}
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号