This site works best with JavaScript enabled. Please enable JavaScript to get the best experience from this site.
I wan't to script a !me command but my script code is not good see :
class MeCommand (object):
IDENTIFIER = "MeCommand"
def __init__(self, server, output, config):
server.say("%s %s", output.name, result)
__________________________________
"!me": MeCommand
__________________________________
Ex : If the player type !me go to sleep. The server say *Player* go to sleep.
So, Can you tell me what is the problem on my script code ?
Thanks :smile.gif:
Quality of output = Skill * Effort
Because if result is undefined, what is the good term to use ?
And can i have help for a command like this :
Ex: If the player type !water, a water bloc spawn
If the player type !lava, a lava bloc spawn. You see ?
Quality of output = Skill * Effort
class MeCommand:
IDENTIFIER="MeCommand"
def __init__(self,server,output,config):
msg=output.message
msg2=msg.replace('!me','')
server.say(output.name+msg2)
Quality of output = Skill * Effort