Commandjump.java 文件源码

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

项目:Essentials 作者:
@Override
public void run(final IUser user, final String commandLabel, final String[] args) throws Exception
{
    Location loc;
    final Location cloc = user.getPlayer().getLocation();

    try
    {
        loc = LocationUtil.getTarget(user.getPlayer());
        loc.setYaw(cloc.getYaw());
        loc.setPitch(cloc.getPitch());
        loc.setY(loc.getY() + 1);
    }
    catch (NullPointerException ex)
    {
        throw new Exception(_("§4That would hurt your computer's brain."), ex);
    }

    final Trade charge = new Trade(commandName, ess);
    charge.isAffordableFor(user);
    user.getTeleport().teleport(loc, charge, TeleportCause.COMMAND);
    throw new NoChargeException();
}
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号