30.08.2016, 20:38
Hello,
I am using the following code :
but the problem is that it gives me a usage error when typing a sentence as the string parameter. I know what the problem is but I have no idea how to fix it in shoebill.
Is there a way to fetch a sentence as a single parameter.
Thanks.
I am using the following code :
Код:
@Command
public boolean pm(Player player, Player target, String message)
{
if (target == null)
{
return true;
}
player.sendMessage(Color.ORANGE, "PM to [" + target.getId() + "]" + target.getName() + " : " + message);
target.sendMessage(Color.ORANGERED, "PM from [" + player.getId() + "]" + player.getName() + " : " + message);
return true;
}
Is there a way to fetch a sentence as a single parameter.
Thanks.

