LuckPerms

LuckPerms

41.4k Downloads

API Method setServerName

Dreamtrailtv opened this issue ยท 2 comments

commented

Description

An API method to change the server name. This would be helpful if you have a cloud system where you can store the config in the global plugins folder and then use the api to set the server name for the context.

Proposed behaviour

API-Methode:
LuckPermsProvider.get().setServerName(String servername);

commented

if you are talking about server context on backend servers, it's defined in luckperms config file, and afaik luckperms cannot change the config programmatically. Since you are using the API, you can just register your own context, and have full control over it.

commented

Hey - sorry I actually implemented this a few days ago but forgot to reply here.

It's not an API method - but it will let you achieve the same thing: 53bb61f

You can use System.setProperty to control this programatically.