Well, Era's server was updated (from the admin cp), and since then, it's been fooling us around!
-Commands is an NPC, check the warpto function.
(It beings in the clientside part, looking at this, it'll send the player's chat to the serverside, depending on what the player says. If it doesn't start with a / but it is either warpto, sethead or setshield, it'll send the lower triggeraction. If it does begin with a / it'll send the top triggeraction.
Although, the error is the tokenize part at the top!
HTML Code:
if (!player.chat.starts("/") &&
!player.chat.starts("sethead") &&
!player.chat.starts("setshield") &&
!player.chat.starts("warpto"))
{
return;
}
if (player.chat.starts("/"))
{
triggerserver("gui", this.name, player.chat.substring(1, 50), "");
//THE / WARPTO
}
else
{
triggerserver("gui", this.name, player.chat);
//THE NO / TRIGGERACTION
}
However, when it's sent, we have this
HTML Code:
function onActionServerSide(text)
{
arguments = text.tokenize();
command = arguments[0];
arguments.delete(0);
--STUFF HERE--
}
When trying to debug this, when adding in
echo(arguments.size());, it returns 0...
Although, when doing echo(arguments[1]), it'll return the correct thing (the 2nd chat of the player, (1, if you're doing it tokenize)). I hope you understand this :O