mirror of
				https://github.com/mcMMO-Dev/mcMMO.git
				synced 2025-11-04 11:03:43 +01:00 
			
		
		
		
	Fixed /whois requiring full name
This commit is contained in:
		@@ -341,14 +341,8 @@ public class vMinecraftCommands{
 | 
				
			|||||||
				player.sendMessage(Colors.Rose + "Usage is /whois [player]");
 | 
									player.sendMessage(Colors.Rose + "Usage is /whois [player]");
 | 
				
			||||||
			else {
 | 
								else {
 | 
				
			||||||
				//Get the player by name
 | 
									//Get the player by name
 | 
				
			||||||
				Player playerTarget = null;
 | 
									Player playerTarget = etc.getServer().matchPlayer(args[0]);
 | 
				
			||||||
				for( Player p : etc.getServer().getPlayerList())
 | 
									
 | 
				
			||||||
				{
 | 
					 | 
				
			||||||
					if (p.getName().equalsIgnoreCase(args[0]))
 | 
					 | 
				
			||||||
					{
 | 
					 | 
				
			||||||
						playerTarget = p;
 | 
					 | 
				
			||||||
					}
 | 
					 | 
				
			||||||
				}
 | 
					 | 
				
			||||||
				//If the player exists
 | 
									//If the player exists
 | 
				
			||||||
				if (playerTarget != null){
 | 
									if (playerTarget != null){
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user