Skip to content

Commit 968a915

Browse files
authored
Merge pull request #648 from Multiverse/MV5
MV5
2 parents f8c03eb + 2f491e1 commit 968a915

Some content is hidden

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

59 files changed

+2167
-2336
lines changed

README.md

Lines changed: 3 additions & 5 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 Portals
6-
75
[![Modrinth](https://cdn.jsdelivr.net/npm/@intergrav/devins-badges@3/assets/cozy/available/modrinth_vector.svg)](https://modrinth.com/plugin/Multiverse-Portals)
86
[![Hangar](https://cdn.jsdelivr.net/npm/@intergrav/devins-badges@3/assets/cozy/available/hangar_vector.svg)](https://hangar.papermc.io/Multiverse/Multiverse-Portals)
97
[![Bukkit](https://raw.githubusercontent.com/intergrav/devins-badges/refs/heads/v3/assets/cozy/available/bukkit_vector.svg)](https://dev.bukkit.org/projects/Multiverse-Portals)
@@ -17,7 +15,7 @@
1715

1816
[Multiverse Portals](https://dev.bukkit.org/projects/Multiverse-Portals) is an add-on Plugin for [Multiverse core](https://dev.bukkit.org/projects/multiverse-core) that allows you to create Portals that can teleport players to Multiverse destinations (worlds, anchors or even exact positions), With [Multiverse Command Destination](https://www.spigotmc.org/resources/multiverse-commanddestination.90232/) you can even make portals run commands
1917

20-
Now it's time to create your very own server with Multiverse Portals, do check out our [Wiki](https://github.com/Multiverse/Multiverse-Core/wiki/Home-(Portals)) and [Usage Guide](https://github.com/Multiverse/Multiverse-Core/wiki/Basics-(Portals)) 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 Portals, do check out our [Wiki](https://mvplugins.org) and [Usage Guide](https://mvplugins.org/portals/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

@@ -38,7 +36,7 @@ Simply build the source with Gradle:
3836
**Want to help improve Multiverse Portals?** 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-Portals/labels/State%3A%20Open%20to%20PR) and ["Resolution: Accepted"](https://github.com/Multiverse/Multiverse-Portals/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: 21 additions & 94 deletions
Original file line numberDiff line numberDiff line change
@@ -1,82 +1,51 @@
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.2.0'
64
}
75

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

12-
java.sourceCompatibility = JavaVersion.VERSION_11
13-
149
repositories {
15-
mavenLocal()
16-
mavenCentral()
17-
18-
maven {
19-
name = 'spigotmc'
20-
url = uri('https://hub.spigotmc.org/nexus/content/repositories/snapshots/')
21-
}
22-
23-
maven {
24-
name = 'onarandombox'
25-
url = uri('https://repo.onarandombox.com/content/groups/public')
26-
}
27-
2810
maven {
2911
name = 'enginehub'
3012
url = uri('https://maven.enginehub.org/repo/')
3113
}
3214
}
3315

34-
dependencies {
35-
// Spigot
36-
implementation 'org.bukkit:bukkit:1.13.2-R0.1-SNAPSHOT'
16+
configure(apiDependencies) {
17+
serverApiVersion = '1.18.2-R0.1-SNAPSHOT'
18+
mockBukkitServerApiVersion = '1.21'
19+
mockBukkitVersion = '4.31.1'
20+
}
3721

38-
// Core
39-
implementation 'com.onarandombox.multiversecore:Multiverse-Core:4.2.2'
22+
dependencies {
23+
// Multiverse
24+
externalPlugin 'org.mvplugins.multiverse.core:multiverse-core:5.0.0-SNAPSHOT'
4025

41-
//WorldEdit
42-
implementation('com.sk89q.worldedit:worldedit-bukkit:7.2.9') {
26+
// WorldEdit
27+
externalPlugin('com.sk89q.worldedit:worldedit-bukkit:7.2.9') {
4328
exclude group: 'org.bukkit', module: 'bukkit'
4429
}
4530

4631
// Utils
47-
api('com.dumptruckman.minecraft:Logging:1.1.1') {
48-
exclude group: 'org.bukkit', module: 'bukkit'
32+
shadowed('com.dumptruckman.minecraft:Logging:1.1.1') {
33+
exclude group: 'junit', module: 'junit'
4934
}
5035
}
5136

52-
53-
java {
54-
withSourcesJar()
55-
withJavadocJar()
56-
}
57-
58-
tasks.withType(JavaCompile).configureEach {
59-
options.encoding = 'UTF-8'
60-
}
61-
62-
tasks.withType(Javadoc).configureEach {
63-
options.encoding = 'UTF-8'
37+
checkstyle {
38+
toolVersion = '6.1.1'
39+
configFile file('config/mv_checks.xml')
40+
ignoreFailures = true
6441
}
6542

66-
67-
configurations {
68-
[apiElements, runtimeElements].each {
69-
it.outgoing.artifacts.removeIf { it.buildDependencies.getDependencies(null).contains(jar) }
70-
it.outgoing.artifact(shadowJar)
71-
}
43+
shadowJar {
44+
relocate 'com.dumptruckman.minecraft.util.Logging', 'org.mvplugins.multiverse.portals.util.MVPLogging'
45+
relocate 'com.dumptruckman.minecraft.util.DebugLog', 'org.mvplugins.multiverse.portals.util.DebugFileLogger'
7246
}
7347

7448
publishing {
75-
publications {
76-
maven(MavenPublication) {
77-
from components.java
78-
}
79-
}
8049
repositories {
8150
maven {
8251
name = "GitHubPackages"
@@ -88,45 +57,3 @@ publishing {
8857
}
8958
}
9059
}
91-
92-
93-
processResources {
94-
def props = [version: "${project.version}"]
95-
inputs.properties props
96-
filteringCharset 'UTF-8'
97-
filesMatching('plugin.yml') {
98-
expand props
99-
}
100-
101-
// This task should never be skipped. The tests depend on this having been run but we want the new version number
102-
// that is created after tests are run and before we run again to publish.
103-
outputs.upToDateWhen { false }
104-
}
105-
106-
107-
checkstyle {
108-
toolVersion = '6.1.1'
109-
configFile file('config/mv_checks.xml')
110-
ignoreFailures = true
111-
}
112-
113-
114-
javadoc {
115-
source = sourceSets.main.allJava
116-
classpath = configurations.compileClasspath
117-
}
118-
119-
120-
project.configurations.api.canBeResolved = true
121-
122-
shadowJar {
123-
relocate 'com.dumptruckman.minecraft.util.Logging', 'com.onarandombox.multiverseportals.util.MVPLogging'
124-
relocate 'com.dumptruckman.minecraft.util.DebugLog', 'com.onarandombox.multiverseportals.util.DebugFileLogger'
125-
126-
configurations = [project.configurations.api]
127-
128-
archiveFileName = "$baseName-$version.$extension"
129-
}
130-
131-
build.dependsOn shadowJar
132-
jar.enabled = false

config/multiverse-banner.png

167 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-portals'

src/main/java/com/onarandombox/MultiversePortals/commands/ConfigCommand.java

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

0 commit comments

Comments
 (0)