Jump to content
  • 0
Sign in to follow this  
rumfiske

Teleport command doesnt work

Question

Please help.


UPDATE BUT STILL DOESNT WORK.

[CODE]if (playerCommand.equals("home")) {
if(!c.inWild()){

c.getPA().startTeleport(3087, 3491, 0, "modern");

}
else
c.sendMessage("Sorry you can't do that in wild.");
}[/CODE]

[IMG]http://puu.sh/eBkid.png[/IMG] Edited by rumfiske

Share this post


Link to post
Share on other sites

2 answers to this question

Recommended Posts

  • 0
try this way?
[CODE]
if (playerCommand.equals("home")) {
if(!c.inWild()){
c.sendMessage("Sorry you can't do that in wild.");
}
else
c.getPA().startTeleport(3087, 3491, 0, "modern");
}
[/CODE]

Share this post


Link to post
Share on other sites
  • 0
Try using startsWith instead of equals, as sometimes that can be a bit twitchy

Share this post


Link to post
Share on other sites
Sign in to follow this  

×