mirror of
https://github.com/IntellectualSites/PlotSquared.git
synced 2024-11-22 05:06:44 +01:00
Allow "Server" owner
This commit is contained in:
parent
67683fbddb
commit
9ba91889e0
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user