mirror of
				https://github.com/IntellectualSites/PlotSquared.git
				synced 2025-11-03 18:53:43 +01:00 
			
		
		
		
	Fix: Plot#getOwner can be nullable, and redstone may be present on unowned plots
This commit is contained in:
		@@ -166,7 +166,7 @@ public class BlockEventListener implements Listener {
 | 
			
		||||
        }
 | 
			
		||||
        if (Settings.Redstone.DISABLE_OFFLINE) {
 | 
			
		||||
            boolean disable = false;
 | 
			
		||||
            if (!plot.getOwner().equals(DBFunc.SERVER)) {
 | 
			
		||||
            if (!DBFunc.SERVER.equals(plot.getOwner())) {
 | 
			
		||||
                if (plot.isMerged()) {
 | 
			
		||||
                    disable = true;
 | 
			
		||||
                    for (UUID owner : plot.getOwners()) {
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user