mirror of
https://github.com/IntellectualSites/PlotSquared.git
synced 2025-06-28 11:44:42 +02:00
@ -172,7 +172,9 @@ public class PlotAnalysis {
|
||||
@Override
|
||||
public void run() {
|
||||
try {
|
||||
wait(10000);
|
||||
synchronized (this) {
|
||||
wait(10000);
|
||||
}
|
||||
} catch (final InterruptedException e) {
|
||||
e.printStackTrace();
|
||||
}
|
||||
|
@ -1,6 +1,5 @@
|
||||
package com.intellectualcrafters.plot.object;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.Arrays;
|
||||
import java.util.HashSet;
|
||||
import java.util.Set;
|
||||
@ -66,6 +65,11 @@ public class PlotHandler {
|
||||
}
|
||||
|
||||
public static void setOwner(Plot plot, UUID owner) {
|
||||
if (!plot.hasOwner()) {
|
||||
plot.owner = owner;
|
||||
plot.create();
|
||||
return;
|
||||
}
|
||||
if (!plot.isMerged()) {
|
||||
if (!plot.owner.equals(owner)) {
|
||||
plot.owner = owner;
|
||||
|
Reference in New Issue
Block a user