Skip to content

Commit

Permalink
Merge pull request #79 from MC-Machinations/dev/0.3.0
Browse files Browse the repository at this point in the history
0.4.0
  • Loading branch information
Machine-Maker authored Sep 26, 2023
2 parents 1b74782 + 8799edf commit 5464bdd
Show file tree
Hide file tree
Showing 537 changed files with 34,837 additions and 6,037 deletions.
474 changes: 474 additions & 0 deletions .editorconfig

Large diffs are not rendered by default.

7 changes: 7 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
* text=auto

*.sh text eol=lf
gradlew text eol=lf
*.bat text eol=crlf

*.jar binary
2 changes: 1 addition & 1 deletion .github/FUNDING.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# These are supported funding model platforms

github: # Replace with up to 4 GitHub Sponsors-enabled usernames e.g., [user1, user2]
github: [Machine-Maker]
patreon: Machine_Maker
open_collective: # Replace with a single Open Collective username
ko_fi: # Replace with a single Ko-fi username
Expand Down
68 changes: 68 additions & 0 deletions .github/ISSUE_TEMPLATE/bug_report.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
name: Bug Report
description: Report an issue with plugin behavior
labels: [ "status: unverified", "type: bug" ]
body:
- type: textarea
attributes:
label: Expected behavior
description: What did you expected to happen?
validations:
required: true

- type: textarea
attributes:
label: Observed/Actual behavior
description: What did actually see?
validations:
required: true

- type: textarea
attributes:
label: Steps/models to reproduce
description: This may include a build schematic, a video, or detailed instructions to help reconstruct the issue.
validations:
required: true

- type: textarea
attributes:
label: Plugin and Datapack List
description: |
All plugins and datapacks running on your server.
To list plugins, run `/plugins`. For datapacks, run `/datapack list enabled`.
validations:
required: true

- type: textarea
attributes:
label: Server Version Info
description: |
Fetch your server version with `/version`
and **paste** the full, unmodified output here.
"latest" is **not** a version.
validations:
required: true

