[SHOEBILL] Need help with command parameters
#1

Hello,

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;
        }
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.
Reply
#2

I don't really know why you use Shoebill when you are not good in it ...
Reply
#3

are you stupid?
There is not much documentation for shoebill and the parameter situation has nothing to do with normal Java language. I was just asking if maybe some knew how to do it.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)