LuckPerms

LuckPerms

41.4k Downloads

Provide server name at runtime

XakepSDK opened this issue ยท 1 comments

commented

Hi! I want to provide server context variable at runtime. As i know, i need to write my own context calculator and register it. How can i make this in most accurate way?
Also, i want to store plugin config in a database, is it possible?

commented

Hi! I want to provide server context variable at runtime. As i know, i need to write my own context calculator and register it. How can i make this in most accurate way?

Yes, just implement the ContextCalculator interface, then register it in the ContextManager.

Also, i want to store plugin config in a database, is it possible?
In short no - but it depends really which parts of it you mean.