
Security News
Deno 2.2 Improves Dependency Management and Expands Node.js Compatibility
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
prismarine-realms
Advanced tools
Library to manage and interact with Minecraft Realms for Java/Bedrock edition
Minecraft Realm interface for Minecraft Java and Bedrock editions, providing a stable API to start/stop Realms, and obtain Realm information such as connection addresses.
Minecraft Realms is a subscription based service provided by Mojang where users can host, create and manage their own private Minecraft servers.
npm install prismarine-realms
Takes an Authflow instance from prismarine-auth, you can see the documentation for this here.
Param | Type | Description |
---|---|---|
realmId | string | The ID of the Realm |
realmInviteCode | string | The invite code for the Realm (Only on Bedrock) |
username | string | The username of player |
uuid | string | The unique ID of the player, without hyphens |
xuid | string | The Xbox User ID of the targeted player |
const { Authflow } = require('prismarine-auth')
const { RealmAPI } = require('prismarine-realms')
const authflow = new Authflow()
const api = RealmAPI.from(authflow, 'bedrock')
Returns a list of Realms the authenticating account has joined or owns.
await api.getRealms()
Gets detailed information about a Realm if owned
await api.getRealm('1234567')
(Bedrock Edition Only) Gets detailed information about a Realm from the invite code
await api.getRealmFromInvite('AB1CD2EFA3B') // https://realms.gg/AB1CD2EFA3B will work as well
Gets the address for the Realm.
const realm = await api.getRealm('1234567')
await realm.getAddress()
Invites a player to the Realm
const realm = await api.getRealm('1234567')
await realm.invitePlayer('a8005260a332457097a50bdbe48a9a21', 'Steve')
Opens a Realm. Allows players to join
const realm = await api.getRealm('1234567')
await realm.open()
Closes a Realm. Removes all current players and restricts joining
const realm = await api.getRealm('1234567')
await realm.close()
1.1.1
FAQs
Library to manage and interact with Minecraft Realms for Java/Bedrock edition
We found that prismarine-realms demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
Security News
React's CRA deprecation announcement sparked community criticism over framework recommendations, leading to quick updates acknowledging build tools like Vite as valid alternatives.
Security News
Ransomware payment rates hit an all-time low in 2024 as law enforcement crackdowns, stronger defenses, and shifting policies make attacks riskier and less profitable.