Skip to content

Commit af8f2ec

Browse files
committed
Initiate
0 parents  commit af8f2ec

15 files changed

+766
-0
lines changed

.gitattributes

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
#
2+
# https://help.github.com/articles/dealing-with-line-endings/
3+
#
4+
# Linux start script should use lf
5+
/gradlew text eol=lf
6+
7+
# These are Windows script files and should use crlf
8+
*.bat text eol=crlf
9+

.gitignore

+76
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,76 @@
1+
# Created by https://www.toptal.com/developers/gitignore/api/gradle,java,visualstudiocode
2+
# Edit at https://www.toptal.com/developers/gitignore?templates=gradle,java,visualstudiocode
3+
4+
### Java ###
5+
# Compiled class file
6+
*.class
7+
8+
# Log file
9+
*.log
10+
11+
# BlueJ files
12+
*.ctxt
13+
14+
# Mobile Tools for Java (J2ME)
15+
.mtj.tmp/
16+
17+
# Package Files #
18+
*.jar
19+
*.war
20+
*.nar
21+
*.ear
22+
*.zip
23+
*.tar.gz
24+
*.rar
25+
26+
# virtual machine crash logs, see http://www.java.com/en/download/help/error_hotspot.xml
27+
hs_err_pid*
28+
replay_pid*
29+
30+
### VisualStudioCode ###
31+
.vscode/*
32+
!.vscode/settings.json
33+
!.vscode/tasks.json
34+
!.vscode/launch.json
35+
!.vscode/extensions.json
36+
!.vscode/*.code-snippets
37+
38+
# Local History for Visual Studio Code
39+
.history/
40+
41+
# Built Visual Studio Code Extensions
42+
*.vsix
43+
44+
### VisualStudioCode Patch ###
45+
# Ignore all local history of files
46+
.history
47+
.ionide
48+
49+
### Gradle ###
50+
.gradle
51+
**/build/
52+
!src/**/build/
53+
54+
# Ignore Gradle GUI config
55+
gradle-app.setting
56+
57+
# Avoid ignoring Gradle wrapper jar file (.jar files are usually ignored)
58+
!gradle-wrapper.jar
59+
60+
# Avoid ignore Gradle wrappper properties
61+
!gradle-wrapper.properties
62+
63+
# Cache of project
64+
.gradletasknamecache
65+
66+
# Eclipse Gradle plugin generated files
67+
# Eclipse Core
68+
.project
69+
# JDT-specific (Eclipse Java Development Tools)
70+
.classpath
71+
72+
### Gradle Patch ###
73+
# Java heap dump
74+
*.hprof
75+
76+
# End of https://www.toptal.com/developers/gitignore/api/gradle,java,visualstudiocode

README.md

