Pumpkin/pumpkin-plugin-wit/v0.1.0/server.wit
Alexander Medvedev c15ebf181d chore: more plugin api work
also added bedrock fuzzing
2026-04-01 19:37:01 +02:00

23 lines
585 B
Plaintext

interface server {
enum difficulty {
peaceful,
easy,
normal,
hard,
}
resource server {
/// Returns the current difficulty level of the server
get-difficulty: func() -> difficulty;
/// Returns the total number of players connected across all worlds.
get-player-count: func() -> u32;
/// Returns the rolling average Milliseconds Per Tick (MSPT) over the last 100 ticks
get-mspt: func() -> f64;
/// Returns the effective Ticks Per Second (TPS)
get-tps: func() -> f64;
}
}