mirror of
https://github.com/TotalFreedomMC/TF-PlotSquared.git
synced 2025-08-05 20:13:08 +00:00
Fix inbox deletion perm
This commit is contained in:
parent
552ace359a
commit
ad94637c2a
2 changed files with 5 additions and 0 deletions
|
@ -136,6 +136,7 @@ public class Inbox extends SubCommand {
|
||||||
case "delete": {
|
case "delete": {
|
||||||
if (!inbox.canModify(plot, player)) {
|
if (!inbox.canModify(plot, player)) {
|
||||||
sendMessage(player, C.NO_PERM_INBOX_MODIFY);
|
sendMessage(player, C.NO_PERM_INBOX_MODIFY);
|
||||||
|
return false;
|
||||||
}
|
}
|
||||||
if (args.length != 3) {
|
if (args.length != 3) {
|
||||||
sendMessage(player, C.COMMAND_SYNTAX, "/plot inbox " + inbox.toString() + " delete <index>");
|
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) {
|
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 a = new PlotId(0, 0);
|
||||||
final PlotId b = new PlotId(1, 1);
|
final PlotId b = new PlotId(1, 1);
|
||||||
int xw;
|
int xw;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue