This is a Example of code But i need a Full Code for this i am Making Worlds and i Need a Cmd for Lock worlds /myhome is in world 2 and i want to lock this world i dont want any player to visit my world. And another cmd for Unlocking it
else if (cmd == "visitworld2")
{
if lock.world2 MessagePlayer("you cant visit world 2 because its locked");
else{
player.World = 2;
}
}
else if (cmd == "lockworld2")
{
lock.world2
}
else if (cmd == "unlockworld2")
{
unlock.world2
}
Please help me Thanks in Advance :)
https://pastebin.com/YMLeq01s
Untested.