Even if it's not illegal, lots of players will hate you. Don't use X-ray mods Administrators and other players do not appreciate the use of X-ray mods on their servers, it gives you an unfair advantage and most likely will lead to penalization and ultimately banning from the server!