LuckPerms

LuckPerms

41.4k Downloads

API method for /lp networksync

equalent opened this issue · 1 comments

commented

Hello!
Is there any way I can do /lp networksync through the API.
Currently I use:
getServer().dispatchCommand(getServer().getConsoleSender(), "lp networksync");

commented
LuckPermsApi api = ...;

api.runUpdateTask(); // "sync" the current server
api.getMessagingService().ifPresent(MessagingService::pushUpdate); // "sync" other servers

:)