moved rtp to /betterrtp-core to create a better env for maven compiling

This commit is contained in:
Ronan committed 2026-11-10 20:13:09 +01:00
1 parent 621f3a6876
commit 6eca1c5c73
199 files changed
+516 -454

No files matched your search

+15 -5
View File
@@ -5,6 +5,20 @@
BetterRTP-Addons is a paid resource, adding optional middleware to BetterRTP to help financially support the developement of BetterRTP.
But this can be compiled free of charge if you know how to compile maven resources!
## Web configuration editor
[Open the BetterRTP Addons editor](https://www.minecentral.net/editor/betterrtp-addons) to start with defaults or upload config.yml. Edit addon toggles, menus, command lists, and flashback warnings. Install the matching updated BetterRTP JAR too: Addons shares its editor bridge.
1. Run `/rtp addons editor` on your server and open the private link it returns.
2. Edit the form or YAML and choose **Save and get sync command**.
3. Run `/betterrtp addons editorsync <token>` in Minecraft to apply that saved version.
Console and players with `betterrtp.addon.editor` (default: op) can use both commands. No account or premium is required for editing, downloading, or command sync. Upload links last 24 hours; each sync command works once and expires after 15 minutes. Keep links and commands private.
Sync validates config.yml, saves a backup in `editor-backups`, then replaces the file and reloads the plugin. Nothing changes until the sync command runs. If reload fails after writing, the new file remains in place and Minecraft reports the error.
Shared behavior, deployment, and verification are documented in the [webapp repository](https://github.com/RonanPlugins/BetterRTP-Webapp/blob/main/docs/web-editor.md#addons-deployment).
## Where's the Lang files?/Want to Contribute translating?
All language files are located [here](src/main/resources/lang)
feel free to fork one of the language files and help translate!
@@ -29,8 +43,4 @@ The wiki is available [here](../../../wiki)!
<b><i><a href="https://www.spigotmc.org/resources/authors/superronancraft.13025/">Check out my other plugins!</a></i></b>
</p>
## Web configuration editor
Run `/rtp addons editor`, edit your config on MineCentral, and choose **Save and get sync command**. Apply it with `/betterrtp addons editorsync <token>`. Console and players with `betterrtp.addon.editor` (default: op) can use these commands.
Install the matching updated BetterRTP JAR as well: Addons shares its editor bridge. See [web editor setup](../docs/web-editor.md) for build, website migration, validation, and backup details.
Build both BetterRTP and Addons together by running `mvn clean package` from the parent BetterRTP directory. Both finished JARs are written to the parent directory’s `dist/` folder.
+44 -1
View File
@@ -34,6 +34,14 @@
</resources>
<finalName>${project.artifactId}-${project.version}</finalName>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
<version>3.4.2</version>
<configuration>
<outputDirectory>${project.basedir}/../dist</outputDirectory>
</configuration>
</plugin>
<plugin>
<!-- Shade PaperLib into project -->
<groupId>org.apache.maven.plugins</groupId>
@@ -66,6 +74,41 @@
<target>1.8</target>
</configuration>
</plugin>
<plugin>
<!-- Remove only Shade's unbundled backup, after the final JAR is ready. -->
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-clean-plugin</artifactId>
<version>3.5.0</version>
<configuration>
<filesets>
<fileset>
<directory>${project.basedir}/../dist</directory>
<includes>
<include>${project.artifactId}-*.jar</include>
<include>original-${project.artifactId}-*.jar</include>
</includes>
<followSymlinks>false</followSymlinks>
</fileset>
</filesets>
</configuration>
<executions>
<execution>
<id>remove-unshaded-backup</id>
<phase>package</phase>
<goals><goal>clean</goal></goals>
<configuration>
<excludeDefaultDirectories>true</excludeDefaultDirectories>
<filesets combine.self="override">
<fileset>
<directory>${project.basedir}/../dist</directory>
<includes><include>original-${project.build.finalName}.jar</include></includes>
<followSymlinks>false</followSymlinks>
</fileset>
</filesets>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
@@ -128,7 +171,7 @@
<dependency>
<groupId>org.projectlombok</groupId>
<artifactId>lombok</artifactId>
<version>1.18.22</version>
<version>1.18.38</version>
<scope>provided</scope>
</dependency>
<dependency>