20 Commits

Author SHA1 Message Date
00c3c3d653 .gitea/workflows/test-release.yml aktualisiert 2024-12-27 03:28:54 +01:00
79a41180bc .gitea/workflows/test-release.yml aktualisiert 2024-12-27 03:27:42 +01:00
aa023d46bb .gitea/workflows/test.md aktualisiert 2024-12-27 03:24:36 +01:00
2521e32411 .gitea/workflows/test.md hinzugefügt 2024-12-27 03:17:23 +01:00
d786e9de94 .gitea/workflows/test-release.yml aktualisiert 2024-12-27 03:15:23 +01:00
b5566c4d4e .gitea/workflows/test-release.yml aktualisiert 2024-12-27 03:14:31 +01:00
807150d83e .gitea/workflows/test-release.yml aktualisiert 2024-12-27 03:13:29 +01:00
3315017b82 .gitea/workflows/test-release.yml aktualisiert 2024-12-27 03:11:51 +01:00
b0accb96cc .gitea/workflows/test-release.yml aktualisiert 2024-12-27 03:10:51 +01:00
1e4bbe5d55 .gitea/workflows/test-release.yml aktualisiert 2024-12-27 03:09:50 +01:00
b05e054bd7 Merge branch 'Testing' into main 2024-12-27 03:07:13 +01:00
2ef476372f .gitea/workflows/test-release.yml aktualisiert 2024-12-27 03:07:00 +01:00
385886c7f5 .gitea/workflows/release.yml.off gelöscht 2024-12-27 03:06:21 +01:00
ef5c81d7cc Merge pull request 'testing workflow' (#43) from main into Testing
Reviewed-on: #43
2024-12-27 03:05:54 +01:00
5628dfb459 Merge pull request 'Testing workflow' (#42) from Testing into main
Reviewed-on: #42
2024-12-27 03:05:04 +01:00
dbbb60280b .gitea/workflows/test-release.yml hinzugefügt 2024-12-27 03:03:59 +01:00
750042d7a9 .gitea/workflows/release.yml aktualisiert 2024-12-27 03:02:42 +01:00
1bac43b3fe changelog.txt hinzugefügt 2024-12-27 02:42:16 +01:00
02856bc49a Merge pull request 'fixed bug that prevented plants from resetting age' (#32) from config_support into Testing
Reviewed-on: #32
2023-10-07 03:28:45 +02:00
d9cfdb218e fixed bug that prevented plants from resetting age 2023-10-07 03:26:54 +02:00
7 changed files with 74 additions and 70 deletions

View File

@ -3,7 +3,7 @@ name: Build and Release Minecraft Plugin
on:
push:
branches:
- main
- release
jobs:
build:

View File

@ -1,65 +0,0 @@
name: Build and Release Minecraft Plugin
on:
push:
branches:
- Release
jobs:
build:
steps:
- name: Checkout Repository
uses: actions/checkout@v2
- name: Set up Java 17
uses: actions/setup-java@v2
with:
java-version: '17'
distribution: 'adopt' # Verwenden Sie 'adopt' für Java 17
- name: Update Apt
run: apt update -y
- name: Update CA certificates
run: apt-get install --reinstall ca-certificates -y
- name: Install Maven
run: apt install maven -y
- name: Build with Maven
run: mvn clean install
- name: Upload Artifact
uses: actions/upload-artifact@v3
with:
name: BetterMinecraft-stable.jar
path: target/BetterMinecraft-stable.jar
steps:
- name: Checkout Repository
uses: actions/checkout@v2
- name: Get letzte Release-Version
id: get_version
run: echo "::set-output name=version::$(git describe --tags --abbrev=0 || echo '0.0.0')"
- name: Incrementiere Version
id: increment_version
run: |
IFS='.' read -ra VERSION <<< "${{ steps.get_version.outputs.version }}"
MAJOR="${VERSION[0]}"
MINOR="${VERSION[1]}"
PATCH="${VERSION[2]}"
echo "::set-output name=major::$(($MAJOR + 1))"
echo "::set-output name=minor::$(($MINOR + 1))"
echo "::set-output name=patch::$(($PATCH + 1))"
- name: Create Release
id: create_release
uses: softprops/action-gh-release@v1
with:
files: |
target/BetterMinecraft-stable.jar
tag_name: ${{ steps.increment_version.outputs.major }}.${{ steps.increment_version.outputs.minor }}.${{ steps.increment_version.outputs.patch }}
release_name: Release ${{ steps.increment_version.outputs.major }}.${{ steps.increment_version.outputs.minor }}.${{ steps.increment_version.outputs.patch }}
draft: false
prerelease: false

View File

@ -0,0 +1,65 @@
name: Build and Release Minecraft Plugin
on:
push:
branches:
- testing
jobs:
build-and-release:
steps:
# Repository auschecken
- name: Checkout Repository
uses: actions/checkout@v3
# Java 17 installieren
- name: Set up Java 17
uses: actions/setup-java@v3
with:
java-version: '17'
distribution: 'temurin'
# Maven installieren und vorbereiten
- name: Install Maven
run: sudo apt-get update && sudo apt-get install -y maven
# Projekt bauen
- name: Build with Maven
run: mvn clean package
# Artefakt hochladen
- name: Upload Artifact
uses: actions/upload-artifact@v3
with:
name: BetterMinecraft-stable.jar
path: target/BetterMinecraft-stable.jar
# Letzte Release-Version abrufen
- name: Get last release version
id: get_version
run: |
echo "VERSION=$(git describe --tags --abbrev=0 || echo '0.0.0')" >> $GITHUB_ENV
# Version inkrementieren
- name: Increment version
id: increment_version
run: |
IFS='.' read -ra VERSION <<< "$VERSION"
MAJOR=${VERSION[0]:-0}
MINOR=${VERSION[1]:-0}
PATCH=${VERSION[2]:-0}
PATCH=$((PATCH + 1))
NEW_VERSION="$MAJOR.$MINOR.$PATCH"
echo "NEW_VERSION=$NEW_VERSION" >> $GITHUB_ENV
# Release erstellen
- name: Create Release
uses: softprops/action-gh-release@v1
with:
files: target/BetterMinecraft-stable.jar
tag_name: ${{ env.NEW_VERSION }}
release_name: Release ${{ env.NEW_VERSION }}
draft: false
prerelease: true

1
.gitea/workflows/test.md Normal file
View File

@ -0,0 +1 @@
testtest

2
changelog.txt Normal file
View File

@ -0,0 +1,2 @@
+ added system type changelog
+ added custom type changelog

View File

@ -36,9 +36,12 @@ public class replanting {
target.getLocation().getWorld().dropItem(loc, new ItemStack(item[0]));
}
for(int i = 0; i < amount[1]; i++) {
if (amount.length > 1) {
for (int i = 0; i < amount[1]; i++) {
target.getLocation().getWorld().dropItem(loc, new ItemStack(item[1]));
}
}
crop.setAge(0);
target.setBlockData(crop);
}

View File

@ -1,6 +1,5 @@
package de.steev.bm.Listener;
import de.steev.bm.BetterMinecraft;
import de.steev.bm.Manager.GameManager;
import org.bukkit.Bukkit;
import org.bukkit.World;
@ -49,5 +48,4 @@ public class BedListener implements Listener {
this.gameManager.getPlugin().playerInBed = 0;
}
}
}