Fix offline mode UUIDs

This commit is contained in:
Alexander Söderberg 2020-05-24 04:28:29 +02:00
parent 75dbc2db98
commit d19df3b6eb
No known key found for this signature in database
GPG Key ID: C0207FF7EA146678

View File

@ -274,6 +274,7 @@ public final class BukkitMain extends JavaPlugin implements Listener, IPlotMain
essentialsUUIDService = null; essentialsUUIDService = null;
} }
if (!Settings.UUID.OFFLINE) {
// If running Paper we'll also try to use their profiles // If running Paper we'll also try to use their profiles
if (PaperLib.isPaper()) { if (PaperLib.isPaper()) {
final PaperUUIDService paperUUIDService = new PaperUUIDService(); final PaperUUIDService paperUUIDService = new PaperUUIDService();
@ -282,7 +283,6 @@ public final class BukkitMain extends JavaPlugin implements Listener, IPlotMain
PlotSquared.log(Captions.PREFIX + "(UUID) Using Paper as a complementary UUID service"); PlotSquared.log(Captions.PREFIX + "(UUID) Using Paper as a complementary UUID service");
} }
if (!Settings.UUID.OFFLINE) {
impromptuPipeline.registerService(sqLiteUUIDService); impromptuPipeline.registerService(sqLiteUUIDService);
backgroundPipeline.registerService(sqLiteUUIDService); backgroundPipeline.registerService(sqLiteUUIDService);
impromptuPipeline.registerConsumer(sqLiteUUIDService); impromptuPipeline.registerConsumer(sqLiteUUIDService);