+26
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
# Revaulting
2+
3+
Revaulting is a plugin that improves the Vault system in the Minecraft 1.21 update by allowing players to reopen specific Vaults multiple times. With the appropriate Trial Key or Ominous Key, players can reopen Vaults they've already accessed, adding flexibility to the gameplay.
4+
5+
## Key Features
6+
- Allows Vaults and Ominous Vaults to be reopened multiple times.
7+
- Uses Persistent Data to track the number of times each player opens Vaults.
8+
- Checks player location every 20 ticks to determine if they are within the Vault's detection range.
9+
- Updates Vault reward data so players can receive rewards again.
10+
11+
## Installation
12+
1. Download the [Revaulting plugin](#).
13+
2. Place the plugin file into your server's `plugins` folder.
14+
3. Download and install [NBT-API](https://modrinth.com/plugin/nbtapi) plugin, if not already installed.
15+
4. Restart the server.
16+
17+
## Usage
18+
1. Join the Minecraft server and start playing.
19+
2. Use the Trial Key or Ominous Key to reopen Vaults multiple times.
20+
3. Every 20 ticks, the plugin will check if players are within the detection range of the Vault, allowing them to receive rewards.
21+
22+
## Contribution and Support
23+
Revaulting is an open-source project, and contributions are welcome. If you encounter any issues or have suggestions for improvements, please report them on the GitHub issue tracker.
24+
25+
## License
26+
Revaulting is licensed under [The Unlicense](https://unlicense.org/).

UNLICENSE

+24
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
This is free and unencumbered software released into the public domain.
2+
3+
Anyone is free to copy, modify, publish, use, compile, sell, or
4+
distribute this software, either in source code form or as a compiled
5+
binary, for any purpose, commercial or non-commercial, and by any
6+
means.
7+
8+
In jurisdictions that recognize copyright laws, the author or authors
9+
of this software dedicate any and all copyright interest in the
10+
software to the public domain. We make this dedication for the benefit
11+
of the public at large and to the detriment of our heirs and
12+
successors. We intend this dedication to be an overt act of
13+
relinquishment in perpetuity of all present and future rights to this
14+
software under copyright law.
15+
16+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
17+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
18+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
19+
IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR
20+
OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
21+
ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
22+
OTHER DEALINGS IN THE SOFTWARE.
23+
24+
For more information, please refer to <http://unlicense.org/>

bin/.gitignore

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
*
2+
!.gitignore

build.gradle

+71
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,71 @@
1+
import com.github.jengelman.gradle.plugins.shadow.tasks.ShadowJar
2+
3+
plugins {
4+
id "java"
5+
id "io.github.goooler.shadow" version "8.1.7"
6+
id "xyz.jpenilla.run-paper" version "2.3.0"
7+
}
8+
9+
group = "moe.minacle.minecraft"
10+
version = "0.2.0"
11+
12+
repositories {
13+
mavenCentral()
14+
maven {
15+
name "CodeMC"
16+
url "https://repo.codemc.io/repository/maven-public/"
17+
}
18+
maven {
19+
name "PaperMC"
20+
url "https://repo.papermc.io/repository/maven-public/"
21+
}
22+
maven {
23+
name "Sonatype"
24+
url "https://oss.sonatype.org/content/groups/public/"
25+
}
26+
maven {
27+
name "Sonatype"
28+
url "https://s01.oss.sonatype.org/content/groups/public/"
29+
}
30+
}
31+
32+
dependencies {
33+
compileOnly "de.tr7zw:item-nbt-api-plugin:2.13.1"
34+
compileOnly "io.papermc.paper:paper-api:1.21-R0.1-SNAPSHOT"
35+
implementation "org.bstats:bstats-bukkit:3.0.2"
36+
implementation "org.jetbrains:annotations:24.1.0"
37+
}
38+
39+
java {
40+
toolchain {
41+
languageVersion = JavaLanguageVersion.of(21)
42+
}
43+
}
44+
45+
processResources {
46+
def props = [version: version]
47+
inputs.properties props
48+
filteringCharset "UTF-8"
49+
filesMatching("paper-plugin.yml") {
50+
expand props
51+
}
52+
}
53+
54+
tasks {
55+
runServer {
56+
downloadPlugins {
57+
modrinth("nbtapi", "2.13.1")
58+
}
59+
minecraftVersion "1.21"
60+
}
61+
}
62+
63+
tasks.named("shadowJar", ShadowJar) {
64+
enableRelocation true
65+
relocationPrefix "moe.minacle.minecraft.plugins.revaulting.shadowjar"
66+
}
67+
68+
shadowJar {
69+
archiveClassifier.set("")
70+
minimize()
71+
}

gradle.properties

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
# This file was generated by the Gradle 'init' task.
2+
# https://docs.gradle.org/current/userguide/build_environment.html#sec:gradle_configuration_properties
3+
4+
org.gradle.parallel=true
5+
org.gradle.caching=true
6+

gradle/wrapper/gradle-wrapper.jar

42.4 KB
Binary file not shown.
+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
distributionBase=GRADLE_USER_HOME
2+
distributionPath=wrapper/dists
3+
distributionUrl=https\://services.gradle.org/distributions/gradle-8.8-bin.zip
4+
networkTimeout=10000
5+
validateDistributionUrl=true
6+
zipStoreBase=GRADLE_USER_HOME
7+
zipStorePath=wrapper/dists

0 commit comments

Comments
 (0)