mirror of
				https://github.com/IntellectualSites/PlotSquared.git
				synced 2025-10-26 23:23:45 +01:00 
			
		
		
		
	Fixes #1050
This commit is contained in:
		| @@ -112,11 +112,11 @@ public class BukkitMain extends JavaPlugin implements Listener, IPlotMain { | |||||||
|                 if (split.length == 3) { |                 if (split.length == 3) { | ||||||
|                     this.version[2] = Integer.parseInt(split[2]); |                     this.version[2] = Integer.parseInt(split[2]); | ||||||
|                 } |                 } | ||||||
|             } catch (NumberFormatException e) { |             } catch (Exception e) { | ||||||
|                 e.printStackTrace(); |                 e.printStackTrace(); | ||||||
|                 PS.debug(StringMan.getString(Bukkit.getBukkitVersion())); |                 PS.debug(StringMan.getString(Bukkit.getBukkitVersion())); | ||||||
|                 PS.debug(StringMan.getString(Bukkit.getBukkitVersion().split("-")[0].split("\\."))); |                 PS.debug(StringMan.getString(Bukkit.getBukkitVersion().split("-")[0].split("\\."))); | ||||||
|                 return new int[]{Integer.MAX_VALUE, 0, 0}; |                 return new int[]{1,9,2}; | ||||||
|             } |             } | ||||||
|         } |         } | ||||||
|         return this.version; |         return this.version; | ||||||
|   | |||||||
| @@ -200,8 +200,6 @@ public class BukkitPlotGenerator extends ChunkGenerator implements GeneratorWrap | |||||||
|         return this.platformGenerator; |         return this.platformGenerator; | ||||||
|     } |     } | ||||||
|  |  | ||||||
|  |  | ||||||
|  |  | ||||||
|     @Override |     @Override | ||||||
|     public List<BlockPopulator> getDefaultPopulators(World world) { |     public List<BlockPopulator> getDefaultPopulators(World world) { | ||||||
|         try { |         try { | ||||||
|   | |||||||
| @@ -44,7 +44,7 @@ public class Owner extends SetCommand { | |||||||
|         if (uuid == null) { |         if (uuid == null) { | ||||||
|             if (value.equalsIgnoreCase("none")) { |             if (value.equalsIgnoreCase("none")) { | ||||||
|                 HashSet<Plot> connected = plot.getConnectedPlots(); |                 HashSet<Plot> connected = plot.getConnectedPlots(); | ||||||
|                 plot.unlink(); |                 plot.unlinkPlot(false, false); | ||||||
|                 for (Plot current : connected) { |                 for (Plot current : connected) { | ||||||
|                     current.unclaim(); |                     current.unclaim(); | ||||||
|                     current.removeSign(); |                     current.removeSign(); | ||||||
|   | |||||||
| @@ -235,8 +235,7 @@ public abstract class EventUtil { | |||||||
|                     value = (HashSet<PlotBlock>) flag.getValue(); |                     value = (HashSet<PlotBlock>) flag.getValue(); | ||||||
|                 } |                 } | ||||||
|                 if (value == null || !value.contains(PlotBlock.EVERYTHING) && !value.contains(block.getPlotBlock())) { |                 if (value == null || !value.contains(PlotBlock.EVERYTHING) && !value.contains(block.getPlotBlock())) { | ||||||
|                     // TODO: fix the commented dead code |                     return false; //!(!false || MainUtil.sendMessage(pp, C.FLAG_TUTORIAL_USAGE, C.FLAG_USE.s() + "/" + C.FLAG_DEVICE_INTERACT.s())); | ||||||
|                     return true; //!(!false || MainUtil.sendMessage(pp, C.FLAG_TUTORIAL_USAGE, C.FLAG_USE.s() + "/" + C.FLAG_DEVICE_INTERACT.s())); |  | ||||||
|                 } |                 } | ||||||
|                 return true; |                 return true; | ||||||
|             } |             } | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Jesse Boyd
					Jesse Boyd