mirror of
https://github.com/IntellectualSites/PlotSquared.git
synced 2025-06-25 02:04:44 +02:00
Tweaked some things
This commit is contained in:
@ -165,8 +165,8 @@ public class Merge extends SubCommand {
|
||||
public void run() {
|
||||
MainUtil.sendMessage(accepter, C.MERGE_ACCEPTED);
|
||||
plot.autoMerge(dir, maxSize - size, owner, terrain);
|
||||
PlotPlayer pp = UUIDHandler.getPlayer(player.getUUID());
|
||||
if (pp == null) {
|
||||
PlotPlayer plotPlayer = UUIDHandler.getPlayer(player.getUUID());
|
||||
if (plotPlayer == null) {
|
||||
sendMessage(accepter, C.MERGE_NOT_VALID);
|
||||
return;
|
||||
}
|
||||
|
@ -339,7 +339,7 @@ public enum C {
|
||||
MERGE_ACCEPTED("$2The merge request has been accepted", "Merge"),
|
||||
SUCCESS_MERGE("$2Plots have been merged!", "Merge"),
|
||||
MERGE_REQUESTED("$2Successfully sent a merge request", "Merge"),
|
||||
MERGE_REQUEST_CONFIRM("merge request from %s", "Permission"),
|
||||
MERGE_REQUEST_CONFIRM("Merge request from %s", "Permission"),
|
||||
NO_PERM_MERGE("$2You are not the owner of the plot: $1%plot%", "Merge"),
|
||||
NO_AVAILABLE_AUTOMERGE("$2You do not own any adjacent plots in the specified direction or are not allowed to merge to the required size.",
|
||||
"Merge"),
|
||||
|
@ -100,7 +100,7 @@ public class FlagManager {
|
||||
StringBuilder flag_string = new StringBuilder();
|
||||
int i = 0;
|
||||
for (Map.Entry<Flag<?>, Object> entry : flags.entrySet()) {
|
||||
Flag<?> flag = entry.getKey();
|
||||
Flag flag = entry.getKey();
|
||||
if (i != 0) {
|
||||
flag_string.append(',');
|
||||
}
|
||||
|
Reference in New Issue
Block a user