Fix/rtp operation cleanup (#268)

* web editor

* editor command help

* editor sync cmd

* removed same user restriction

* removed player executed restriction

* no server identifier sent to server

* editor url updated

* config harsher verification + send world names to editor api

* no more session controls

* addons editor commands

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

* bettersync lib

* Own core and addon editor schemas with BetterSync validation

* Simplify editor metadata and publish core and addon schemas on release

* Release core and addons together using their Maven versions

* Exclude unavailable ProtocolLib executor snapshot from Addons build

* betterrtp compiling

* log upload commands fixed - upload to mclo.gs website

* Fix deferred player lookups retaining disconnected sessions (#265)

* Fix RTP operation retention on cancellation and failure

* start up fix
This commit is contained in:
RonanCraft authored and GitHub committed 2026-11-23 10:17:53 -05:00
1 parent a9e821497c
commit f1fc931b3e
8 files changed
+444 -39

No files matched your search

@@ -35,9 +35,17 @@ public class AddonsHandler {
}
public void unload() {
for (Addons addon : addons)
addon.disable();
addons.clear();
try {
for (Addons addon : addons)
addon.disable();
} finally {
addons.clear();
// Core retains these command objects after this plugin's classloader closes.
BetterRTP core = BetterRTP.getInstance();
if (core != null && core.getCmd() != null)
core.getCmd().commands.removeIf(command ->
command.getClass().getClassLoader() == getClass().getClassLoader());
}
}
public enum Addons {
@@ -41,8 +41,11 @@ public class Main extends JavaPlugin {
@Override
public void onDisable() {
if (editorBridge != null) editorBridge.close();
addonsHandler.unload();
try {
if (editorBridge != null) editorBridge.close();
} finally {
addonsHandler.unload();
}
}
public void load() {