File tree Expand file tree Collapse file tree
java/com/theo546/randomdrop Expand file tree Collapse file tree Original file line number Diff line number Diff line change 55 branches :
66 - main
77 - master
8+ - dev
89
910jobs :
1011 build :
2021 run : |
2122 VERSION=$(awk -F\" '/^version:/ {print $2}' RandomDrop/src/main/resources/plugin.yml)
2223 echo "version=$VERSION" >> "$GITHUB_OUTPUT"
24+ - id : commit
25+ run : echo "short=$(git rev-parse --short HEAD)" >> "$GITHUB_OUTPUT"
2326 - name : Delete existing release
2427 env :
2528 GH_TOKEN : ${{ secrets.GITHUB_TOKEN }}
@@ -31,11 +34,23 @@ jobs:
3134 fi
3235 - name : Build
3336 run : mvn -B -f RandomDrop/pom.xml package
37+ - id : prepare
38+ run : |
39+ VERSION=${{ steps.version.outputs.version }}
40+ COMMIT=${{ steps.commit.outputs.short }}
41+ if [ "${{ github.ref }}" = "refs/heads/dev" ]; then
42+ NAME="RandomDrop-${VERSION}-${COMMIT}.jar"
43+ else
44+ NAME="RandomDrop-${VERSION}.jar"
45+ fi
46+ mv RandomDrop/target/osef.jar "$NAME"
47+ echo "file=$NAME" >> "$GITHUB_OUTPUT"
3448 - name : Release
3549 uses : softprops/action-gh-release@v1
3650 with :
3751 tag_name : ${{ steps.version.outputs.version }}
3852 name : RandomDrop ${{ steps.version.outputs.version }}
39- files : RandomDrop/target/*.jar
53+ files : ${{ steps.prepare.outputs.file }}
54+ prerelease : ${{ github.ref == 'refs/heads/dev' }}
4055 env :
4156 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
Original file line number Diff line number Diff line change 11RandomDrop License
22
3- Copyright (c) 2025 theo546 - github.com/theo546
3+ Copyright (c) theo546 - github.com/theo546
44
55Permission is granted to use this plugin free of charge under the following conditions:
66- The plugin must not be used to generate any form of currency, whether virtual or real.
Original file line number Diff line number Diff line change 44
55 <groupId >com.theo546</groupId >
66 <artifactId >RandomDrop</artifactId >
7- <version >1 .0.6 </version >
7+ <version >0 .0.0 </version >
88 <packaging >jar</packaging >
99
1010 <name >RandomDrop</name >
2626 </dependencies >
2727
2828 <build >
29+ <finalName >osef</finalName >
2930 <plugins >
3031 <plugin >
3132 <groupId >org.apache.maven.plugins</groupId >
Original file line number Diff line number Diff line change 1- // RandomDrop License | Copyright 2025 theo546 - github.com/theo546
1+ // RandomDrop License | Copyright theo546 - github.com/theo546
22
33package com .theo546 .randomdrop ;
44
Original file line number Diff line number Diff line change 1- // RandomDrop License | Copyright 2025 theo546 - github.com/theo546
1+ // RandomDrop License | Copyright theo546 - github.com/theo546
22package com .theo546 .randomdrop ;
33
44import java .util .ArrayList ;
Original file line number Diff line number Diff line change @@ -3,5 +3,5 @@ name: RandomDrop
33version : " 1.0.6"
44api-version : 1.21
55author : theo546
6- description : A plugin to randomize the items you should normally get !
6+ description : A Paper plugin to randomize the Minecraft loot table !
77
You can’t perform that action at this time.
0 commit comments