Skip to content

Commit 3780400

Browse files
authored
Merge pull request #514 from Multiverse/MV5
MV5
2 parents 7c14e26 + 0733654 commit 3780400

File tree

283 files changed

+13840
-12205
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

283 files changed

+13840
-12205
lines changed

.github/workflows/pr.test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,6 @@ on:
66

77
jobs:
88
test:
9-
uses: Multiverse/Multiverse-Core/.github/workflows/generic.test.yml@main
9+
uses: Multiverse/Multiverse-Core/.github/workflows/generic.test.yml@MV5 # todo: Change back to main before release
1010
with:
1111
plugin_name: multiverse-inventories

README.md

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
11
<p align="center">
2-
<img src="https://raw.githubusercontent.com/Multiverse/Multiverse-Core/main/config/multiverse2-long.png" alt="Multiverse Logo">
2+
<img src="config/multiverse-banner.png" alt="Multiverse Logo">
33
</p>
44

5-
# Multiverse Inventories
6-
75
[![Modrinth](https://cdn.jsdelivr.net/npm/@intergrav/devins-badges@3/assets/cozy/available/modrinth_vector.svg)](https://modrinth.com/plugin/multiverse-inventories)
86
[![Hangar](https://cdn.jsdelivr.net/npm/@intergrav/devins-badges@3/assets/cozy/available/hangar_vector.svg)](https://hangar.papermc.io/Multiverse/Multiverse-Inventories)
97
[![Bukkit](https://raw.githubusercontent.com/intergrav/devins-badges/refs/heads/v3/assets/cozy/available/bukkit_vector.svg)](https://dev.bukkit.org/projects/multiverse-inventories)
@@ -17,11 +15,11 @@
1715

1816
[Multiverse Inventories](https://dev.bukkit.org/projects/multiverse-inventories) is an add-on Plugin for [Multiverse core](https://dev.bukkit.org/projects/multiverse-core) that lets players have separate inventories **per world!** This makes it possible to create multi gamemode servers without Velocity or Bungee!
1917

20-
Now it's time to create your very own server with Multiverse Inventories, do check out our [Wiki](https://github.com/Multiverse/Multiverse-Core/wiki/Home-(Inventories)) and [Usage Guide](https://github.com/Multiverse/Multiverse-Core/wiki/Basics-(Inventories)) to get started. Feel free to hop onto our [Discord](https://discord.gg/NZtfKky) if you have any questions or just want to have a chat with us!
18+
Now it's time to create your very own server with Multiverse Inventories, do check out our [Wiki](https://mvplugins.org) and [Usage Guide](https://mvplugins.org/inventories/fundamentals/basic-usage/) to get started. Feel free to hop onto our [Discord](https://discord.gg/NZtfKky) if you have any questions or just want to have a chat with us!
2119

2220
## Our other amazing sub-modules:
2321

24-
With just [Multiverse Core](https://github.com/multiverse/multiverse) and any of the below plugins, you can access all of these other related features in the Multiverse ecosystem.
22+
With just [Multiverse Core](https://github.com/multiverse/multiverse-core) and any of the below plugins, you can access all of these other related features in the Multiverse ecosystem.
2523

2624
* [Multiverse-NetherPortals](https://github.com/Multiverse/Multiverse-NetherPortals) -> Have separate nether and end worlds for each of your overworlds!
2725
* [Multiverse-Portals](https://github.com/Multiverse/Multiverse-Portals) -> Make custom portals to go to any destination!
@@ -38,7 +36,7 @@ Simply build the source with Gradle:
3836
**Want to help improve Multiverse Inventories?** There are several ways you can support and contribute to the project.
3937
* Take a look at our "Bug: Unconfirmed" issues, where you can find issues that need extra testing and investigation.
4038
* Want others to love Multiverse too? You can join the [Multiverse Discord community](https://discord.gg/NZtfKky) and help others with issues and setup!
41-
* A Multiverse guru? You can update our [Wiki](https://github.com/Multiverse/Multiverse-Core/wiki) with your latest tips, tricks and guides! The wiki open for all to edit and improve.
39+
* A Multiverse guru? You can update our [Wiki](https://github.com/Multiverse/multiverse-web) with your latest tips, tricks and guides! The wiki open for all to edit and improve.
4240
* Love coding? You could look at ["State: Open to PR"](https://github.com/Multiverse/Multiverse-Inventories/labels/State%3A%20Open%20to%20PR) and ["Resolution: Accepted"](https://github.com/Multiverse/Multiverse-Inventories/labels/Resolution%3A%20Accepted) issues. We're always happy to receive bug fixes and feature additions as [pull requests](https://www.freecodecamp.org/news/how-to-make-your-first-pull-request-on-github-3/).
4341
* If you'd like to make a financial contribution to the project, do consider joining our [Patreon](https://www.patreon.com/dumptruckman) or make a one-time donation [here](https://paypal.me/dumptruckman)!
4442

build.gradle

Lines changed: 59 additions & 112 deletions
Original file line numberDiff line numberDiff line change
@@ -1,106 +1,98 @@
11
plugins {
2-
id 'java-library'
3-
id 'maven-publish'
42
id 'checkstyle'
5-
id 'com.github.johnrengelman.shadow' version '7.1.2'
3+
id 'org.mvplugins.multiverse-plugin' version '1.1.0'
64
}
75

8-
version = System.getenv('GITHUB_VERSION') ?: 'local'
9-
group = 'com.onarandombox.multiverseinventories'
6+
group = 'org.mvplugins.multiverse.inventories'
107
description = 'Multiverse-Inventories'
118

12-
java.sourceCompatibility = JavaVersion.VERSION_11
13-
149
repositories {
15-
mavenLocal()
16-
mavenCentral()
17-
1810
maven {
19-
name = 'onarandombox'
20-
url = uri('https://repo.onarandombox.com/content/groups/public')
11+
name = 'codemc'
12+
url = uri('https://repo.codemc.org/repository/maven-releases')
2113
}
2214

2315
maven {
24-
name ='papermc'
25-
url = uri('https://papermc.io/repo/repository/maven-public/')
16+
name = 'benwoo1110'
17+
url = uri('https://repo.c0ding.party/multiverse-beta')
2618
}
19+
}
2720

28-
maven {
29-
name = 'jitpack.io'
30-
url = uri('https://jitpack.io/')
31-
}
21+
configure(apiDependencies) {
22+
serverApiVersion = '1.21.3-R0.1-SNAPSHOT'
23+
mockBukkitServerApiVersion = '1.21'
24+
mockBukkitVersion = '4.31.1'
3225
}
3326

3427
dependencies {
35-
// Spigot
36-
implementation('org.bukkit:bukkit:1.14.4-R0.1-SNAPSHOT') {
37-
exclude group: 'junit', module: 'junit'
38-
}
28+
// Server API
29+
// TODO make our custom plugin target paper instead of spigot
30+
externalPlugin 'io.papermc.paper:paper-api:1.18.2-R0.1-SNAPSHOT'
3931

4032
// Core
41-
implementation('com.onarandombox.multiversecore:Multiverse-Core:4.2.2') {
42-
exclude group: 'me.main__.util', module: 'SerializationConfig'
43-
}
33+
// TODO update to correct version once we have it published
34+
externalPlugin 'org.mvplugins.multiverse.core:multiverse-core:5.0.0-SNAPSHOT'
4435

4536
// Config
46-
api 'com.dumptruckman.minecraft:JsonConfiguration:1.1'
47-
api ('com.googlecode.json-simple:json-simple:1.1.1') {
48-
exclude group: 'junit', module: 'junit'
49-
}
37+
shadowed 'com.dumptruckman.minecraft:JsonConfiguration:1.2-SNAPSHOT'
38+
shadowed 'net.minidev:json-smart:2.5.1'
5039

5140
// Utils
52-
api 'io.papermc:paperlib:1.0.7'
53-
api('com.dumptruckman.minecraft:Logging:1.1.1') {
41+
shadowed('com.dumptruckman.minecraft:Logging:1.1.1') {
5442
exclude group: 'junit', module: 'junit'
5543
}
5644

45+
// Caching
46+
shadowed("com.github.ben-manes.caffeine:caffeine:3.2.0")
47+
48+
// Luckperms for group context
49+
compileOnly 'net.luckperms:api:5.4'
50+
5751
// Other plugins for import
58-
implementation('uk.co:MultiInv:3.0.6') {
52+
compileOnly('uk.co:MultiInv:3.0.6') {
5953
exclude group: '*', module: '*'
6054
}
61-
implementation('me.drayshak:WorldInventories:1.0.2') {
55+
compileOnly('me.drayshak:WorldInventories:1.0.2') {
6256
exclude group: '*', module: '*'
6357
}
64-
65-
// Legacy Multiverse-Adventure
66-
implementation('com.onarandombox.multiverseadventure:Multiverse-Adventure:2.5.0-SNAPSHOT') {
58+
// perworldinventory is weird and has snakeyaml included in the jar, so we can only use compileOnly for build to work properly
59+
compileOnly('me.ebonjaeger:perworldinventory-kt:2.3.2') {
6760
exclude group: '*', module: '*'
6861
}
6962

70-
// Tests
71-
testImplementation 'com.github.MilkBowl:VaultAPI:1.7.1'
72-
testImplementation 'junit:junit:4.13.2'
73-
testImplementation 'org.mockito:mockito-core:3.11.2'
74-
}
75-
76-
77-
java {
78-
withSourcesJar()
79-
withJavadocJar()
80-
}
81-
82-
tasks.withType(JavaCompile).configureEach {
83-
options.encoding = 'UTF-8'
63+
// hk2 for annotation processing only
64+
compileOnly('org.glassfish.hk2:hk2-api:3.0.3') {
65+
exclude group: '*', module: '*'
66+
}
67+
annotationProcessor 'org.glassfish.hk2:hk2-metadata-generator:3.0.3'
68+
testAnnotationProcessor 'org.glassfish.hk2:hk2-metadata-generator:3.0.3'
8469
}
8570

86-
tasks.withType(Javadoc).configureEach {
87-
options.encoding = 'UTF-8'
71+
shadowJar {
72+
relocate 'com.dumptruckman.minecraft.util.Logging', 'org.mvplugins.multiverse.inventories.utils.InvLogging'
73+
relocate 'com.dumptruckman.minecraft.util.DebugLog', 'org.mvplugins.multiverse.inventories.utils.DebugFileLogger'
74+
relocate 'com.dumptruckman.bukkit.configuration', 'org.mvplugins.multiverse.inventories.utils.configuration'
75+
relocate 'net.minidev', 'org.mvplugins.multiverse.inventories.utils.minidev'
76+
relocate 'com.github.benmanes', 'org.mvplugins.multiverse.inventories.utils.benmanes'
77+
relocate 'com.google.errorprone', 'org.mvplugins.multiverse.inventories.utils.errorprone'
78+
79+
dependencies {
80+
exclude(dependency {
81+
it.moduleGroup == 'org.ow2.asm'
82+
})
83+
exclude(dependency {
84+
it.moduleGroup == 'org.jetbrains'
85+
})
86+
}
8887
}
8988

90-
91-
configurations {
92-
[apiElements, runtimeElements].each {
93-
it.outgoing.artifacts.removeIf { it.buildDependencies.getDependencies(null).contains(jar) }
94-
it.outgoing.artifact(shadowJar)
95-
}
89+
checkstyle {
90+
toolVersion = '6.1.1'
91+
configFile file('config/mv_checks.xml')
92+
ignoreFailures = true
9693
}
9794

9895
publishing {
99-
publications {
100-
maven(MavenPublication) {
101-
from components.java
102-
}
103-
}
10496
repositories {
10597
maven {
10698
name = "GitHubPackages"
@@ -110,57 +102,12 @@ publishing {
110102
password = System.getenv("GITHUB_TOKEN")
111103
}
112104
}
105+
113106
maven {
114-
name = "multiverse"
115-
def releasesRepoUrl = "https://repo.onarandombox.com/multiverse-releases"
116-
def snapshotsRepoUrl = "https://repo.onarandombox.com/multiverse-snapshots"
117-
url = version.endsWith('SNAPSHOT') ? snapshotsRepoUrl : releasesRepoUrl
107+
// todo: remove before mv5 release
108+
name = "multiverseBeta"
109+
url = "https://repo.c0ding.party/multiverse-beta"
118110
credentials(PasswordCredentials)
119111
}
120112
}
121113
}
122-
123-
124-
processResources {
125-
def props = [version: "${project.version}"]
126-
inputs.properties props
127-
filteringCharset 'UTF-8'
128-
filesMatching('plugin.yml') {
129-
expand props
130-
}
131-
132-
// This task should never be skipped. The tests depend on this having been run but we want the new version number
133-
// that is created after tests are run and before we run again to publish.
134-
outputs.upToDateWhen { false }
135-
}
136-
137-
138-
checkstyle {
139-
toolVersion = '6.1.1'
140-
configFile file('config/mv_checks.xml')
141-
ignoreFailures = true
142-
}
143-
144-
145-
javadoc {
146-
source = sourceSets.main.allJava
147-
classpath = configurations.compileClasspath
148-
}
149-
150-
151-
project.configurations.api.canBeResolved = true
152-
153-
shadowJar {
154-
relocate 'com.dumptruckman.minecraft.util.Logging', 'com.onarandombox.multiverseinventories.utils.InvLogging'
155-
relocate 'com.dumptruckman.minecraft.util.DebugLog', 'com.onarandombox.multiverseinventories.utils.DebugFileLogger'
156-
relocate 'com.dumptruckman.bukkit.configuration', 'com.onarandombox.multiverseinventories.utils.configuration'
157-
relocate 'io.papermc.lib', 'com.onarandombox.multiverseinventories.utils.paperlib'
158-
relocate 'net.minidev.json', 'com.onarandombox.multiverseinventories.utils.json'
159-
160-
configurations = [project.configurations.api]
161-
162-
archiveFileName = "$baseName-$version.$extension"
163-
}
164-
165-
build.dependsOn shadowJar
166-
jar.enabled = false

config/multiverse-banner.png

173 KB
Loading
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
distributionBase=GRADLE_USER_HOME
22
distributionPath=wrapper/dists
3-
distributionUrl=https\://services.gradle.org/distributions/gradle-7.6-bin.zip
3+
distributionUrl=https\://services.gradle.org/distributions/gradle-8.10.2-bin.zip
44
networkTimeout=10000
55
zipStoreBase=GRADLE_USER_HOME
66
zipStorePath=wrapper/dists

settings.gradle

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,13 @@
22
* This file was generated by the Gradle 'init' task.
33
*/
44

5+
pluginManagement {
6+
repositories {
7+
gradlePluginPortal()
8+
maven {
9+
url = uri('https://repo.onarandombox.com/multiverse-releases')
10+
}
11+
}
12+
}
13+
514
rootProject.name = 'multiverse-inventories'

src/main/java/com/onarandombox/multiverseinventories/AdventureListener.java

Lines changed: 0 additions & 33 deletions
This file was deleted.

src/main/java/com/onarandombox/multiverseinventories/CoreDebugListener.java

Lines changed: 0 additions & 18 deletions
This file was deleted.

0 commit comments

Comments
 (0)