Revert "Allow "Server" owner" as that has its own UUID

This reverts commit 9ba91889e0.
This commit is contained in:
dordsor21 2020-12-10 18:02:14 +00:00
parent 9ba91889e0
commit 8f93f2b6d2
No known key found for this signature in database
GPG Key ID: 1E53E88969FFCF0B

View File

@ -56,7 +56,6 @@ 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;
@ -293,11 +292,7 @@ public class PlotListener {
Templates.of("owner", user));
UUID uuid = plot.getOwner();
if (uuid == null) {
if (plot.getFlag(ServerPlotFlag.class)) {
userConsumer.accept("Server");
} else {
userConsumer.accept("Unknown");
}
userConsumer.accept("Unknown");
} else {
PlotSquared.get().getImpromptuUUIDPipeline().getSingle(plot.getOwner(), (user, throwable) -> {
if (throwable == null) {