How can i print arg string

Please post any questions about developing your plugin here. Please use the search function before posting!
MithatGuner
Junior Member
Posts: 7
Joined: Thu Jun 29, 2017 5:32 pm

How can i print arg string

Postby MithatGuner » Sun Jul 02, 2017 9:43 am

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.
MithatGuner
Junior Member
Posts: 7
Joined: Thu Jun 29, 2017 5:32 pm

Re: How can i print arg string

Postby MithatGuner » Sun Jul 02, 2017 9:56 am

İts fixed thanks to "Kill"
User avatar
Ayuto
Project Leader
Posts: 2193
Joined: Sat Jul 07, 2012 8:17 am
Location: Germany

Re: How can i print arg string

Postby Ayuto » Sun Jul 02, 2017 11:50 am

You can also just print the command: print(command)

It will print all args as a tuple.

Return to “Plugin Development Support”

Who is online

Users browsing this forum: No registered users and 37 guests