mirror of
				https://github.com/IntellectualSites/PlotSquared.git
				synced 2025-10-31 01:23:44 +01:00 
			
		
		
		
	Fixed plot deletion and unable to locate sign messages
This commit is contained in:
		| @@ -204,11 +204,7 @@ public class PlotSquared { | |||||||
|     } |     } | ||||||
|      |      | ||||||
|     public static boolean removePlot(final String world, final PlotId id, final boolean callEvent) { |     public static boolean removePlot(final String world, final PlotId id, final boolean callEvent) { | ||||||
|         if (callEvent) { |         // FIXME plot remove event | ||||||
|             if (!IMP.callRemovePlot(world, id)) { |  | ||||||
|                 return false; |  | ||||||
|             } |  | ||||||
|         } |  | ||||||
|         plots.get(world).remove(id); |         plots.get(world).remove(id); | ||||||
|         if (MainUtil.lastPlot.containsKey(world)) { |         if (MainUtil.lastPlot.containsKey(world)) { | ||||||
|             final PlotId last = MainUtil.lastPlot.get(world); |             final PlotId last = MainUtil.lastPlot.get(world); | ||||||
|   | |||||||
| @@ -106,7 +106,6 @@ public class Claim extends SubCommand { | |||||||
|         if (PlotSquared.economy != null && world.USE_ECONOMY) { |         if (PlotSquared.economy != null && world.USE_ECONOMY) { | ||||||
|             final double cost = world.PLOT_PRICE; |             final double cost = world.PLOT_PRICE; | ||||||
|             if (cost > 0d) { |             if (cost > 0d) { | ||||||
|                 final Economy economy = PlotSquared.economy; |  | ||||||
|                 if (EconHandler.getBalance(plr) < cost) { |                 if (EconHandler.getBalance(plr) < cost) { | ||||||
|                     return sendMessage(plr, C.CANNOT_AFFORD_PLOT, "" + cost); |                     return sendMessage(plr, C.CANNOT_AFFORD_PLOT, "" + cost); | ||||||
|                 } |                 } | ||||||
| @@ -124,6 +123,6 @@ public class Claim extends SubCommand { | |||||||
|                 } |                 } | ||||||
|             } |             } | ||||||
|         } |         } | ||||||
|         return !claimPlot(plr, plot, false, schematic, false) || sendMessage(plr, C.PLOT_NOT_CLAIMED); |         return claimPlot(plr, plot, false, schematic, false) || sendMessage(plr, C.PLOT_NOT_CLAIMED); | ||||||
|     } |     } | ||||||
| } | } | ||||||
|   | |||||||
| @@ -66,7 +66,7 @@ public class Delete extends SubCommand { | |||||||
|         final boolean result = PlotSquared.removePlot(loc.getWorld(), plot.id, true); |         final boolean result = PlotSquared.removePlot(loc.getWorld(), plot.id, true); | ||||||
|         final long start = System.currentTimeMillis(); |         final long start = System.currentTimeMillis(); | ||||||
|         if (result) { |         if (result) { | ||||||
|             boolean result2 = MainUtil.clearAsPlayer(plot, false, new Runnable() { |             boolean result2 = MainUtil.clearAsPlayer(plot, true, new Runnable() { | ||||||
|                 @Override |                 @Override | ||||||
|                 public void run() { |                 public void run() { | ||||||
|                     MainUtil.sendMessage(plr, C.CLEARING_DONE, "" + (System.currentTimeMillis() - start)); |                     MainUtil.sendMessage(plr, C.CLEARING_DONE, "" + (System.currentTimeMillis() - start)); | ||||||
|   | |||||||
| @@ -83,6 +83,9 @@ public class SetBlockFast_1_8 extends SetBlockManager { | |||||||
|             case 130: |             case 130: | ||||||
|             case 146: |             case 146: | ||||||
|             case 27: |             case 27: | ||||||
|  |             case 63: | ||||||
|  |             case 68: | ||||||
|  |             case 313: | ||||||
|             case 28: |             case 28: | ||||||
|             case 66: |             case 66: | ||||||
|             case 157: |             case 157: | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 boy0001
					boy0001