API reference / @jsprismarine/management-protocol / mojangApi
mojangApi
Interfaces
IncomingIpBan
Defined in: mojangApi.ts:24
The incoming_ip_ban component.
Properties
expires?
readonlyoptionalexpires?:string
Defined in: mojangApi.ts:25
ip?
readonlyoptionalip?:string
Defined in: mojangApi.ts:26
player?
readonlyoptionalplayer?:Player
Defined in: mojangApi.ts:27
reason?
readonlyoptionalreason?:string
Defined in: mojangApi.ts:28
source?
readonlyoptionalsource?:string
Defined in: mojangApi.ts:29
IpBan
Defined in: mojangApi.ts:33
The ip_ban component.
Properties
expires?
readonlyoptionalexpires?:string
Defined in: mojangApi.ts:34
ip?
readonlyoptionalip?:string
Defined in: mojangApi.ts:35
reason?
readonlyoptionalreason?:string
Defined in: mojangApi.ts:36
source?
readonlyoptionalsource?:string
Defined in: mojangApi.ts:37
KickPlayer
Defined in: mojangApi.ts:41
The kick_player component.
Properties
message?
readonlyoptionalmessage?:Message
Defined in: mojangApi.ts:42
player?
readonlyoptionalplayer?:Player
Defined in: mojangApi.ts:43
Message
Defined in: mojangApi.ts:47
The message component.
Properties
literal?
readonlyoptionalliteral?:string
Defined in: mojangApi.ts:48
translatable?
readonlyoptionaltranslatable?:string
Defined in: mojangApi.ts:49
translatableParams?
readonlyoptionaltranslatableParams?: readonlystring[]
Defined in: mojangApi.ts:50
Methods
Defined in: mojangApi.ts:108
Every method a client can call, by name: its parameters by name, and its result.
Properties
minecraft:allowlist
minecraft:allowlist:
object
Defined in: mojangApi.ts:110
Get the allowlist
params
readonlyparams:Record<string,never>
result
readonlyresult: readonlyPlayer[]
minecraft:allowlist/add
minecraft:allowlist/add:
object
Defined in: mojangApi.ts:117
Add players to allowlist
params
readonlyparams:object
params.add
readonlyadd: readonlyPlayer[]
result
readonlyresult: readonlyPlayer[]
minecraft:allowlist/clear
minecraft:allowlist/clear:
object
Defined in: mojangApi.ts:127
Clear all players in allowlist
params
readonlyparams:Record<string,never>
result
readonlyresult: readonlyPlayer[]
minecraft:allowlist/remove
minecraft:allowlist/remove:
object
Defined in: mojangApi.ts:122
Remove players from allowlist
params
readonlyparams:object
params.remove
readonlyremove: readonlyPlayer[]
result
readonlyresult: readonlyPlayer[]
minecraft:allowlist/set
minecraft:allowlist/set:
object
Defined in: mojangApi.ts:112
Set the allowlist
params
readonlyparams:object
params.players
readonlyplayers: readonlyPlayer[]
result
readonlyresult: readonlyPlayer[]
minecraft:bans
minecraft:bans:
object
Defined in: mojangApi.ts:129
Get the ban list
params
readonlyparams:Record<string,never>
result
readonlyresult: readonlyUserBan[]
minecraft:bans/add
minecraft:bans/add:
object
Defined in: mojangApi.ts:136
Add players to ban list
params
readonlyparams:object
params.add
readonlyadd: readonlyUserBan[]
result
readonlyresult: readonlyUserBan[]
minecraft:bans/clear
minecraft:bans/clear:
object
Defined in: mojangApi.ts:146
Clear all players in ban list
params
readonlyparams:Record<string,never>
result
readonlyresult: readonlyUserBan[]
minecraft:bans/remove
minecraft:bans/remove:
object
Defined in: mojangApi.ts:141
Remove players from ban list
params
readonlyparams:object
params.remove
readonlyremove: readonlyPlayer[]
result
readonlyresult: readonlyUserBan[]
minecraft:bans/set
minecraft:bans/set:
object
Defined in: mojangApi.ts:131
Set the banlist
params
readonlyparams:object
params.bans
readonlybans: readonlyUserBan[]
result
readonlyresult: readonlyUserBan[]
minecraft:gamerules
minecraft:gamerules:
object
Defined in: mojangApi.ts:356
Get the available game rule keys and their current values
params
readonlyparams:Record<string,never>
result
readonlyresult: readonlyTypedGameRule[]
minecraft:gamerules/update
minecraft:gamerules/update:
object
Defined in: mojangApi.ts:358
Update game rule value
params
readonlyparams:object
params.gamerule
readonlygamerule:UntypedGameRule
result
readonlyresult:TypedGameRule
minecraft:ip_bans
minecraft:ip_bans:
object
Defined in: mojangApi.ts:148
Get the ip ban list
params
readonlyparams:Record<string,never>
result
readonlyresult: readonlyIpBan[]
minecraft:ip_bans/add
minecraft:ip_bans/add:
object
Defined in: mojangApi.ts:155
Add ip to ban list
params
readonlyparams:object
params.add
readonlyadd: readonlyIncomingIpBan[]
result
readonlyresult: readonlyIpBan[]
minecraft:ip_bans/clear
minecraft:ip_bans/clear:
object
Defined in: mojangApi.ts:165
Clear all ips in ban list
params
readonlyparams:Record<string,never>
result
readonlyresult: readonlyIpBan[]
minecraft:ip_bans/remove
minecraft:ip_bans/remove:
object
Defined in: mojangApi.ts:160
Remove ip from ban list
params
readonlyparams:object
params.ip
readonlyip: readonlystring[]
result
readonlyresult: readonlyIpBan[]
minecraft:ip_bans/set
minecraft:ip_bans/set:
object
Defined in: mojangApi.ts:150
Set the ip banlist
params
readonlyparams:object
params.banlist
readonlybanlist: readonlyIpBan[]
result
readonlyresult: readonlyIpBan[]
minecraft:operators
minecraft:operators:
object
Defined in: mojangApi.ts:174
Get all oped players
params
readonlyparams:Record<string,never>
result
readonlyresult: readonlyOperator[]
minecraft:operators/add
minecraft:operators/add:
object
Defined in: mojangApi.ts:181
Op players
params
readonlyparams:object
params.add
readonlyadd: readonlyOperator[]
result
readonlyresult: readonlyOperator[]
minecraft:operators/clear
minecraft:operators/clear:
object
Defined in: mojangApi.ts:191
Deop all players
params
readonlyparams:Record<string,never>
result
readonlyresult: readonlyOperator[]
minecraft:operators/remove
minecraft:operators/remove:
object
Defined in: mojangApi.ts:186
Deop players
params
readonlyparams:object
params.remove
readonlyremove: readonlyPlayer[]
result
readonlyresult: readonlyOperator[]
minecraft:operators/set
minecraft:operators/set:
object
Defined in: mojangApi.ts:176
Set all oped players
params
readonlyparams:object
params.operators
readonlyoperators: readonlyOperator[]
result
readonlyresult: readonlyOperator[]
minecraft:players
minecraft:players:
object
Defined in: mojangApi.ts:167
Get all connected players
params
readonlyparams:Record<string,never>
result
readonlyresult: readonlyPlayer[]
minecraft:players/kick
minecraft:players/kick:
object
Defined in: mojangApi.ts:169
Kick players
params
readonlyparams:object
params.kick
readonlykick: readonlyKickPlayer[]
result
readonlyresult: readonlyPlayer[]
minecraft:server/save
minecraft:server/save:
object
Defined in: mojangApi.ts:195
Save server state
params
readonlyparams:object
params.flush
readonlyflush:boolean
result
readonlyresult:boolean
minecraft:server/status
minecraft:server/status:
object
Defined in: mojangApi.ts:193
Get server status
params
readonlyparams:Record<string,never>
result
readonlyresult:ServerState
minecraft:server/stop
minecraft:server/stop:
object
Defined in: mojangApi.ts:197
Stop server
params
readonlyparams:Record<string,never>
result
readonlyresult:boolean
minecraft:server/system_message
minecraft:server/system_message:
object
Defined in: mojangApi.ts:199
Send a system message
params
readonlyparams:object
params.message
readonlymessage:SystemMessage
result
readonlyresult:boolean
minecraft:serversettings/accept_transfers
minecraft:serversettings/accept_transfers:
object
Defined in: mojangApi.ts:302
Get whether the server accepts player transfers from other servers
params
readonlyparams:Record<string,never>
result
readonlyresult:boolean
minecraft:serversettings/accept_transfers/set
minecraft:serversettings/accept_transfers/set:
object
Defined in: mojangApi.ts:304
Enable or disable accepting player transfers from other servers
params
readonlyparams:object
params.accept
readonlyaccept:boolean
result
readonlyresult:boolean
minecraft:serversettings/allow_flight
minecraft:serversettings/allow_flight:
object
Defined in: mojangApi.ts:253
Get whether flight is allowed for players in Survival mode
params
readonlyparams:Record<string,never>
result
readonlyresult:boolean
minecraft:serversettings/allow_flight/set
minecraft:serversettings/allow_flight/set:
object
Defined in: mojangApi.ts:255
Allow or disallow flight for players in Survival mode
params
readonlyparams:object
params.allow
readonlyallow:boolean
result
readonlyresult:boolean
minecraft:serversettings/autosave
minecraft:serversettings/autosave:
object
Defined in: mojangApi.ts:204
Get whether automatic world saving is enabled on the server
params
readonlyparams:Record<string,never>
result
readonlyresult:boolean
minecraft:serversettings/autosave/set
minecraft:serversettings/autosave/set:
object
Defined in: mojangApi.ts:206
Enable or disable automatic world saving on the server
params
readonlyparams:object
params.enable
readonlyenable:boolean
result
readonlyresult:boolean
minecraft:serversettings/difficulty
minecraft:serversettings/difficulty:
object
Defined in: mojangApi.ts:211
Get the current difficulty level of the server
params
readonlyparams:Record<string,never>
result
readonlyresult:Difficulty
minecraft:serversettings/difficulty/set
minecraft:serversettings/difficulty/set:
object
Defined in: mojangApi.ts:213
Set the difficulty level of the server
params
readonlyparams:object
params.difficulty
readonlydifficulty:Difficulty
result
readonlyresult:Difficulty
minecraft:serversettings/enforce_allowlist
minecraft:serversettings/enforce_allowlist:
object
Defined in: mojangApi.ts:218
Get whether allowlist enforcement is enabled (kicks players immediately when removed from allowlist)
params
readonlyparams:Record<string,never>
result
readonlyresult:boolean
minecraft:serversettings/enforce_allowlist/set
minecraft:serversettings/enforce_allowlist/set:
object
Defined in: mojangApi.ts:220
Enable or disable allowlist enforcement (when enabled, players are kicked immediately upon removal from allowlist)
params
readonlyparams:object
params.enforce
readonlyenforce:boolean
result
readonlyresult:boolean
minecraft:serversettings/entity_broadcast_range
minecraft:serversettings/entity_broadcast_range:
object
Defined in: mojangApi.ts:346
Get the entity broadcast range as a percentage
params
readonlyparams:Record<string,never>
result
readonlyresult:number
minecraft:serversettings/entity_broadcast_range/set
minecraft:serversettings/entity_broadcast_range/set:
object
Defined in: mojangApi.ts:351
Set the entity broadcast range as a percentage
params
readonlyparams:object
params.percentage_points
readonlypercentage_points:number
result
readonlyresult:number
minecraft:serversettings/force_game_mode
minecraft:serversettings/force_game_mode:
object
Defined in: mojangApi.ts:274
Get whether players are forced to use the server's default game mode
params
readonlyparams:Record<string,never>
result
readonlyresult:boolean
minecraft:serversettings/force_game_mode/set
minecraft:serversettings/force_game_mode/set:
object
Defined in: mojangApi.ts:276
Enable or disable forcing players to use the server's default game mode
params
readonlyparams:object
params.force
readonlyforce:boolean
result
readonlyresult:boolean
minecraft:serversettings/game_mode
minecraft:serversettings/game_mode:
object
Defined in: mojangApi.ts:281
Get the server's default game mode
params
readonlyparams:Record<string,never>
result
readonlyresult:GameType
minecraft:serversettings/game_mode/set
minecraft:serversettings/game_mode/set:
object
Defined in: mojangApi.ts:283
Set the server's default game mode
params
readonlyparams:object
params.mode
readonlymode:GameType
result
readonlyresult:GameType
minecraft:serversettings/hide_online_players
minecraft:serversettings/hide_online_players:
object
Defined in: mojangApi.ts:329
Get whether the server hides online player information from status queries
params
readonlyparams:Record<string,never>
result
readonlyresult:boolean
minecraft:serversettings/hide_online_players/set
minecraft:serversettings/hide_online_players/set:
object
Defined in: mojangApi.ts:334
Enable or disable hiding online player information from status queries
params
readonlyparams:object
params.hide
readonlyhide:boolean
result
readonlyresult:boolean
minecraft:serversettings/max_players
minecraft:serversettings/max_players:
object
Defined in: mojangApi.ts:232
Get the maximum number of players allowed to connect to the server
params
readonlyparams:Record<string,never>
result
readonlyresult:number
minecraft:serversettings/max_players/set
minecraft:serversettings/max_players/set:
object
Defined in: mojangApi.ts:234
Set the maximum number of players allowed to connect to the server
params
readonlyparams:object
params.max
readonlymax:number
result
readonlyresult:number
minecraft:serversettings/motd
minecraft:serversettings/motd:
object
Defined in: mojangApi.ts:260
Get the server's message of the day displayed to players
params
readonlyparams:Record<string,never>
result
readonlyresult:string
minecraft:serversettings/motd/set
minecraft:serversettings/motd/set:
object
Defined in: mojangApi.ts:262
Set the server's message of the day displayed to players
params
readonlyparams:object
params.message
readonlymessage:string
result
readonlyresult:string
minecraft:serversettings/operator_user_permission_level
minecraft:serversettings/operator_user_permission_level:
object
Defined in: mojangApi.ts:319
Get default operator permission level
params
readonlyparams:Record<string,never>
result
readonlyresult:number
minecraft:serversettings/operator_user_permission_level/set
minecraft:serversettings/operator_user_permission_level/set:
object
Defined in: mojangApi.ts:324
Set default operator permission level
params
readonlyparams:object
params.level
readonlylevel:number
result
readonlyresult:number
minecraft:serversettings/pause_when_empty_seconds
minecraft:serversettings/pause_when_empty_seconds:
object
Defined in: mojangApi.ts:236
Get the number of seconds before the game is automatically paused when no players are online
params
readonlyparams:Record<string,never>
result
readonlyresult:number
minecraft:serversettings/pause_when_empty_seconds/set
minecraft:serversettings/pause_when_empty_seconds/set:
object
Defined in: mojangApi.ts:241
Set the number of seconds before the game is automatically paused when no players are online
params
readonlyparams:object
params.seconds
readonlyseconds:number
result
readonlyresult:number
minecraft:serversettings/player_idle_timeout
minecraft:serversettings/player_idle_timeout:
object
Defined in: mojangApi.ts:246
Get the number of seconds before idle players are automatically kicked from the server
params
readonlyparams:Record<string,never>
result
readonlyresult:number
minecraft:serversettings/player_idle_timeout/set
minecraft:serversettings/player_idle_timeout/set:
object
Defined in: mojangApi.ts:248
Set the number of seconds before idle players are automatically kicked from the server
params
readonlyparams:object
params.seconds
readonlyseconds:number
result
readonlyresult:number
minecraft:serversettings/simulation_distance
minecraft:serversettings/simulation_distance:
object
Defined in: mojangApi.ts:295
Get the server's simulation distance in chunks
params
readonlyparams:Record<string,never>
result
readonlyresult:number
minecraft:serversettings/simulation_distance/set
minecraft:serversettings/simulation_distance/set:
object
Defined in: mojangApi.ts:297
Set the server's simulation distance in chunks
params
readonlyparams:object
params.distance
readonlydistance:number
result
readonlyresult:number
minecraft:serversettings/spawn_protection_radius
minecraft:serversettings/spawn_protection_radius:
object
Defined in: mojangApi.ts:264
Get the spawn protection radius in blocks (only operators can edit within this area)
params
readonlyparams:Record<string,never>
result
readonlyresult:number
minecraft:serversettings/spawn_protection_radius/set
minecraft:serversettings/spawn_protection_radius/set:
object
Defined in: mojangApi.ts:269
Set the spawn protection radius in blocks (only operators can edit within this area)
params
readonlyparams:object
params.radius
readonlyradius:number
result
readonlyresult:number
minecraft:serversettings/status_heartbeat_interval
minecraft:serversettings/status_heartbeat_interval:
object
Defined in: mojangApi.ts:309
Get the interval in seconds between server status heartbeats
params
readonlyparams:Record<string,never>
result
readonlyresult:number
minecraft:serversettings/status_heartbeat_interval/set
minecraft:serversettings/status_heartbeat_interval/set:
object
Defined in: mojangApi.ts:314
Set the interval in seconds between server status heartbeats
params
readonlyparams:object
params.seconds
readonlyseconds:number
result
readonlyresult:number
minecraft:serversettings/status_replies
minecraft:serversettings/status_replies:
object
Defined in: mojangApi.ts:339
Get whether the server responds to connection status requests
params
readonlyparams:Record<string,never>
result
readonlyresult:boolean
minecraft:serversettings/status_replies/set
minecraft:serversettings/status_replies/set:
object
Defined in: mojangApi.ts:341
Enable or disable the server responding to connection status requests
params
readonlyparams:object
params.enable
readonlyenable:boolean
result
readonlyresult:boolean
minecraft:serversettings/use_allowlist
minecraft:serversettings/use_allowlist:
object
Defined in: mojangApi.ts:225
Get whether the allowlist is enabled on the server
params
readonlyparams:Record<string,never>
result
readonlyresult:boolean
minecraft:serversettings/use_allowlist/set
minecraft:serversettings/use_allowlist/set:
object
Defined in: mojangApi.ts:227
Enable or disable the allowlist on the server (controls whether only allowlisted players can join)
params
readonlyparams:object
params.use
readonlyuse:boolean
result
readonlyresult:boolean
minecraft:serversettings/view_distance
minecraft:serversettings/view_distance:
object
Defined in: mojangApi.ts:288
Get the server's view distance in chunks
params
readonlyparams:Record<string,never>
result
readonlyresult:number
minecraft:serversettings/view_distance/set
minecraft:serversettings/view_distance/set:
object
Defined in: mojangApi.ts:290
Set the server's view distance in chunks
params
readonlyparams:object
params.distance
readonlydistance:number
result
readonlyresult:number
Notifications
Defined in: mojangApi.ts:365
Every notification the server can send, by name: its parameters by name.
Properties
minecraft:notification/allowlist/added
minecraft:notification/allowlist/added:
object
Defined in: mojangApi.ts:393
Player was added to allowlist
player
readonlyplayer:Player
minecraft:notification/allowlist/removed
minecraft:notification/allowlist/removed:
object
Defined in: mojangApi.ts:395
Player was removed from allowlist
player
readonlyplayer:Player
minecraft:notification/bans/added
minecraft:notification/bans/added:
object
Defined in: mojangApi.ts:401
Player was added to ban list
player
readonlyplayer:UserBan
minecraft:notification/bans/removed
minecraft:notification/bans/removed:
object
Defined in: mojangApi.ts:403
Player was removed from ban list
player
readonlyplayer:Player
minecraft:notification/gamerules/updated
minecraft:notification/gamerules/updated:
object
Defined in: mojangApi.ts:405
Gamerule was changed
gamerule
readonlygamerule:TypedGameRule
minecraft:notification/ip_bans/added
minecraft:notification/ip_bans/added:
object
Defined in: mojangApi.ts:397
Ip was added to ip ban list
player
readonlyplayer:IpBan
minecraft:notification/ip_bans/removed
minecraft:notification/ip_bans/removed:
object
Defined in: mojangApi.ts:399
Ip was removed from ip ban list
player
readonlyplayer:string
minecraft:notification/operators/added
minecraft:notification/operators/added:
object
Defined in: mojangApi.ts:389
Player was oped
player
readonlyplayer:Operator
minecraft:notification/operators/removed
minecraft:notification/operators/removed:
object
Defined in: mojangApi.ts:391
Player was deoped
player
readonlyplayer:Operator
minecraft:notification/players/joined
minecraft:notification/players/joined:
object
Defined in: mojangApi.ts:385
Player joined
player
readonlyplayer:Player
minecraft:notification/players/left
minecraft:notification/players/left:
object
Defined in: mojangApi.ts:387
Player left
player
readonlyplayer:Player
minecraft:notification/server/activity
minecraft:notification/server/activity:
Record<string,never>
Defined in: mojangApi.ts:375
Server activity occurred. Rate limited to 1 notification per 30 seconds
minecraft:notification/server/saved
minecraft:notification/server/saved:
Record<string,never>
Defined in: mojangApi.ts:373
Server save completed
minecraft:notification/server/saving
minecraft:notification/server/saving:
Record<string,never>
Defined in: mojangApi.ts:371
Server save started
minecraft:notification/server/started
minecraft:notification/server/started:
Record<string,never>
Defined in: mojangApi.ts:367
Server started
minecraft:notification/server/status
minecraft:notification/server/status:
object
Defined in: mojangApi.ts:407
Server status heartbeat, including before the server has spun up
status
readonlystatus:ServerState
minecraft:notification/server/stopping
minecraft:notification/server/stopping:
Record<string,never>
Defined in: mojangApi.ts:369
Server shutting down
minecraft:notification/world/upgrade_failed
minecraft:notification/world/upgrade_failed:
object
Defined in: mojangApi.ts:383
World upgrade failed
reason
readonlyreason:string
minecraft:notification/world/upgrade_finished
minecraft:notification/world/upgrade_finished:
Record<string,never>
Defined in: mojangApi.ts:381
World upgrade finished
minecraft:notification/world/upgrade_progress
minecraft:notification/world/upgrade_progress:
object
Defined in: mojangApi.ts:379
World upgrade progress. Rate limited to 1 notification per second
progress
readonlyprogress:number
minecraft:notification/world/upgrade_started
minecraft:notification/world/upgrade_started:
Record<string,never>
Defined in: mojangApi.ts:377
World upgrade started
Operator
Defined in: mojangApi.ts:54
The operator component.
Properties
bypassesPlayerLimit?
readonlyoptionalbypassesPlayerLimit?:boolean
Defined in: mojangApi.ts:55
permissionLevel?
readonlyoptionalpermissionLevel?:number
Defined in: mojangApi.ts:56
player?
readonlyoptionalplayer?:Player
Defined in: mojangApi.ts:57
Player
Defined in: mojangApi.ts:61
The player component.
Properties
id?
readonlyoptionalid?:string
Defined in: mojangApi.ts:62
name?
readonlyoptionalname?:string
Defined in: mojangApi.ts:63
ServerState
Defined in: mojangApi.ts:67
The server_state component.
Properties
players?
readonlyoptionalplayers?: readonlyPlayer[]
Defined in: mojangApi.ts:68
started?
readonlyoptionalstarted?:boolean
Defined in: mojangApi.ts:69
version?
readonlyoptionalversion?:Version
Defined in: mojangApi.ts:70
SystemMessage
Defined in: mojangApi.ts:74
The system_message component.
Properties
message?
readonlyoptionalmessage?:Message
Defined in: mojangApi.ts:75
overlay?
readonlyoptionaloverlay?:boolean
Defined in: mojangApi.ts:76
receivingPlayers?
readonlyoptionalreceivingPlayers?: readonlyPlayer[]
Defined in: mojangApi.ts:77
TypedGameRule
Defined in: mojangApi.ts:81
The typed_game_rule component.
Properties
key?
readonlyoptionalkey?:string
Defined in: mojangApi.ts:83
type?
readonlyoptionaltype?:"boolean"|"integer"
Defined in: mojangApi.ts:82
value?
readonlyoptionalvalue?:number|boolean
Defined in: mojangApi.ts:84
UntypedGameRule
Defined in: mojangApi.ts:88
The untyped_game_rule component.
Properties
key?
readonlyoptionalkey?:string
Defined in: mojangApi.ts:89
value?
readonlyoptionalvalue?:number|boolean
Defined in: mojangApi.ts:90
UserBan
Defined in: mojangApi.ts:94
The user_ban component.
Properties
expires?
readonlyoptionalexpires?:string
Defined in: mojangApi.ts:95
player?
readonlyoptionalplayer?:Player
Defined in: mojangApi.ts:96
reason?
readonlyoptionalreason?:string
Defined in: mojangApi.ts:97
source?
readonlyoptionalsource?:string
Defined in: mojangApi.ts:98
Version
Defined in: mojangApi.ts:102
The version component.
Properties
name?
readonlyoptionalname?:string
Defined in: mojangApi.ts:103
protocol?
readonlyoptionalprotocol?:number
Defined in: mojangApi.ts:104
Type Aliases
Difficulty
Difficulty =
"peaceful"|"easy"|"normal"|"hard"
Defined in: mojangApi.ts:18
The difficulty component.
GameType
GameType =
"survival"|"creative"|"adventure"|"spectator"
Defined in: mojangApi.ts:21
The game_type component.
Variables
API_VERSION
constAPI_VERSION:"3.1.0"='3.1.0'
Defined in: mojangApi.ts:9
The Server Management Protocol version of that release, as its rpc.discover reports it.
JAVA_RELEASE
constJAVA_RELEASE:"26.3"='26.3'
Defined in: mojangApi.ts:6
The Java release whose data generator wrote mojangApi.json.
MOJANG_API
constMOJANG_API:object=document
Defined in: mojangApi.ts:15
Java 26.3's OpenRPC document, reports/json-rpc-api-schema.json as its data generator wrote it: every method and notification of the protocol, with its parameters and result.
Type Declaration
components
components:
object
components.schemas
schemas:
object
components.schemas.difficulty
difficulty:
object
components.schemas.difficulty.enum
enum:
string[]
components.schemas.difficulty.type
type:
string="string"
components.schemas.game_type
game_type:
object
components.schemas.game_type.enum
enum:
string[]
components.schemas.game_type.type
type:
string="string"
components.schemas.incoming_ip_ban
incoming_ip_ban:
object
components.schemas.incoming_ip_ban.properties
properties:
object
components.schemas.incoming_ip_ban.properties.expires
expires:
object
components.schemas.incoming_ip_ban.properties.expires.type
type:
string="string"
components.schemas.incoming_ip_ban.properties.ip
ip:
object
components.schemas.incoming_ip_ban.properties.ip.type
type:
string="string"
components.schemas.incoming_ip_ban.properties.player
player:
object
components.schemas.incoming_ip_ban.properties.player.$ref
$ref:
string="#/components/schemas/player"
components.schemas.incoming_ip_ban.properties.reason
reason:
object
components.schemas.incoming_ip_ban.properties.reason.type
type:
string="string"
components.schemas.incoming_ip_ban.properties.source
source:
object
components.schemas.incoming_ip_ban.properties.source.type
type:
string="string"
components.schemas.incoming_ip_ban.type
type:
string="object"
components.schemas.ip_ban
ip_ban:
object
components.schemas.ip_ban.properties
properties:
object
components.schemas.ip_ban.properties.expires
expires:
object
components.schemas.ip_ban.properties.expires.type
type:
string="string"
components.schemas.ip_ban.properties.ip
ip:
object
components.schemas.ip_ban.properties.ip.type
type:
string="string"
components.schemas.ip_ban.properties.reason
reason:
object
components.schemas.ip_ban.properties.reason.type
type:
string="string"
components.schemas.ip_ban.properties.source
source:
object
components.schemas.ip_ban.properties.source.type
type:
string="string"
components.schemas.ip_ban.type
type:
string="object"
components.schemas.kick_player
kick_player:
object
components.schemas.kick_player.properties
properties:
object
components.schemas.kick_player.properties.message
message:
object
components.schemas.kick_player.properties.message.$ref
$ref:
string="#/components/schemas/message"
components.schemas.kick_player.properties.player
player:
object
components.schemas.kick_player.properties.player.$ref
$ref:
string="#/components/schemas/player"
components.schemas.kick_player.type
type:
string="object"
components.schemas.message
message:
object
components.schemas.message.properties
properties:
object
components.schemas.message.properties.literal
literal:
object
components.schemas.message.properties.literal.type
type:
string="string"
components.schemas.message.properties.translatable
translatable:
object
components.schemas.message.properties.translatable.type
type:
string="string"
components.schemas.message.properties.translatableParams
translatableParams:
object
components.schemas.message.properties.translatableParams.items
items:
object
components.schemas.message.properties.translatableParams.items.type
type:
string="string"
components.schemas.message.properties.translatableParams.type
type:
string="array"
components.schemas.message.type
type:
string="object"
components.schemas.operator
operator:
object
components.schemas.operator.properties
properties:
object
components.schemas.operator.properties.bypassesPlayerLimit
bypassesPlayerLimit:
object
components.schemas.operator.properties.bypassesPlayerLimit.type
type:
string="boolean"
components.schemas.operator.properties.permissionLevel
permissionLevel:
object
components.schemas.operator.properties.permissionLevel.type
type:
string="integer"
components.schemas.operator.properties.player
player:
object
components.schemas.operator.properties.player.$ref
$ref:
string="#/components/schemas/player"
components.schemas.operator.type
type:
string="object"
components.schemas.player
player:
object
components.schemas.player.properties
properties:
object
components.schemas.player.properties.id
id:
object
components.schemas.player.properties.id.type
type:
string="string"
components.schemas.player.properties.name
name:
object
components.schemas.player.properties.name.type
type:
string="string"
components.schemas.player.type
type:
string="object"
components.schemas.server_state
server_state:
object
components.schemas.server_state.properties
properties:
object
components.schemas.server_state.properties.players
players:
object
components.schemas.server_state.properties.players.items
items:
object
components.schemas.server_state.properties.players.items.$ref
$ref:
string="#/components/schemas/player"
components.schemas.server_state.properties.players.type
type:
string="array"
components.schemas.server_state.properties.started
started:
object
components.schemas.server_state.properties.started.type
type:
string="boolean"
components.schemas.server_state.properties.version
version:
object
components.schemas.server_state.properties.version.$ref
$ref:
string="#/components/schemas/version"
components.schemas.server_state.type
type:
string="object"
components.schemas.system_message
system_message:
object
components.schemas.system_message.properties
properties:
object
components.schemas.system_message.properties.message
message:
object
components.schemas.system_message.properties.message.$ref
$ref:
string="#/components/schemas/message"
components.schemas.system_message.properties.overlay
overlay:
object
components.schemas.system_message.properties.overlay.type
type:
string="boolean"
components.schemas.system_message.properties.receivingPlayers
receivingPlayers:
object
components.schemas.system_message.properties.receivingPlayers.items
items:
object
components.schemas.system_message.properties.receivingPlayers.items.$ref
$ref:
string="#/components/schemas/player"
components.schemas.system_message.properties.receivingPlayers.type
type:
string="array"
components.schemas.system_message.type
type:
string="object"
components.schemas.typed_game_rule
typed_game_rule:
object
components.schemas.typed_game_rule.properties
properties:
object
components.schemas.typed_game_rule.properties.key
key:
object
components.schemas.typed_game_rule.properties.key.type
type:
string="string"
components.schemas.typed_game_rule.properties.type
type:
object
components.schemas.typed_game_rule.properties.type.enum
enum:
string[]
components.schemas.typed_game_rule.properties.type.type
type:
string="string"
components.schemas.typed_game_rule.properties.value
value:
object
components.schemas.typed_game_rule.properties.value.type
type:
string[]
components.schemas.typed_game_rule.type
type:
string="object"
components.schemas.untyped_game_rule
untyped_game_rule:
object
components.schemas.untyped_game_rule.properties
properties:
object
components.schemas.untyped_game_rule.properties.key
key:
object
components.schemas.untyped_game_rule.properties.key.type
type:
string="string"
components.schemas.untyped_game_rule.properties.value
value:
object
components.schemas.untyped_game_rule.properties.value.type
type:
string[]
components.schemas.untyped_game_rule.type
type:
string="object"
components.schemas.user_ban
user_ban:
object
components.schemas.user_ban.properties
properties:
object
components.schemas.user_ban.properties.expires
expires:
object
components.schemas.user_ban.properties.expires.type
type:
string="string"
components.schemas.user_ban.properties.player
player:
object
components.schemas.user_ban.properties.player.$ref
$ref:
string="#/components/schemas/player"
components.schemas.user_ban.properties.reason
reason:
object
components.schemas.user_ban.properties.reason.type
type:
string="string"
components.schemas.user_ban.properties.source
source:
object
components.schemas.user_ban.properties.source.type
type:
string="string"
components.schemas.user_ban.type
type:
string="object"
components.schemas.version
version:
object
components.schemas.version.properties
properties:
object
components.schemas.version.properties.name
name:
object
components.schemas.version.properties.name.type
type:
string="string"
components.schemas.version.properties.protocol
protocol:
object
components.schemas.version.properties.protocol.type
type:
string="integer"
components.schemas.version.type
type:
string="object"
info
info:
object
info.title
title:
string="Minecraft Server JSON-RPC"
info.version
version:
string="3.1.0"
methods
methods: ({
description:string;name:string;params:object[];result: {name:string;schema: {$ref?:undefined;items: {$ref:string; };type:string; }; }; } | {description:string;name:string;params:object[];result: {name:string;schema: {$ref?:undefined;items: {$ref:string; };type:string; }; }; } | {description:string;name:string;params:object[];result: {name:string;schema: {$ref?:undefined;items?:undefined;type:string; }; }; } | {description:string;name:string;params:object[];result: {name:string;schema: {$ref?:undefined;items?:undefined;type:string; }; }; } | {description:string;name:string;params:object[];result: {name:string;schema: {$ref:string;items?:undefined;type?:undefined; }; }; } | {description:string;name:string;params:object[];result?:undefined; } | {description:string;name:string;params:object[];result?:undefined; })[]
openrpc
openrpc:
string="1.3.2"