1
0
mirror of https://github.com/lucko/LuckPerms.git synced 2025-09-02 02:42:33 +02:00

Add locale file support

This commit is contained in:
Luck
2016-09-23 22:14:40 +01:00
parent df1e747861
commit eb9d2be587
18 changed files with 643 additions and 213 deletions

View File

@@ -41,6 +41,7 @@ import me.lucko.luckperms.storage.Datastore;
import me.lucko.luckperms.tracks.TrackManager;
import me.lucko.luckperms.users.StandaloneUserManager;
import me.lucko.luckperms.users.UserManager;
import me.lucko.luckperms.utils.LocaleManager;
import me.lucko.luckperms.utils.LogFactory;
import java.io.File;
@@ -65,12 +66,14 @@ public class StandaloneBase implements LuckPermsPlugin {
private final Logger log;
private final UuidCache uuidCache;
private final ApiProvider apiProvider;
private final LocaleManager localeManager;
public StandaloneBase(LPStandaloneApp app) {
logger = java.util.logging.Logger.getGlobal();
log = LogFactory.wrap(logger);
configuration = new StandaloneConfiguration(this);
localeManager = new LocaleManager();
// TODO datastore
datastore = null;
@@ -165,7 +168,13 @@ public class StandaloneBase implements LuckPermsPlugin {
@Override
public Sender getConsoleSender() {
final LuckPermsPlugin instance = this;
return new Sender() {
@Override
public LuckPermsPlugin getPlatform() {
return instance;
}
@Override
public String getName() {
return Constants.getConsoleName();