Skip to content

Commit

Permalink
Allow "Server" owner
Browse files Browse the repository at this point in the history
  • Loading branch information
dordsor21 committed Dec 10, 2020
1 parent 67683fb commit 9ba9188
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@
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;
Expand Down Expand Up @@ -292,7 +293,11 @@ public boolean plotEntry(final PlotPlayer<?> player, final Plot plot) {
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) {
Expand Down

0 comments on commit 9ba9188

Please # to comment.