Ok so i need to add it to every teleport command? =( Well if thats true then i guess i wont do it. I'm thinking now just not allowing anyone to teleport out of godwars and making them use the rope to get out which i can easily make remove the interface. But to do this what should i add to my teleport method?
I was thinking something like this: ?
Code:
if (godWarsDung()) {
getActionSender().sendMessage(this, "You Cannot Teleport in Godwars, Use the Rope to Get out!");
return;
}
EDIT: That Worked ^
How can i make it so you cannot logout in godwars?
I tried something like:
Code:
if (p.godWarsDung()) {
p.getActionSender().sendMessage(p, "You Cannot Logout While in GodWars!");
}
under case 182: in actionbuttons but that doesnt work.
Also i figured out how to make it be able to tele and remove interfaces without adding to every command. But idk which i should have. Do you think not being able to teleport in godwars is better then being able to?
EDIT: Figured out how to not allow logout in godwars. But what should i do, Make it so you should be able to tele in godwars or make it so you cannot?