- type: input
attributes:
label: Plugin Version
description: |
Fetch the plugin version with `/vt version`
(if that command doesn't exist, you are running an outdated version and should update)
validations:
required: true

- type: textarea
attributes:
label: Other
description: |
Please include other helpful information below.
The more information we receive, the quicker and more effective we can be at finding the solution to the issue.
validations:
required: false

- type: markdown
attributes:
value: |
Before submitting this issue, please ensure the following:
1. You are running the latest version of PaperTweaks from [our downloads page](https://github.com/MC-Machinations/VanillaTweaks/releases).
2. You searched for and ensured there isn't already an open issue regarding this.
5 changes: 5 additions & 0 deletions .github/ISSUE_TEMPLATE/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
blank_issues_enabled: false
contact_links:
- name: PaperTweaks Discord
url: https://discord.gg/Np6Pcb78rr
about: If you are having minor issues, come as us on our Discord server!
39 changes: 39 additions & 0 deletions .github/ISSUE_TEMPLATE/feature_request.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: Feature Request
description: Suggest an idea for PaperTweaks
labels:
- "type: feature"
- "status: unverified"
body:
- type: textarea
attributes:
label: Is your feature request related to a problem?
description: Please give some context for this request. Why do you want it added?
validations:
required: true

- type: textarea
attributes:
label: Describe the solution you'd like
description: A clear and conside description of what you want.
validations:
required: true

- type: textarea
attributes:
label: Describe alternatives you've considered
description: List any alternatives you might have tried to get the functionality you want.
validations:
required: true

- type: textarea
attributes:
label: Other
description: Any other context of screenshots about the feature request.
validations:
required: false

- type: markdown
attributes:
value: |
Before submitting this feature request please ensure the following:
* You searched for and ensured there isn't already any open feature request regarding this.
48 changes: 48 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
name: ci

on:
push:
branches:
- master
- dev/*

concurrency:
group: build-${{ github.sha }}

jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3

- name: Setup Java JDK
uses: actions/setup-java@v3
with:
distribution: temurin
java-version: 17

- name: Setup Gradle
uses: gradle/gradle-build-action@v2

- name: Gradle Wrapper Validation
uses: gradle/wrapper-validation-action@v1

- name: Build artifacts
run: ./gradlew build --no-daemon --stacktrace

- name: Copy artifacts before uploading
run: cp build/libs/PaperTweaks-*-all.jar ./PaperTweaks.jar

- name: Generate SHA-256 hash
run: sha256sum PaperTweaks.jar > PaperTweaks.jar.sha256


- name: Upload artifacts
uses: actions/upload-artifact@v3
with:
name: PaperTweaks
path: |
PaperTweaks.jar
PaperTweaks.jar.sha256
LICENSE
31 changes: 31 additions & 0 deletions .github/workflows/pr.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Build PR

on:
pull_request:

concurrency:
group: pr-${{ github.base_ref }}-${{ github.head_ref }}
cancel-in-progress: true

jobs:
build:
if: github.event_name != 'pull_request' || github.repository != github.event.pull_request.head.repo.full_name
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3

- name: Setup Java JDK
uses: actions/setup-java@v3
with:
distribution: temurin
java-version: 17

- name: Setup Gradle
uses: gradle/gradle-build-action@v2

- name: Gradle Wrapper Validation
uses: gradle/wrapper-validation-action@v1

- name: Build artifacts
run: ./gradlew build --no-daemon --stacktrace
37 changes: 37 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: Release

on:
push:
tags:
- "v*"

concurrency:
group: build-${{ github.sha }}

jobs:
create-release:
runs-on: ubuntu-latest
steps:
- name: Download previous build artifact
uses: dawidd6/action-download-artifact@v2
with:
workflow: ci.yml
commit: ${{ github.sha }}
event: push
name: PaperTweaks

- name: Parse tag
id: vars
run: echo ::set-output name=tag::${GITHUB_REF#refs/*/}

- name: Create release and changelog
uses: MC-Machinations/[email protected]
with:
token: ${{ secrets.GITHUB_TOKEN }}
title: Paper Tweaks ${{ steps.vars.outputs.tag }}
pre-release: ${{ contains(steps.vars.outputs.tag, '-beta') || contains(steps.vars.outputs.tag, '-dev') }}
skip-prereleases: true
files: |
PaperTweaks.jar
PaperTweaks.jar.sha256
LICENSE
20 changes: 20 additions & 0 deletions .github/workflows/semantic-check.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: Semantic PR Validation

on:
pull_request_target:
types:
- opened
- edited
- synchronize

jobs:
check:
runs-on: ubuntu-latest
steps:
- name: Validate PR title
uses: amannn/action-semantic-pull-request@v3
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
requireScope: false
validateSingleCommit: true
14 changes: 13 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,16 @@
.idea
.gradle
*.iml
target
**/build
venv

# jdtls
**/bin
**/.classpath
**/.project
**/.settings

.python-version

### Run Paper ###
run/
17 changes: 17 additions & 0 deletions .spotless/HEADER
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
GNU General Public License v3

PaperTweaks, a performant replacement for the VanillaTweaks datapacks.

Copyright (C) $YEAR $name

This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, version 3.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program. If not, see <https://www.gnu.org/licenses/>.
19 changes: 19 additions & 0 deletions .spotless/HEADER_misc
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
/*
* GNU General Public License v3
*
* PaperTweaks, a performant replacement for the VanillaTweaks datapacks.
*
* Copyright (C) $YEAR Machine_Maker
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, version 3.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
15 changes: 13 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,19 @@
# VanillaTweaks
# PaperTweaks

![GitHub Workflow Status](https://img.shields.io/github/actions/workflow/status/MC-Machinations/VanillaTweaks/ci.yml?style=for-the-badge)
[![GitHub release (latest SemVer)](https://img.shields.io/github/v/release/MC-Machinations/VanillaTweaks?color=8f52bf&sort=semver&style=for-the-badge)](https://github.com/MC-Machinations/VanillaTweaks/releases)
[![GitHub release (latest by date including pre-releases)](https://img.shields.io/github/v/release/MC-Machinations/VanillaTweaks?color=8c07f5&include_prereleases&label=beta&style=for-the-badge)](https://github.com/MC-Machinations/VanillaTweaks/releases)

[![Discord](https://img.shields.io/discord/723709494345072701?color=%235865F2&logo=discord&style=for-the-badge)](https://discord.gg/Np6Pcb78rr)
![GitHub all releases](https://img.shields.io/github/downloads/MC-Machinations/VanillaTweaks/total?color=orange&style=for-the-badge)
![GitHub Sponsors](https://img.shields.io/github/sponsors/Machine-Maker?color=bf5252&style=for-the-badge&logo=githubsponsors)
[![Wiki](https://img.shields.io/badge/wiki-v0.2.x-c73636?logo=gitbook&style=for-the-badge)](https://vanillatweaks.machinemaker.me/)

![bStats Servers](https://img.shields.io/bstats/servers/8141?color=f5e407&style=for-the-badge)

A better-performance replacement for the popular VanillaTweaks datapack collection.

```
Credits:
Vanilla Tweaks by Xisumavoid: https://www.xisumavoid.com/vanillatweaks
Vanilla Tweaks: https://vanillatweaks.net/
```
Loading

0 comments on commit 5464bdd

Please sign in to comment.