```java
if (user instanceof CraftPlayer && ((CraftPlayer) user).getWorld().getName().equals(getName())) {
```