-
-
Notifications
You must be signed in to change notification settings - Fork 3
GH-118 Add multification-paper module with Paper platform support and examples
#118
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
Merged
Merged
Changes from all commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
6fa2714
Add `multification-paper` module with Paper platform support and exam…
vLuckyyy 6928725
Update GitHub workflows to refine CI/CD setup
vLuckyyy 067b6ed
ci: make gradlew executable in CI workflows
vLuckyyy 32fe513
Refactor README examples for cleaner code and update Maven repository…
vLuckyyy 3d6af95
Update README.md
vLuckyyy 3d5351c
Clean up code examples in README, streamline viewer provider logic, a…
vLuckyyy a59b206
Update examples/paper/src/main/java/com/eternalcode/example/paper/con…
vLuckyyy File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Some comments aren't visible on the classic Files Changed page.
There are no files selected for viewing
File renamed without changes.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,60 @@ | ||
| plugins { | ||
| id("java") | ||
| id("com.gradleup.shadow") version "9.0.0-beta4" | ||
| id("net.minecrell.plugin-yml.paper") version "0.6.0" | ||
| id("xyz.jpenilla.run-paper") version "2.3.1" | ||
| } | ||
|
|
||
| version = "1.0.0-SNAPSHOT" | ||
|
|
||
| java { | ||
| sourceCompatibility = JavaVersion.VERSION_21 | ||
| targetCompatibility = JavaVersion.VERSION_21 | ||
| } | ||
|
|
||
| repositories { | ||
| mavenCentral() | ||
| maven("https://repo.papermc.io/repository/maven-public/") | ||
| maven("https://repo.panda-lang.org/releases/") | ||
| } | ||
|
|
||
| dependencies { | ||
| compileOnly("io.papermc.paper:paper-api:1.21.4-R0.1-SNAPSHOT") | ||
|
|
||
| implementation("dev.rollczi:litecommands-bukkit:3.4.1") | ||
| // implementation("com.eternalcode:multification-paper:1.2.3") // <-- uncomment in your project | ||
| // implementation("com.eternalcode:multification-cdn:1.2.3") // <-- uncomment in your project | ||
|
|
||
| implementation(project(":multification-paper")) // don't use this line in your build.gradle | ||
| implementation(project(":multification-cdn")) // don't use this line in your build.gradle | ||
| } | ||
|
|
||
| val pluginName = "ExamplePaperPlugin" | ||
| val packageName = "com.eternalcode.example.paper" | ||
|
|
||
| paper { | ||
| main = "$packageName.$pluginName" | ||
| apiVersion = "1.21" | ||
| author = "EternalCode" | ||
| name = pluginName | ||
| version = "${project.version}" | ||
| } | ||
|
|
||
| tasks.shadowJar { | ||
| archiveFileName.set("$pluginName v${project.version}.jar") | ||
|
|
||
| listOf( | ||
| "dev.rollczi.litecommands", | ||
| "panda.std", | ||
| "panda.utilities", | ||
| ).forEach { relocate(it, "$packageName.libs.$it") } | ||
| } | ||
|
|
||
| sourceSets.test { | ||
| java.setSrcDirs(emptyList<String>()) | ||
| resources.setSrcDirs(emptyList<String>()) | ||
| } | ||
|
|
||
| tasks.runServer { | ||
| minecraftVersion("1.21.11") | ||
| } | ||
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.