Skip to content

Commit

Permalink
Merge pull request #97 from josemmo/develop
Browse files Browse the repository at this point in the history
v1.2.11
  • Loading branch information
josemmo authored Jun 17, 2023
2 parents 494e18b + 178c464 commit d421ff2
Show file tree
Hide file tree
Showing 6 changed files with 118 additions and 107 deletions.
32 changes: 14 additions & 18 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,12 @@ jobs:
test:
runs-on: ubuntu-latest
timeout-minutes: 8
continue-on-error: ${{ matrix.version == '1.19.4' }}
continue-on-error: ${{ matrix.version == '1.20.1' }}
strategy:
fail-fast: false
matrix:
flavor: ['bukkit', 'spigot', 'paper', 'purpur']
version: ['1.19.4', '1.18.2', '1.17.1', '1.16.5']
version: ['1.20.1', '1.19.4', '1.18.2', '1.17.1', '1.16.5']
steps:
# Download code from repository
- name: Checkout code
Expand Down Expand Up @@ -39,7 +39,7 @@ jobs:
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: '17'
node-version: '19'

# Setup automata
- name: Setup automata
Expand Down Expand Up @@ -67,24 +67,18 @@ jobs:
wget -nv "$url" -O server.jar
java -jar server.jar || true
sed -i 's/eula=false/eula=true/g' eula.txt
echo "online-mode=false" >> server.properties
echo "enable-rcon=true" >> server.properties
echo "rcon.password=rcon" >> server.properties
echo "allow-nether=false" >> server.properties
echo "allow-end=false" >> server.properties
echo 'online-mode=false' >> server.properties
echo 'enable-rcon=true' >> server.properties
echo 'rcon.password=rcon' >> server.properties
echo 'allow-nether=false' >> server.properties
echo 'allow-end=false' >> server.properties
echo 'generate-structures=false' >> server.properties
echo "level-type=flat" >> server.properties
echo 'level-type=flat' >> server.properties
# Install dependencies
- name: Install plugin dependencies
env:
VERSION: ${{ matrix.version }}
run: |
if [ $VERSION == "1.19.4" ]; then
url="https://ci.dmulloy2.net/job/ProtocolLib/lastSuccessfulBuild/artifact/build/libs/ProtocolLib.jar"
else
url="https://github.com/dmulloy2/ProtocolLib/releases/download/4.8.0/ProtocolLib.jar"
fi
url="https://github.com/dmulloy2/ProtocolLib/releases/download/5.0.0/ProtocolLib.jar"
mkdir -p ./server/plugins/ProtocolLib
wget -q "$url" -O ./server/plugins/ProtocolLib.jar
echo -e "global:\n auto updater:\n notify: false\n download: false" > ./server/plugins/ProtocolLib/config.yml
Expand All @@ -102,10 +96,12 @@ jobs:
# Test plugin
- name: Run plugin in server
working-directory: ./server
env:
FLAVOR: ${{ matrix.flavor }}
run: |
(cd ../automata && npm run start) &
timeout -s SIGINT -k 110s 90s java -DIReallyKnowWhatIAmDoingISwear -jar server.jar nogui | tee server.log || true
if ! grep -Fq '[YamipaPlugin] Loading YamipaPlugin' server.log; then
if ! grep -Fq '[YamipaPlugin] ' server.log; then
echo "Plugin did not load"
exit 1
fi
Expand All @@ -129,7 +125,7 @@ jobs:
echo "Plugin did not remove the fake image"
exit 1
fi
if grep -iFq 'exception' server.log; then
if [ "$FLAVOR" != "bukkit" ] && grep -iFq 'exception' server.log; then
echo "Server threw an exception"
exit 1
fi
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,7 @@ Download the JAR file for the [latest release](https://github.com/josemmo/yamipa
Before installing Yamipa make sure you meet the following requirements:

- CraftBukkit, Spigot or PaperMC 1.16 or higher
- [ProtocolLib](https://www.spigotmc.org/resources/protocollib.1997/) v4.8.0 or higher
(latest [dev build](https://ci.dmulloy2.net/job/ProtocolLib/lastSuccessfulBuild/) for 1.19.4)
- [ProtocolLib](https://www.spigotmc.org/resources/protocollib.1997/) v5.0.0 or higher

Here are the Minecraft distributions where Yamipa should be able to run:
| Minecraft version | CraftBukkit | Spigot | PaperMC |
Expand All @@ -35,6 +34,7 @@ Here are the Minecraft distributions where Yamipa should be able to run:
| 1.17 & 1.17.1 ||||
| 1.18 & 1.18.x ||||
| 1.19 & 1.19.x ||||
| 1.20 & 1.20.1 ||||

## Configuration
Yamipa is ready-to-go right out of the box. By default, it creates the following files and directories under the
Expand Down Expand Up @@ -96,16 +96,16 @@ This plugin adds the following commands:
`/image clear 0 0 world 9999999 00000000-0000-0000-0000-000000000000`

## Permissions
If you want more granular control over the players who can use a particular set of commands, permissions are the way to go!
If you want more granular control over the features exposed to players, permissions are the way to go!

Yamipa defines the following permissions:

| Command | Default | Description |
| Permission | Default | Description |
|:----------------------------|:-----------:|:----------------------------------------------------------------|
| `yamipa.command.clear` | OPs | To use the `/image clear` command |
| `yamipa.command.describe` | OPs | To use the `/image describe` command |
| `yamipa.command.download` | OPs | To use the `/image download` command |
| `yamipa.command.give` | OPs | To use the `/image give` download |
| `yamipa.command.give` | OPs | To use the `/image give` command |
| `yamipa.command.list` | OPs | To use the `/image list` command |
| `yamipa.command.place` | OPs | To use the `/image place` command |
| `yamipa.command.remove` | OPs | To use the `/image remove` command |
Expand Down
Loading

0 comments on commit d421ff2

Please sign in to comment.