Luckperms: API method for /lp networksync

Created on 23 Nov 2018  路  1Comment  路  Source: lucko/LuckPerms

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

question

Most helpful comment

LuckPermsApi api = ...;

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

:)

>All comments

LuckPermsApi api = ...;

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

:)

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Tomi010817 picture Tomi010817  路  3Comments

5igm picture 5igm  路  4Comments

SpaicyGaming picture SpaicyGaming  路  3Comments

hohserg1 picture hohserg1  路  3Comments

KonoromiHimaries picture KonoromiHimaries  路  3Comments