Start working on the API before adding the server implementation

This commit is contained in:
len
2021-05-10 10:01:35 +02:00
parent 80afee0f2f
commit 0d15c40cb7
22 changed files with 658 additions and 205 deletions
@@ -0,0 +1,23 @@
package com.alttd.chat;
import net.luckperms.api.LuckPerms;
import net.luckperms.api.LuckPermsProvider;
public class ChatImplementation implements ChatAPI{
//public static final ChatAPI INSTANCE = new ChatImplementation();
private LuckPerms luckPerms;
ChatImplementation() {
// init database
// init depends//or set them the first time they are called?
}
@Override
public LuckPerms getLuckPerms() {
if(luckPerms == null)
luckPerms = LuckPermsProvider.get();
return luckPerms;
}
}