mirror of
				https://github.com/IntellectualSites/PlotSquared.git
				synced 2025-11-04 03:03:43 +01:00 
			
		
		
		
	fix: /plot grant add doesn't send success message reliably (#4683)
				
					
				
			* fix: move success message to correct execution point in /plot grant add * fix: send `grants.added` message even if player is offline --------- Co-authored-by: Alexander Brandes <mc.cache@web.de>
This commit is contained in:
		@@ -101,6 +101,10 @@ public class Grant extends Command {
 | 
			
		||||
                                    );
 | 
			
		||||
                                } else {
 | 
			
		||||
                                    access.set(access.get().orElse(0) + 1);
 | 
			
		||||
                                    player.sendMessage(
 | 
			
		||||
                                            TranslatableCaption.of("grants.added"),
 | 
			
		||||
                                            TagResolver.resolver("grants", Tag.inserting(Component.text(access.get().orElse(0))))
 | 
			
		||||
                                    );
 | 
			
		||||
                                }
 | 
			
		||||
                            }
 | 
			
		||||
                        } else {
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user