The safest and most common way to enable XRay in Eaglercraft is by using a specific resource pack that makes non-ore blocks invisible or transparent. This does not require modifying the game code.