mirror of
				https://github.com/Aust1n46/VentureChat.git
				synced 2025-10-30 21:52:23 +00:00 
			
		
		
		
	Tweaked multi-message remover.
This commit is contained in:
		
							parent
							
								
									12720f9949
								
							
						
					
					
						commit
						40ba992e2b
					
				| @ -182,8 +182,8 @@ public class Removemessage extends MineverseCommand { | ||||
| 
 | ||||
| 	public WrappedChatComponent getMessageDeletedChatComponentAdmin(ChatMessage message) { | ||||
| 		String oMessage = message.getOriginalComponent().getJson().substring(1, message.getOriginalComponent().getJson().length() - 11); | ||||
| 		if(message.getMessage().contains(Format.FormatStringAll(plugin.getConfig().getString("guiicon")))) { | ||||
| 			oMessage = oMessage.substring(0, oMessage.length() - plugin.getConfig().getString("guiicon").length() - 4) + "\"}]"; | ||||
| 		if(message.getMessage().contains(ChatColor.stripColor(Format.FormatStringAll(plugin.getConfig().getString("guiicon"))))) { | ||||
| 			oMessage = oMessage.substring(0, oMessage.length() - ChatColor.stripColor(Format.FormatStringAll(plugin.getConfig().getString("guiicon"))).length() - 3) + "\"}]"; | ||||
| 		} | ||||
| 		return WrappedChatComponent.fromJson(Format.FormatStringAll("{\"text\":\"\",\"extra\":[{\"text\":\"&c&o<message removed>\",\"hoverEvent\":{\"action\":\"show_text\",\"value\":{\"text\":\"&7Message: \"," + oMessage + "}}}]}")); | ||||
| 	} | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 BuildTools
						BuildTools