mirror of
https://github.com/TotalFreedomMC/TF-PlotSquared.git
synced 2025-08-06 12:33:08 +00:00
Fixed offline player UUID cache issue.
This commit is contained in:
parent
1fd8b18d6f
commit
f116b13cc7
7 changed files with 17 additions and 24 deletions
|
@ -834,6 +834,13 @@ import java.util.concurrent.TimeUnit;
|
|||
public static void worldLoad(WorldLoadEvent event) {
|
||||
if (!UUIDHandler.CACHED) {
|
||||
UUIDHandler.cacheAll();
|
||||
if (Bukkit.getServer().getPluginManager().getPlugin("PlotMe") != null) {
|
||||
try {
|
||||
new PlotMeConverter(PlotMain.getMain()).runAsync();
|
||||
} catch (final Exception e) {
|
||||
e.printStackTrace();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -1318,7 +1325,7 @@ import java.util.concurrent.TimeUnit;
|
|||
sendConsoleSenderMessage(C.PREFIX.s() + "MongoDB is not yet implemented");
|
||||
} else if (Settings.DB.USE_SQLITE) {
|
||||
try {
|
||||
connection = new SQLite(this, Settings.DB.SQLITE_DB + ".db").openConnection();
|
||||
connection = new SQLite(this, this.getDataFolder() + File.separator + Settings.DB.SQLITE_DB + ".db").openConnection();
|
||||
{
|
||||
DBFunc.dbManager = new SQLManager(connection, Settings.DB.PREFIX);
|
||||
final DatabaseMetaData meta = connection.getMetaData();
|
||||
|
@ -1349,17 +1356,6 @@ import java.util.concurrent.TimeUnit;
|
|||
getServer().getPluginManager().disablePlugin(this);
|
||||
return;
|
||||
}
|
||||
// We should not start the plugin if
|
||||
// plotme is present. Maybe do this
|
||||
// earlier, and no register any commands
|
||||
// nor listeners, just run the converter?
|
||||
if (getServer().getPluginManager().getPlugin("PlotMe") != null) {
|
||||
try {
|
||||
new PlotMeConverter(this).runAsync();
|
||||
} catch (final Exception e) {
|
||||
e.printStackTrace();
|
||||
}
|
||||
}
|
||||
// Setup the command handler
|
||||
{
|
||||
final MainCommand command = new MainCommand();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue