#pyramid
1 messages · Page 1 of 1 (latest)
okay
ensure you are using the right item
and that the check is running your intended branch
yeah im using the right item
for testing, reduce your IF mass to just 1 branch - the one you want to test out
i made the if statement just
if (p.getWorld().equals("lobby")) {
p.sendMessage(ChatColor.RED + "You can't locate POIs at spawn!");
}```
but it still didnt work
are you sure the item match is matching at all
it returned this
also you're storing the itemstacks in a CommandExecutor?
oh I know
you're comparing World and String
like you're doing:
World.equals(String)```
Player.getWorld() returns a World
you want to equals on the world's name
this is what i have:
if (p.getWorld().equals("lobby"))```
how do i change that then?
oh like this? if (p.getWorld().getName().equals("lobby"))
yes
ok thanks