mirror of
https://github.com/IntellectualSites/PlotSquared.git
synced 2024-11-25 22:56:45 +01:00
Fix inbox deletion perm
This commit is contained in:
parent
552ace359a
commit
ad94637c2a
@ -136,6 +136,7 @@ public class Inbox extends SubCommand {
|
||||
case "delete": {
|
||||
if (!inbox.canModify(plot, player)) {
|
||||
sendMessage(player, C.NO_PERM_INBOX_MODIFY);
|
||||
return false;
|
||||
}
|
||||
if (args.length != 3) {
|
||||
sendMessage(player, C.COMMAND_SYNTAX, "/plot inbox " + inbox.toString() + " delete <index>");
|
||||
|
@ -216,6 +216,10 @@ public class ClusterManager {
|
||||
}
|
||||
|
||||
public static PlotId estimatePlotId(final Location loc) {
|
||||
Plot plot = MainUtil.getPlot(loc);
|
||||
if (plot != null) {
|
||||
return plot.id;
|
||||
}
|
||||
final PlotId a = new PlotId(0, 0);
|
||||
final PlotId b = new PlotId(1, 1);
|
||||
int xw;
|
||||
|
Loading…
Reference in New Issue
Block a user