From 9ba91889e0e1662164911cc9b89196a3cd244590 Mon Sep 17 00:00:00 2001 From: dordsor21 Date: Thu, 10 Dec 2020 17:58:00 +0000 Subject: [PATCH] Allow "Server" owner --- .../java/com/plotsquared/core/listener/PlotListener.java | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/Core/src/main/java/com/plotsquared/core/listener/PlotListener.java b/Core/src/main/java/com/plotsquared/core/listener/PlotListener.java index 27a5b6c40..1d5c1ecda 100644 --- a/Core/src/main/java/com/plotsquared/core/listener/PlotListener.java +++ b/Core/src/main/java/com/plotsquared/core/listener/PlotListener.java @@ -56,6 +56,7 @@ import com.plotsquared.core.plot.flag.implementations.HealFlag; import com.plotsquared.core.plot.flag.implementations.MusicFlag; import com.plotsquared.core.plot.flag.implementations.NotifyEnterFlag; import com.plotsquared.core.plot.flag.implementations.NotifyLeaveFlag; +import com.plotsquared.core.plot.flag.implementations.ServerPlotFlag; import com.plotsquared.core.plot.flag.implementations.TimeFlag; import com.plotsquared.core.plot.flag.implementations.TitlesFlag; import com.plotsquared.core.plot.flag.implementations.WeatherFlag; @@ -292,7 +293,11 @@ public class PlotListener { Templates.of("owner", user)); UUID uuid = plot.getOwner(); if (uuid == null) { - userConsumer.accept("Unknown"); + if (plot.getFlag(ServerPlotFlag.class)) { + userConsumer.accept("Server"); + } else { + userConsumer.accept("Unknown"); + } } else { PlotSquared.get().getImpromptuUUIDPipeline().getSingle(plot.getOwner(), (user, throwable) -> { if (throwable == null) {