Panel: plugin integrations (LuckPerms ranks + group mapping, reports), server event queue, developer API endpoints
This commit is contained in:
10 files changed
+906
-2
No files matched your search
@@ -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(
|
||||
|
||||
Reference in new issue
Block a user