Skip to content

Commit

Permalink
Merge pull request #1 from SimplyVanilla/feature/release
Browse files Browse the repository at this point in the history
Release
  • Loading branch information
Netherwhal authored Mar 2, 2024
2 parents d3974b2 + f858f36 commit 549c482
Show file tree
Hide file tree
Showing 15 changed files with 797 additions and 20 deletions.
22 changes: 22 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
root = true

[*]
charset = utf-8
end_of_line = lf
trim_trailing_whitespace = true
insert_final_newline = true
indent_size = 2
indent_style = space

[Makefile]
indent_size = 4
indent_style = tab

[*.{java,html}]
indent_size = 4

[build.gradle]
indent_size = 4

[*.md]
trim_trailing_whitespace = false
12 changes: 12 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
version: 2
updates:

- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "daily"

- package-ecosystem: "gradle"
directory: "/"
schedule:
interval: "daily"
30 changes: 30 additions & 0 deletions .github/workflows/build-and-publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Build and Publish

on:
push:
branches:
- main
tags:
- '*'
pull_request:
branches:
- main

env:
TERM: xterm-256color

jobs:
build-and-publish:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Build jar
run: make

- name: Release
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
with:
files: build/libs/*.jar
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# User-specific stuff
.idea/
/.idea/

*.iml
*.ipr
Expand Down
674 changes: 674 additions & 0 deletions LICENSE

Large diffs are not rendered by default.

15 changes: 15 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
SHELL := bash


.PHONY: all
all: build


.PHONY: build
build:
./gradlew build


.PHONY: wrapper
wrapper:
./gradlew wrapper
7 changes: 7 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# InvSet

[![Build and Publish](https://github.com/SimplyVanilla/InvSet/actions/workflows/build-and-publish.yml/badge.svg)](https://github.com/SimplyVanilla/InvSet/actions/workflows/build-and-publish.yml)
[![Quality Gate Status](https://sonarcloud.io/api/project_badges/measure?project=SimplyVanilla_InvSet&metric=alert_status)](https://sonarcloud.io/summary/new_code?id=SimplyVanilla_InvSet)
[![Known Vulnerabilities](https://snyk.io/test/github/SimplyVanilla/InvSet/badge.svg)](https://snyk.io/test/github/SimplyVanilla/InvSet)

`data get entity PLAYER` replacement for Folia servers. Fetch and clear player inventories with ease.
5 changes: 3 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ plugins {
id 'com.github.johnrengelman.shadow' version '8.1.1'
}

group = 'me.hsgamer'
version = '1.0-SNAPSHOT'
group = 'net.simplyvanilla'
version = '0.1.0'

repositories {
mavenCentral()
Expand Down Expand Up @@ -57,6 +57,7 @@ processResources {
}

shadowJar {
archiveClassifier.set('')
relocate('me.hsgamer.hscore', 'me.hsgamer.invset.core')
relocate('de.tr7zw.changeme.nbtapi', 'me.hsgamer.invset.nbtapi')
}
Expand Down
2 changes: 1 addition & 1 deletion gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-8.5-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-8.6-bin.zip
networkTimeout=10000
validateDistributionUrl=true
zipStoreBase=GRADLE_USER_HOME
Expand Down
20 changes: 10 additions & 10 deletions gradlew.bat
Original file line number Diff line number Diff line change
Expand Up @@ -43,11 +43,11 @@ set JAVA_EXE=java.exe
%JAVA_EXE% -version >NUL 2>&1
if %ERRORLEVEL% equ 0 goto execute

echo.
echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
echo.
echo Please set the JAVA_HOME variable in your environment to match the
echo location of your Java installation.
echo. 1>&2
echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. 1>&2
echo. 1>&2
echo Please set the JAVA_HOME variable in your environment to match the 1>&2
echo location of your Java installation. 1>&2

goto fail

Expand All @@ -57,11 +57,11 @@ set JAVA_EXE=%JAVA_HOME%/bin/java.exe

if exist "%JAVA_EXE%" goto execute

echo.
echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME%
echo.
echo Please set the JAVA_HOME variable in your environment to match the
echo location of your Java installation.
echo. 1>&2
echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME% 1>&2
echo. 1>&2
echo Please set the JAVA_HOME variable in your environment to match the 1>&2
echo location of your Java installation. 1>&2

goto fail

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package me.hsgamer.invset;
package net.simplyvanilla.invset;

import org.bukkit.command.Command;
import org.bukkit.command.CommandSender;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package me.hsgamer.invset;
package net.simplyvanilla.invset;

import de.tr7zw.changeme.nbtapi.NBT;
import de.tr7zw.changeme.nbtapi.iface.ReadWriteNBT;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package me.hsgamer.invset;
package net.simplyvanilla.invset;

import de.tr7zw.changeme.nbtapi.utils.MinecraftVersion;
import me.hsgamer.hscore.bukkit.command.CommandManager;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package me.hsgamer.invset;
package net.simplyvanilla.invset;

import org.bukkit.Bukkit;
import org.bukkit.permissions.Permission;
Expand Down
20 changes: 18 additions & 2 deletions src/main/resources/plugin.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,21 @@
main: net.simplyvanilla.invset.InvSet
name: InvSet
version: '${version}'
main: me.hsgamer.invset.InvSet
api-version: '1.20'
api-version: 1.20
folia-supported: true

author: Simply Vanilla
website: https://github.com/SimplyVanilla/InvSet

commands:
getinv:
description: Get the inventory of a player
usage: |
/getinv <player> [end]
permission: op

airinv:
description: Set a slot of the inventory to air
usage: |
/airinv <player> <slot> [end]
permission: op

0 comments on commit 549c482

Please sign in to comment.