mirror of
				https://hub.spigotmc.org/stash/scm/spigot/craftbukkit.git
				synced 2025-11-01 09:09:36 +00:00 
			
		
		
		
	Fix "Commands Only" chat flag. Fixes BUKKIT-2238
Thanks for the commit @mrapple
This commit is contained in:
		
							parent
							
								
									6a04fd98ad
								
							
						
					
					
						commit
						72ee1f3182
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -853,7 +853,7 @@ public class NetServerHandler extends NetHandler {
 | 
			
		|||
                }
 | 
			
		||||
 | 
			
		||||
                // CraftBukkit start
 | 
			
		||||
                if (this.player.getChatFlags() == 1) {
 | 
			
		||||
                if (this.player.getChatFlags() == 1 && !s.startsWith("/")) {
 | 
			
		||||
                    this.sendPacket(new Packet3Chat("Cannot send chat message."));
 | 
			
		||||
                    return;
 | 
			
		||||
                }
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		
		Reference in a new issue