Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Idea]: Folia support for OpenInv #196

Closed
wants to merge 137 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
137 commits
Select commit Hold shift + click to select a range
24224e4
Add CurseForge release workflow
Jikoo Mar 20, 2021
15ee6ef
Fix revision number
Jikoo Mar 20, 2021
18c7916
Include release script
Jikoo Mar 21, 2021
e09e7c5
Fix release action
Jikoo Mar 22, 2021
0e3bdb8
Convert to HTML for CF
Jikoo Mar 22, 2021
ae6c3bd
Move release location
Jikoo Mar 22, 2021
ccc6f4b
Fix CF release
Jikoo Mar 22, 2021
c440f61
Bump version to 4.1.6 for release
Jikoo Mar 22, 2021
889c2ff
Bump version to 4.1.7-SNAPSHOT for development
Jikoo Mar 22, 2021
2a0e0d3
Don't shade annotations
Jikoo Mar 22, 2021
2b563e0
Don't convert release notes to HTML
Jikoo Mar 22, 2021
7ab86f2
Fix build
Jikoo Mar 22, 2021
5b18656
Fix incorrect player name in title
Jikoo Mar 28, 2021
6c4818d
Add method to access owner
Jikoo Mar 28, 2021
e3acb53
Deprecate API for removed notification configuration
Jikoo Apr 5, 2021
30425d2
Don't bother validating names
Jikoo Apr 21, 2021
bd207e9
Simplify dependency management
Jikoo Apr 21, 2021
9e0ca47
Fix Bukkit data not being loaded while offline
Jikoo May 26, 2021
0f41701
Update annotations
Jikoo May 26, 2021
2cfc558
Bump version to 4.1.7 for release
Jikoo May 29, 2021
4d80036
Bump version to 4.1.8-SNAPSHOT for development
Jikoo May 29, 2021
9a2b379
Escape changelog for YAML
Jikoo Jun 8, 2021
9fccea6
Update copyright
Jikoo Jun 11, 2021
07a8e3b
Add 1.17 support
Jikoo Jun 11, 2021
ff7243d
Fix script issues
Jikoo Jun 11, 2021
1cae4c7
Correct window id
Jikoo Jun 11, 2021
f613c0a
Remove redundant load
Jikoo Jun 11, 2021
64af4dd
Bump version to 4.1.8 for release
Jikoo Jun 11, 2021
b198931
Bump version to 4.1.9-SNAPSHOT for development
Jikoo Jun 11, 2021
4336b45
Fix potential CME closing viewers without access
Jikoo Jun 24, 2021
e5ebf11
Add Chinese Traditional translation (#34)
flandretw Jun 29, 2021
2f36a4d
Add Chinese Simplified translation (#35)
flandretw Jun 29, 2021
ea99bd5
Extract duplicate API-only code
Jikoo Jul 28, 2021
8599997
Work towards fixing shulkers
Jikoo Jul 28, 2021
556a8bc
Drop 1.16.5 support to use Mojang mappings
Jikoo Oct 16, 2021
e3d9cea
Fix spigot dependency parsing
Jikoo Oct 16, 2021
b4601bb
Fix cached Spigot dependencies never being used
Jikoo Oct 16, 2021
dd90b52
Use Java 17 for CI
Jikoo Nov 17, 2021
d236dd2
Update to 1.18-pre5
Jikoo Nov 23, 2021
98fbceb
Fix non-translatable component, wrong flag value
Jikoo Dec 2, 2021
160ae47
Correct wrong item list usage
Jikoo Dec 2, 2021
3e2b601
Bump version to 4.1.9 for release
Jikoo Dec 2, 2021
6a31015
Bump version to 4.1.10-SNAPSHOT for development
Jikoo Dec 2, 2021
f8fb8cd
Reduce duplicate configuration details
Jikoo Jan 19, 2022
027d4e5
Bump Spigot version to 1.18.1
Jikoo Jan 19, 2022
abd529b
Clean up compilation instructions for Mojang mappings
Jikoo Jan 19, 2022
3aa3139
Add trace to InstantiationException
Jikoo Jan 27, 2022
4fdfe15
Update viewers for closed silent inventories
Jikoo Jan 27, 2022
4ca222f
Remove deprecated API usage
Jikoo Jan 27, 2022
f78a5b4
Ignore PlayerInventory owner as a viewer
Jikoo Jan 27, 2022
9bb94be
Update to 1.18.2
Jikoo Mar 1, 2022
bb75c72
Actually build 1.18.2 module
Jikoo Mar 1, 2022
a547ab7
Bump version to 4.1.10 for release
Jikoo Mar 11, 2022
3103e88
Bump version to 4.1.11-SNAPSHOT for development
Jikoo Mar 11, 2022
173f496
Log error message when failing to save player data (#72)
Phoenix616 Apr 5, 2022
22407aa
Update dependencies, add Dependabot (#75)
Jikoo Apr 29, 2022
7903942
Correct Action indentation
Jikoo Apr 29, 2022
60c1d91
Simplify Maven check
Jikoo Apr 29, 2022
cc3d965
Bump hmarr/auto-approve-action from 2.0.0 to 2.2.1 (#77)
dependabot[bot] May 1, 2022
d6152f2
Bump dsaltares/fetch-gh-release-asset from 0.0.5 to 1.0.0 (#83)
dependabot[bot] Jun 1, 2022
65c3358
Bump pascalgn/automerge-action from 0.15.2 to 0.15.3 (#82)
dependabot[bot] Jun 1, 2022
525982c
Harden event/internal access slightly
Jikoo May 12, 2022
f21019e
Extract help to location of use
Jikoo May 12, 2022
ac00261
Note Spigot requirement
Jikoo May 12, 2022
b6e8e2b
Extract some duplicate code from internal implementations
Jikoo May 13, 2022
c9ba401
Don't inject player if unnecessary
Jikoo May 13, 2022
9502b29
Clean up compiler warnings
Jikoo May 13, 2022
fdf9200
Remove cache, add disable-offline-access config node
Jikoo May 13, 2022
6ad6e0c
Bump version to 4.2.0-SNAPSHOT
Jikoo May 13, 2022
0b761a6
Continue migrating terminology to "container"
Jikoo May 15, 2022
6407f1d
Reorganize members
Jikoo May 15, 2022
44e514d
Don't close other inventories for opened player during close
Jikoo May 15, 2022
a5b21cb
Correct crossworld check
Jikoo May 15, 2022
70d8999
Move translations to a separate package
Jikoo May 15, 2022
f34b342
Tab? The drink?
Jikoo May 15, 2022
0653d12
Code health pass for Java 16
Jikoo Jun 7, 2022
c2d6064
Update to Minecraft 1.19
Jikoo Jun 7, 2022
9c934e4
Update main plugin to Java 17
Jikoo Jun 7, 2022
fcb9ccb
Bump version to 4.2.0 for release
Jikoo Jun 7, 2022
89db744
Bump version to 4.2.1-SNAPSHOT for development
Jikoo Jun 7, 2022
1093b6d
Update to 1.19.1 (#89)
jok-dev Jul 31, 2022
23e2a7e
Bump maven-assembly-plugin from 3.3.0 to 3.4.2 (#94)
dependabot[bot] Aug 1, 2022
6b38cb7
Bump version to 4.2.1 for release
Jikoo Aug 1, 2022
8c7698b
Bump version to 4.2.2-SNAPSHOT for development
Jikoo Aug 1, 2022
1e0fb7b
Bump hmarr/auto-approve-action from 2.2.1 to 2.4.0 (#99)
dependabot[bot] Sep 10, 2022
1ceaf29
Bump maven-compiler-plugin from 3.8.1 to 3.10.1 (#76)
dependabot[bot] Oct 1, 2022
d0648cc
Fix incorrect player's locale used in view title (#101)
Jikoo Oct 1, 2022
2679a52
Bump actions/checkout from 2 to 3 (#103)
dependabot[bot] Oct 1, 2022
b872f94
Bump maven-shade-plugin from 3.3.0 to 3.4.0 (#102)
dependabot[bot] Oct 1, 2022
c443615
Fix cache never being used for Spigot dependencies (#105)
Jikoo Oct 14, 2022
0120d35
Fix advancement-related memory leak (#104)
Jikoo Oct 14, 2022
961a900
Bump maven-dependency-plugin from 3.3.0 to 3.4.0 (#108)
dependabot[bot] Dec 2, 2022
1efc0d4
Bump maven-shade-plugin from 3.4.0 to 3.4.1 (#112)
dependabot[bot] Dec 2, 2022
e5128fa
Bump pascalgn/automerge-action from 0.15.3 to 0.15.5 (#109)
dependabot[bot] Dec 2, 2022
d7e7817
Bump softprops/action-gh-release from 0.1.14 to 0.1.15 (#110)
dependabot[bot] Dec 2, 2022
8015304
Bump dsaltares/fetch-gh-release-asset from 1.0.0 to 1.1.0 (#111)
dependabot[bot] Dec 2, 2022
7b16391
Bump hmarr/auto-approve-action from 2.4.0 to 3.1.0 (#113)
dependabot[bot] Dec 2, 2022
46f3396
Update to Minecraft 1.19.3
Jikoo Dec 10, 2022
381dbb2
Don't disable minimizeJar in internal modules
Jikoo Dec 10, 2022
86bf24e
Bump version to 4.2.2 for release
Jikoo Dec 11, 2022
4816737
Bump version to 4.2.3-SNAPSHOT for development
Jikoo Dec 11, 2022
e39f092
Add lookup cache, option to open self with no args (#115)
Jikoo Dec 20, 2022
81eb60f
Improve language manager (#116)
Jikoo Dec 20, 2022
79b2a97
Clamp /searchcontainer radius (#117)
Jikoo Dec 20, 2022
dc8e36d
Bump annotations from 23.0.0 to 23.1.0 (#121)
dependabot[bot] Jan 2, 2023
767476a
Bump annotations from 23.1.0 to 24.0.0 (#122)
dependabot[bot] Feb 2, 2023
2fe0322
Bump maven-dependency-plugin from 3.4.0 to 3.5.0 (#123)
dependabot[bot] Feb 2, 2023
bd5e477
Fix duplicate closes swapping players to spectate (#125)
Jikoo Feb 18, 2023
c1ffd09
Bump pascalgn/automerge-action from 0.15.5 to 0.15.6 (#126)
dependabot[bot] Mar 1, 2023
e15c566
Bump maven-compiler-plugin from 3.10.1 to 3.11.0 (#128)
dependabot[bot] Mar 1, 2023
e885bf9
Bump maven-assembly-plugin from 3.4.2 to 3.5.0 (#127)
dependabot[bot] Mar 1, 2023
3d4bed0
Split up actions (#129)
Jikoo Mar 15, 2023
0e6acdf
Update to 1.19.4 (#130)
Jikoo Mar 16, 2023
6ee2546
Bump version to 4.3.0 for release
Jikoo Mar 16, 2023
1bde75f
Bump version to 4.3.1-SNAPSHOT for development
Jikoo Mar 16, 2023
23ebea4
Bump annotations from 24.0.0 to 24.0.1 (#133)
dependabot[bot] Apr 1, 2023
1233f58
Bump hmarr/auto-approve-action from 3.1.0 to 3.2.1 (#134)
dependabot[bot] Apr 1, 2023
2f370ad
Fix loading users in deleted worlds on Paper (#139)
Jikoo Apr 17, 2023
2d36249
Fix split up actions (#141)
Jikoo Apr 25, 2023
6f23ed2
Remove OS declaration from workflow_call (#144)
Jikoo May 1, 2023
6f2bdcc
Bump dsaltares/fetch-gh-release-asset from 1.1.0 to 1.1.1 (#143)
dependabot[bot] May 1, 2023
ac52211
Bump maven-assembly-plugin from 3.5.0 to 3.6.0 (#147)
dependabot[bot] Jun 1, 2023
70d20ac
Bump maven-dependency-plugin from 3.5.0 to 3.6.0 (#146)
dependabot[bot] Jun 1, 2023
cc7481f
Update to Minecraft 1.20 (#148)
Jikoo Jun 10, 2023
5a7d139
Bump version to 4.3.1 for release
Jikoo Jun 10, 2023
9ec7beb
Bump version to 4.3.2-SNAPSHOT for development
Jikoo Jun 10, 2023
922586c
Improve support for non-UTF-8 systems (#151)
0XPYEX0 Jun 17, 2023
57caf85
Update Spigot
Jikoo Sep 10, 2023
1bebdb5
Add OpenPlayerSaveEvent
Jikoo Sep 23, 2023
d636cdd
Add support for 1.20.2
Jikoo Sep 23, 2023
9d715b6
Bump maven-shade-plugin from 3.4.1 to 3.5.0 (#153)
dependabot[bot] Sep 23, 2023
21cd52c
Fix probable NPE
Jikoo Sep 23, 2023
db62878
Bump org.apache.maven.plugins:maven-shade-plugin from 3.5.0 to 3.5.1 …
dependabot[bot] Oct 1, 2023
3cf1aae
Bump actions/checkout from 3 to 4 (#158)
dependabot[bot] Oct 5, 2023
bfcf023
Fix ender chests not being silent
Jikoo Oct 5, 2023
28fc5ae
Bump version to 4.4.0 for release
Jikoo Oct 5, 2023
deed277
Bump version to 4.4.1-SNAPSHOT for development
Jikoo Oct 5, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
version: 2
updates:
- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "monthly"
- package-ecosystem: "maven"
directory: "/"
schedule:
interval: "monthly"
55 changes: 55 additions & 0 deletions .github/workflows/automerge_dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
name: Auto-merge Dependabot PRs

on:
workflow_run:
workflows: [ "Pull Request" ]
types: [ completed ]

jobs:
merge-dependabot:
if: "github.actor == 'dependabot[bot]'
&& github.event.workflow_run.event == 'pull_request'
&& github.event.workflow_run.conclusion == 'success'"
runs-on: ubuntu-latest
steps:
# Note: this is directly from GitHub's example for using data from a triggering workflow:
# https://docs.github.com/en/actions/using-workflows/events-that-trigger-workflows#using-data-from-the-triggering-workflow
- name: 'Download artifact'
uses: actions/github-script@v6
with:
script: |
let allArtifacts = await github.rest.actions.listWorkflowRunArtifacts({
owner: context.repo.owner,
repo: context.repo.repo,
run_id: context.payload.workflow_run.id,
});
let matchArtifact = allArtifacts.data.artifacts.filter((artifact) => {
return artifact.name == "pr_number"
})[0];
let download = await github.rest.actions.downloadArtifact({
owner: context.repo.owner,
repo: context.repo.repo,
artifact_id: matchArtifact.id,
archive_format: 'zip',
});
let fs = require('fs');
fs.writeFileSync(`${process.env.GITHUB_WORKSPACE}/pr_number.zip`, Buffer.from(download.data));

# This might be a useless use of cat, but I'm not sure what shell Actions is going to be running.
- name: Add Pull Number Variable
run: |-
unzip pr_number.zip
echo "PR_NUMBER=$(cat pr_number)" >> "$GITHUB_ENV"

- name: Approve
uses: hmarr/[email protected]
with:
github-token: "${{ secrets.GITHUB_TOKEN }}"
pull-request-number: "${{ env.PR_NUMBER }}"
- name: Merge
uses: pascalgn/[email protected]
env:
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
MERGE_LABELS: "dependencies,java"
MERGE_METHOD: "squash"
PULL_REQUEST: "${{ env.PR_NUMBER }}"
72 changes: 14 additions & 58 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,32 +2,26 @@ name: OpenInv CI

on:
push:
create:
types: [tag]
pull_request_target:
branches:
- '**'
tags-ignore:
- '**'
# Enable running CI via other Actions, i.e. for drafting releases and handling PRs.
workflow_call:

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

- name: Set Up Java
uses: actions/setup-java@v1
- uses: actions/setup-java@v3
with:
java-version: 1.8
distribution: 'temurin'
java-version: '17'
cache: 'maven'

# Use cache to speed up build
- name: Cache Maven Repo
uses: actions/cache@v2
id: cache
with:
path: ~/.m2/repository
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}

# Install Spigot dependencies.
# This script uses Maven to check all required installations and ensure that they are present.
# Install Spigot dependencies if necessary.
- name: Install Spigot Dependencies
run: . scripts/install_spigot_dependencies.sh

Expand All @@ -37,51 +31,13 @@ jobs:
# Upload artifacts
- name: Upload Distributable Jar
id: upload-final
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v3
with:
name: dist
path: ./target/OpenInv.jar
- name: Upload API Jar
id: upload-api
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v3
with:
name: api
path: ./api/target/openinvapi*.jar

release:
name: Create Github Release
needs: [ build ]
if: github.event_name == 'create' && github.event.ref_type == 'tag'
runs-on: ubuntu-latest
steps:
- name: Checkout Code
uses: actions/checkout@v2

- name: Download Artifacts
uses: actions/download-artifact@v2

- name: Generate changelog
run: . scripts/generate_changelog.sh

- name: Create Release
id: create-release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ github.ref }}
release_name: Release ${{ github.ref }}
body: ${{ env.GENERATED_CHANGELOG }}
draft: true
prerelease: false

- name: Upload Release Asset
id: upload-release-asset
uses: actions/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create-release.outputs.upload_url }}
asset_path: ./OpenInv.jar
asset_name: OpenInv.jar
asset_content_type: application/java-archive
39 changes: 39 additions & 0 deletions .github/workflows/draft_release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: Draft Github Release

on:
push:
tags:
- '**'

jobs:
run-ci:
uses: Jikoo/OpenInv/.github/workflows/ci.yml@master
draft-release:
needs: [ run-ci ]
runs-on: ubuntu-latest
steps:
# Fetch all history - used to assemble changelog.
- uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Set Release Variables
run: bash ./scripts/set_release_env.sh

- name: Download Artifact
uses: actions/download-artifact@v3
with:
name: dist
path: dist

- name: Create Release
id: create-release
uses: softprops/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
name: ${{ env.VERSIONED_NAME }}
body: ${{ env.GENERATED_CHANGELOG }}
draft: true
prerelease: false
files: ./dist/OpenInv.jar
37 changes: 37 additions & 0 deletions .github/workflows/external_release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: Release to CurseForge

on:
release:
types: [ released ]

jobs:
curseforge_release:
runs-on: ubuntu-latest
steps:
- name: Checkout Code
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Fetch Github Release Asset
uses: dsaltares/[email protected]
with:
token: ${{ secrets.GITHUB_TOKEN }}
version: ${{ github.event.release.id }}
file: OpenInv.jar

- name: Set CurseForge Variables
run: . scripts/set_curseforge_env.sh "${{ github.event.release.body }}"

- name: Create CurseForge Release
uses: itsmeow/curseforge-upload@v3
with:
token: "${{ secrets.CURSEFORGE_TOKEN }}"
project_id: 31432
game_endpoint: minecraft
file_path: ./OpenInv.jar
display_name: "${{ github.event.release.name }}"
game_versions: "${{ env.CURSEFORGE_MINECRAFT_VERSIONS }}"
release_type: release
changelog_type: markdown
changelog: "${{ env.CURSEFORGE_CHANGELOG }}"
22 changes: 22 additions & 0 deletions .github/workflows/pull_request.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: Pull Request

on:
pull_request:

jobs:
run-ci:
uses: Jikoo/OpenInv/.github/workflows/ci.yml@master
store-dependabot-pr-data:
if: "github.actor == 'dependabot[bot]' && github.event_name == 'pull_request'"
runs-on: ubuntu-latest
steps:
# Note: this is directly from GitHub's example for using data from a triggering workflow:
# https://docs.github.com/en/actions/using-workflows/events-that-trigger-workflows#using-data-from-the-triggering-workflow
- name: Store Pull Number
run: |
mkdir -p ./pr
echo ${{ github.event.number }} > ./pr/pr_number
- uses: actions/upload-artifact@v3
with:
name: pr_number
path: pr/
95 changes: 31 additions & 64 deletions README.MD
Original file line number Diff line number Diff line change
Expand Up @@ -15,48 +15,7 @@ OpenInv is a [Bukkit plugin](https://dev.bukkit.org/bukkit-plugins/openinv/) whi
- **AnyContainer**: Open containers, even if blocked by ocelots or blocks.

## Commands
<table width=100%>
<tr>
<th width=175px>Command</th>
<th>Aliases</th>
<th>Description</th>
</tr>
<tr>
<td>/openinv [player]</td>
<td>oi, inv, open</td>
<td>Open a player's inventory. If unspecified, will select last player opened or own if none opened previously.</td>
</tr>
<tr>
<td>/openender [player]</td>
<td>oe</td>
<td>Open a player's ender chest. If unspecified, will select last player opened or own if none opened previously.</td>
</tr>
<tr>
<td>/searchinv &ltitem&gt [minAmount]</td>
<td>si</td>
<td>Lists all online players that have a certain item in their inventory.</td>
</tr>
<tr>
<td>/searchender &ltitem&gt [minAmount]</td>
<td>se</td>
<td>Lists all online players that have a certain item in their ender chest.</td>
</tr>
<tr>
<td>/searchenchant &lt[enchantment] [MinLevel]&gt</td>
<td>searchenchants</td>
<td>Lists all online players with a specific enchantment.</td>
</tr>
<tr>
<td>/anycontainer [check]</td>
<td>ac, anychest</td>
<td>Check or toggle the AnyContainer function, allowing opening blocked containers.</td>
</tr>
<tr>
<td>/silentcontainer [check]</td>
<td>sc, silentchest</td>
<td>Check or toggle the SilentContainer function, allowing opening containers silently.</td>
</tr>
</table>
See [the wiki](https://github.com/Jikoo/OpenInv/wiki/Commands).

## Permissions
<table>
Expand Down Expand Up @@ -143,30 +102,38 @@ OpenInv is a [Bukkit plugin](https://dev.bukkit.org/bukkit-plugins/openinv/) whi
</table>

## For Developers
To compile, the relevant Craftbukkit/Spigot jars must be installed in your local repository using the install plugin.
Ex: `mvn install:install-file -Dpackaging=jar -Dfile=spigot-1.8-R0.1-SNAPSHOT.jar -DgroupId=org.spigotmc -DartifactId=spigot -Dversion=1.8-R0.1-SNAPSHOT`

To compile for a single version, specify the NMS revision you are targeting: `mvn -pl <NMS module> -am clean install`

To compile for a set of versions, you'll need to use a profile. The only provided profile is `all`. Select a profile using the `-P` argument: `mvn clean package -am -P all`

For more information, check out the [official Maven guide](http://maven.apache.org/guides/introduction/introduction-to-profiles.html).

The final file is `target/OpenInv.jar`

## License
### As a Dependency
The OpenInv API is available via [JitPack](https://jitpack.io/).
```xml
<repositories>
<repository>
<id>jitpack.io</id>
<url>https://jitpack.io</url>
</repository>
</repositories>
```
```xml
<dependencies>
<dependency>
<groupId>com.github.jikoo.OpenInv</groupId>
<artifactId>openinvapi</artifactId>
<version>${openinv.version}</version>
</dependency>
</dependencies>
```
Copyright (C) 2011-2020 lishid. All rights reserved.

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.
### Compilation
To compile, the relevant Spigot jars must be installed in the local repository.
As OpenInv is compiled against Mojang's mappings, you must run BuildTools with the `--remapped` argument:
`java -jar BuildTools.jar --remapped --rev $serverVersion`
`$serverVersion` is the version of the server, i.e. `1.18.1`

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.
To compile for a single version, specify the module you are targeting:
`mvn -pl $moduleName -am clean install`
`$moduleName` is the name of the module, i.e. `internal/v1_18_R1`.

You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
```
To compile for a set of versions, use a profile. Select a profile using the `-P` argument:
`mvn clean package -am -P all`
The only provided profile is `all`. The final file is `target/OpenInv.jar`
For more information, check out the [official Maven guide](http://maven.apache.org/guides/introduction/introduction-to-profiles.html).
Loading
Loading