Coder Social home page Coder Social logo

highversionqwq's Introduction

HighVersionPVP

A pvp plugin for higher version(1.20+)

本项目使用Apache-2.0 License开源,附加条件:

  • 禁止商用

Usage

使用命令/jointeam Red/Blue <PlayerName>以加入一个队伍

您也可以在命令方块中使用/jointeam Red/Blue @p

至少要有两名玩家才可开始比赛

当比赛开始时,另一名玩家的血条会通过BossBar的方式映射到您的屏幕上

当你打败另一名玩家(或者被打败)的时候,游戏就结束了

如果你认为另一名玩家存在违规行为,请使用指令/checkshenquan

如果你发现游戏结束了,但屏幕上还存在BossBar,请联系管理员,让他执行指令/clearbossbar

如果你不想参加比赛了,请输入指令/leaveteam

您也可以在命令方块中使用/leaveteam @p

当然,如果您强制退出游戏,会被当做陶艺小子公开处刑。

还有,在游戏开始时是不可以进行退出队伍的操作的。

Use command /jointeam Red/Blue <PlayerName> to join a team

Also you can use command block to execute this : /jointeam Red/Blue @p

There must at least two players join each team to start a game

When the game started, the BossBar of another player's health will be shown on your screen.

When you beat the other person, you won the game.

If you think your enemy has something illegal, please use command /checkshenquan to prevent him from illegal.

If you find that even though the game has stopped, the BossBar is still on your screen, please contact Server Operator and tell him to execute command /clearbossbar

If you want to quit your team, please execute command /leaveteam

Also you can use command block to execute this: /leaveteam @p

highversionqwq's People

Contributors

xiaohuihui1022 avatar yom667 avatar

Stargazers

xzystudio avatar  avatar NiuFuyu avatar  avatar

Watchers

xzystudio avatar

highversionqwq's Issues

CheckTaoYi improve readability, add config.yml to adjust "escaped max distance"

Improve Readability

i fix a shit code in CheckTaoYi Command

 public boolean checkDistance(TeamExecutor.Team team, int max, BiConsumer<TeamExecutor.Team,Boolean> success){
        if (team == TeamExecutor.Team.NONE){
            return false;
        } else {
            TeamExecutor.Team enemyTeam = teamExecutor.getEnemyTeam(team);
            int distance = (int) teamExecutor.getPlayer(enemyTeam)
                    .getLocation()
                    .distance(teamExecutor.getStartGameLocation().get(enemyTeam));
            success.accept(enemyTeam,Math.abs(distance) > max);
        }
        return true;
}

the contributer use functional interface BiConsumer<TeamExecutor.Team,Boolean> is bad
YouM is shit coder
i fixed it to improve readability

Configuration

i add config, user can use config.yml to update escaped max distance

please accept my pull requests

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.