mirror of
				https://github.com/IntellectualSites/PlotSquared.git
				synced 2025-11-04 11:13:45 +01:00 
			
		
		
		
	Merge pull request #831 from manuelgu/patch-1
Fix notify-enter message being sent to wrong person
This commit is contained in:
		@@ -93,7 +93,7 @@ public class PlotListener {
 | 
			
		||||
                        for (final UUID uuid : PlotHandler.getOwners(plot)) {
 | 
			
		||||
                            final PlotPlayer owner = UUIDHandler.getPlayer(uuid);
 | 
			
		||||
                            if ((owner != null) && !owner.getUUID().equals(pp.getUUID())) {
 | 
			
		||||
                                MainUtil.sendMessage(pp, C.NOTIFY_ENTER.s().replace("%player", pp.getName()).replace("%plot", plot.getId().toString()));
 | 
			
		||||
                                MainUtil.sendMessage(owner, C.NOTIFY_ENTER.s().replace("%player", pp.getName()).replace("%plot", plot.getId().toString()));
 | 
			
		||||
                            }
 | 
			
		||||
                        }
 | 
			
		||||
                    }
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user