mirror of
				https://github.com/IntellectualSites/PlotSquared.git
				synced 2025-11-04 03:03:43 +01:00 
			
		
		
		
	Fix inbox deletion perm
This commit is contained in:
		@@ -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;
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user