Page 1 of 1

How can i print arg string

Posted: Sun Jul 02, 2017 9:43 am
by MithatGuner
i wanna print the client args string how can i do that

Syntax: Select all

from messages import SayText2
from players.entity import Player
from commands.client import ClientCommand

@ClientCommand('!test', 'admin')
def _registered_client_command_function(command, pindex):
player = Player(pindex)
args = command.arg_string
SayText2(args).send(player)


the code is not work.

Re: How can i print arg string

Posted: Sun Jul 02, 2017 9:56 am
by MithatGuner
İts fixed thanks to "Kill"

Re: How can i print arg string

Posted: Sun Jul 02, 2017 11:50 am
by Ayuto
You can also just print the command: print(command)

It will print all args as a tuple.