Update of /cvsroot/wpdev/xmlscripts/scripts/commands
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv28798/commands
Added Files:
fix.py
Log Message:
commands.fix
Added a new utility function
--- NEW FILE: fix.py ---
#===============================================================#
# ) (\_ | WOLFPACK 13.0.0 Scripts
# (( _/{ "-; | Created by: Dreoth
# )).-' {{ ;'` | Revised by:
# ( ( ;._ \\ ctr | Last Modification: Created
#===============================================================#
"""
\command fix
\description Resend the player information.
"""
import wolfpack
# Loads the command
def onLoad():
wolfpack.registercommand( 'fix', commandFix )
return
def commandFix( socket, cmd, args ):
socket.sysmessage( "Resending the world, please wait." )
socket.player.update()
socket.player.resendtooltip()
socket.sysmessage( "Resend complete." )
return True
|