Skip to content

LabyMod API

Alexander edited this page Oct 1, 2019 · 2 revisions

IMPORTANT This requires the LabyMod server api plugin Spigot download page

A quick example on how to send a server switch packet using the labymod api Api Docs: https://docs.labymod.net/pages/server/server_switch/

manager.createCommand("sn10hub", "ree", "testCommand");

function testCommand(sender, args){
    var player = cast.asPlayer(sender);
    LabyModAPI.sendServerMessage(player, "server_switch", JSON.toGson({"title": "SN10Hub", "address": "mc.sn10hub.xyz", "preview": true}))
}
Clone this wiki locally