-
Notifications
You must be signed in to change notification settings - Fork 68
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
what could possibly go wrong?
- Loading branch information
Showing
219 changed files
with
8,880 additions
and
7,150 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
name: Maven deploy release | ||
on: | ||
release: | ||
types: | ||
- published | ||
|
||
jobs: | ||
deploy: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Set up Maven settings | ||
uses: actions/setup-java@v1 | ||
with: | ||
java-version: 1.8 | ||
server-id: eredrim | ||
server-username: MAVEN_USERNAME | ||
server-password: MAVEN_PASSWORD | ||
|
||
- name: Deploy the package | ||
run: mvn --batch-mode deploy -DaltDeploymentRepository="eredrim::default::https://repo.eredrim.fr/repository/maven-releases/" | ||
env: | ||
MAVEN_USERNAME: ${{ secrets.MVN_USER }} | ||
MAVEN_PASSWORD: ${{ secrets.MVN_PASSWORD }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
name: Maven deploy snapshot | ||
on: | ||
push: | ||
branches: | ||
- master | ||
|
||
jobs: | ||
deploy: | ||
if: "!contains(github.event.head_commit.message, '[release]') && !contains(github.event.head_commit.message, '[doc]')" | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Set up Maven settings | ||
uses: actions/setup-java@v1 | ||
with: | ||
java-version: 1.8 | ||
server-id: eredrim | ||
server-username: MAVEN_USERNAME | ||
server-password: MAVEN_PASSWORD | ||
|
||
- name: Get project version number | ||
run: | | ||
mvn_version=$(mvn help:evaluate -Dexpression=project.version -q -DforceStdout) | ||
echo "mvn_version=${mvn_version}" >> $GITHUB_ENV | ||
- name: Check if version already exists on repository | ||
run: | | ||
http_code=$(curl -s -o /dev/null -w "%{http_code}" https://repo.eredrim.fr/repository/maven-snapshots/net/slipcor/pvparena/${{ env.mvn_version }}/maven-metadata.xml) | ||
echo "version_http_code=${http_code}" >> $GITHUB_ENV | ||
- name: Calculate build version with metadata | ||
if: ${{ env.version_http_code == 200 }} | ||
run: | | ||
curl https://repo.eredrim.fr/repository/maven-snapshots/net/slipcor/pvparena/${{ env.mvn_version }}/maven-metadata.xml -o metadata.xml | ||
build_number=$(grep -oP '(?<=buildNumber>)[^<]+' "metadata.xml") | ||
echo "build_version=$((build_number + 1))" >> $GITHUB_ENV | ||
- name: Generate a new build version | ||
if: ${{ env.version_http_code != 200 }} | ||
run: echo "build_version=1" >> $GITHUB_ENV | ||
|
||
- name: Deploy the package | ||
run: mvn --batch-mode deploy -DbuildVersion=-b${{ env.build_version }} -DaltDeploymentRepository="eredrim::default::https://repo.eredrim.fr/repository/maven-snapshots/" | ||
env: | ||
MAVEN_USERNAME: ${{ secrets.MVN_USER }} | ||
MAVEN_PASSWORD: ${{ secrets.MVN_PASSWORD }} | ||
|
||
- name: Post discord notification | ||
run: | | ||
commits=`echo "${{ join(github.event.commits.*.message, '\n - ') }}" | tr '\n' ' '` | ||
avatar_url=https://github.githubassets.com/images/modules/logos_page/GitHub-Mark.png | ||
bot_username="Build notification" | ||
payload_json='{ "username": "'$bot_username'", "avatar_url": "'$avatar_url'", "content": "A new dev build of PVP arena is available! Download it by saving the attached file.", "embeds": [{"description": ":spiral_note_pad: **New commits:**\n\n - '$commits'"}] }' | ||
curl -X POST ${{ secrets.DISCORD_WEBHOOK_URL }} -F payload_json="${payload_json}" | ||
curl -X POST ${{ secrets.DISCORD_WEBHOOK_URL }} -F username="${bot_username}" -F avatar_url="${avatar_url}" -F file=@target/pvparena-${{ env.mvn_version }}-b${{ env.build_version }}.jar |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,6 +4,7 @@ | |
|
||
# Maven | ||
target/ | ||
dependency-reduced-pom.xml | ||
|
||
|
||
/bin/ | ||
|
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,71 +1,78 @@ | ||
*Note that `/pvparena` and `/pa` are the same. Furthermore, those commands only work as-is if you have only one arena, OR entered edit mode with an arena if you have more than one arena: | ||
`/pa [arenaname] edit`* | ||
# Command list | ||
|
||
## Command list | ||
Click on a command to get its syntax, usage examples and more information about its working. Commands `/pvparena` and | ||
`/pa` are the same. | ||
|
||
Click on a command to view more information about it. | ||
> 🚩 **Note:** | ||
> You always have to precise your arena name in commands (like `/pa myArena enable`) except for these cases: | ||
> - For global admin commands | ||
> - After you joined an arena | ||
> - When you're editing an arena (see [`/pa edit`](commands/edit.md) command) | ||
> - When you have only one arena | ||
### Global Admin Commands | ||
_(Permission: pvparena.admin)_ | ||
<br> | ||
|
||
## Global Admin Commands | ||
|
||
> ℹ Permission: pvparena.admin | ||
Command | Shorthand | Definition | ||
------------- | ------------- | ------------- | ||
[/pa debug](commands/debug.md) | /pa !d | Debugs nodes | ||
[/pa debug](commands/debug.md) | /pa !d | Debug nodes | ||
[/pa modules](commands/modules.md) | /pa !mi | Manage modules | ||
[/pa reload](commands/reload.md) | /pa !r | Reload arena configs | ||
[/pa install](commands/install.md) | /pa !i | Installs a module | ||
[/pa uninstall](commands/uninstall.md) | /pa !ui | Uninstalls a module | ||
[/pa update](commands/update.md) | /pa !u | Updates a module | ||
|
||
### Arena Administration Commands | ||
## Arena Administration Commands | ||
|
||
_(Permission: pvparena.admin OR ownership AND pvparena.create)_ | ||
> ℹ Permission: pvparena.admin OR both ownership and pvparena.create | ||
Command | Shorthand | Definition | ||
------------- | ------------- | ------------- | ||
[/pa blacklist \(or whitelist\)](commands/blacklist.md) | /pa !bl (!wl) | Manage arena blacklists or whitelists | ||
[/pa check](commands/check.md) | /pa !ch | Checks an arena configuration | ||
[/pa blacklist](commands/blacklist.md) | /pa !bl | Manage arena blacklists | ||
[/pa check](commands/check.md) | /pa !ch | Check an arena configuration | ||
[/pa class](commands/class.md) | /pa !cl | Manage arena classes | ||
[/pa classchest](commands/classchest.md) | /pa !cc | Manage arena class chests | ||
[/pa create](commands/create.md) | /pa !c | Creates an arena | ||
[/pa disable](commands/disable.md) | /pa !dis | Disables an arena. | ||
/pa edit | /pa !e | Toggles editing of an arena | ||
[/pa enable](commands/enable.md) | /pa !en | Enables an arena. | ||
[/pa forcewin](commands/forcewin.md) | /pa !fw | Forces a player/team to win. | ||
[/pa create](commands/create.md) | /pa !c | Create an arena | ||
[/pa disable](commands/disable.md) | /pa !dis | Disable an arena. | ||
[/pa edit](commands/edit.md) | /pa !e | Toggle editing of an arena | ||
[/pa enable](commands/enable.md) | /pa !en | Enable an arena. | ||
[/pa forcewin](commands/forcewin.md) | /pa !fw | Force a player/team to win. | ||
[/pa gamemode](commands/gamemode.md) | /pa !gm | Change the general gamemode of an arena | ||
[/pa goal](commands/goal.md) | /pa !g | Manage arena goals | ||
[/pa playerjoin](commands/playerjoin.md) | /pa !pj | Make a player join | ||
[/pa protection](commands/protection.md) | /pa !p | Manages arena protections | ||
[/pa region](commands/region.md) | /pa !rg | Manages arena regions | ||
[/pa regionclear](commands/regionclear.md) | /pa !rc | Manages arena region clearing exceptions | ||
[/pa regionflags](commands/regionflags.md) | /pa !rf | Manages arena flags | ||
[/pa regiontype](commands/regiontype.md) | /pa !rt | Changes a region type | ||
[/pa regions](commands/regions.md) | /pa !rs | Debugs regions | ^ | ||
[/pa protection](commands/protection.md) | /pa !p | Manage arena protections | ||
[/pa region](commands/region.md) | /pa !rg | Manage arena regions | ||
[/pa regionclear](commands/regionclear.md) | /pa !rc | Manage arena region clearing exceptions | ||
[/pa regionflags](commands/regionflags.md) | /pa !rf | Manage arena flags | ||
[/pa regiontype](commands/regiontype.md) | /pa !rt | Change a region type | ||
[/pa regions](commands/regions.md) | /pa !rs | Debug regions | ||
[/pa reload](commands/reload.md) | /pa !rl | Reload arena configs | ||
[/pa remove](commands/remove.md) | /pa !rm | Removes an arena. | ||
[/pa round](commands/round.md) | /pa !rd | Manages arena rounds | ||
[/pa remove](commands/remove.md) | /pa !rm | Remove an arena. | ||
[/pa round](commands/round.md) | /pa !rd | Manage arena rounds | ||
[/pa set](commands/set.md) | /pa !s | Set an arena config setting | ||
[/pa setowner](commands/setowner.md) | /pa !so | Sets the owner of an arena | ||
[/pa spawn](commands/spawn.md) | /pa !sp | Manage arena spawns | ||
[/pa start](commands/start.md) | /pa !go | Force starts an arena. | ||
[/pa stop](commands/stop.md) | /pa !st | Force stops an arena. | ||
[/pa teams](commands/teams.md) | /pa !ts | Manages arena teams | ||
[/pa teleport](commands/teleport.md) | /pa !tp | Teleports you to an arena spawnpoint | ||
[/pa togglemod \[module\]](commands/togglemod.md) | /pa !tm | Activates/Deactivates module | ||
[/pa teams](commands/teams.md) | /pa !ts | Manage arena teams | ||
[/pa teleport](commands/teleport.md) | /pa !tp | Teleport you to an arena spawnpoint | ||
[/pa togglemod](commands/togglemod.md) | /pa !tm | Enable or disable a module for an arena | ||
[/pa whitelist](commands/whitelist.md) | /pa !wl | Manage arena whitelists | ||
|
||
### Arena Standard Commands | ||
## Arena Standard Commands | ||
|
||
_(Permission: pvparena.user (defaults to true))_ | ||
> ℹ Permission: pvparena.user (defaults to true) | ||
Command | Shorthand | Definition | ||
------------- | ------------- | ------------- | ||
/pa arenaclass | /pa -ac | Changes your class, if allowed (/pa -ac [classname]) | ||
/pa list | none | List available arenas (red: disabled, yellow: edit, green: running) | ||
/pa chat | /pa -c | Sets arena chat mode | ||
/pa info | /pa -i | Displays the active modules of an arena and its settings | ||
/pa join {team} | /pa -j | Joins an arena | ||
[/pa arenaclass](commands/arenaclass.md) | /pa -ac | Change your class, if allowed | ||
/pa chat | /pa -c | Set arena chat mode | ||
/pa info | /pa -i | Display the active modules of an arena and its settings | ||
/pa help | /pa -h | Basic help. Splits into subsections. | ||
[/pa join](commands/join.md) | /pa -j | Join an arena (specifying a team or not) | ||
/pa leave | /pa -l | Leave an arena | ||
/pa ready | /pa -r | Readys you up or lists who is ready | ||
/pa list | none | List available arenas (red: disabled, yellow: edit, green: running) | ||
[/pa ready](commands/ready.md) | /pa -r | Ready you up or list who is ready | ||
/pa spectate | /pa -s | Spectate an arena | ||
[/pa stats](commands/stats.md) | /pa -s | Shows [arena/global] statistics | ||
/pa version | /pa -v | Shows detailed version information | ||
[/pa stats](commands/stats.md) | /pa -s | Show [arena/global] statistics | ||
/pa version | /pa -v | Show detailed version information |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
# Arenaclass command | ||
|
||
## Description | ||
|
||
This command allow players to change their class if it's allowed. It must be typed inside an arena. | ||
|
||
## Usage Examples | ||
|
||
Command | Definition | ||
------------- | ------------- | ||
/pa arenaclass [className] | switch you current arena class | ||
|
||
Example: `/pa -ac assassin` - get the assassin class | ||
|
||
## Details | ||
|
||
You can change you class in two cases : | ||
- Before a match, when you're waiting in lounge | ||
- During a match if `ingameClassSwitch` arena setting is enabled | ||
|
||
> 🚩**Tip:** | ||
> With `classSwitchAfterRespawn` you can delay ingame class switching on next respawn |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.