how would u get what world we are currently in? I have one button that i want to check whether it is in singlePlayer world or the multiplayer world and act upon what is given
World world = getWorld(); if(world instanceof Singleplayer) { } else if(world instanceof Multiplayer) { }