mirror of
https://github.com/IntellectualSites/PlotSquared.git
synced 2025-06-25 02:04:44 +02:00
Fix startup issues and make messages send properly
This commit is contained in:
@ -1094,4 +1094,15 @@ public final class BukkitPlatform extends JavaPlugin implements Listener, PlotPl
|
||||
return (PlayerManager<BukkitPlayer, Player>) getInjector().getInstance(PlayerManager.class);
|
||||
}
|
||||
|
||||
@Override public void copyCaptionMaps() {
|
||||
/* Make this prettier at some point */
|
||||
final String[] languages = new String[] { "en" };
|
||||
for (final String language : languages) {
|
||||
if (!new File(new File(this.getDataFolder(), "lang"), String.format("messages_%s.json", language)).exists()) {
|
||||
this.saveResource(String.format("lang/messages_%s.json", language), false);
|
||||
logger.info("Copied language file 'messages_{}.json'", language);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user