Panel: plugin integrations (LuckPerms ranks + group mapping, reports), server event queue, developer API endpoints

This commit is contained in:
Claude committed 2026-09-30 18:06:18 +00:00
1 parent c256c15d0e
commit badb5fccc0
10 files changed
+906 -2

No files matched your search

+6 -1
View File
@@ -578,7 +578,12 @@ pub async fn sync(GameServer(server): GameServer, State(state): State<AppState>,
kick.push(json!({ "uuid": uuid, "message": verdict.message }));
}
}
Ok(Json(json!({ "ok": true, "kick": kick, "sync_interval_secs": SYNC_INTERVAL_SECS })))
// Events for plugins to turn into their own (level-ups, achievements, guild changes).
let notifications = {
let mut conn = state.db.acquire().await?;
super::integrations::take_notifications(&mut conn, server.id).await?
};
Ok(Json(json!({ "ok": true, "kick": kick, "sync_interval_secs": SYNC_INTERVAL_SECS, "notifications": notifications })))
}
async fn update_progression_for_delta(