<s> import json , os , traceback <EOL> NAME = "<STR_LIT>" <EOL> AUTHOR = "<STR_LIT>" <EOL> ID = "<STR_LIT>" <EOL> SUMMARY = "<STR_LIT>" <EOL> DESCRIPTION = """<STR_LIT>""" <EOL> WEBSITE = "<STR_LIT>" <EOL> VERSION = ( <NUM_LIT:0> , <NUM_LIT:2> ) <EOL> class Main : <EOL> def __init__ ( self , api , log ) : <EOL> self . api = api <EOL> self . minecraft = api . minecraft <EOL> self . log = log <EOL> def onEnable ( self ) : <EOL> self . data = self . api . getStorage ( "<STR_LIT>" , True ) <EOL> self . api . registerHelp ( "<STR_LIT>" , "<STR_LIT>" , [ <EOL> ( "<STR_LIT>" , "<STR_LIT>" , None ) , <EOL> ( "<STR_LIT>" , "<STR_LIT>" , None ) , <EOL> ] ) <EOL> self . api . registerCommand ( "<STR_LIT>" , self . sethome ) <EOL> self . api . registerCommand ( "<STR_LIT>" , self . home ) <EOL> def onDisable ( self ) : <EOL> self . data . save ( ) <EOL> def sethome ( self , player , args ) : <EOL> if not player . getDimension ( ) == <NUM_LIT:0> : <EOL> player . message ( { "<STR_LIT:text>" : "<STR_LIT>" , "<STR_LIT>" : "<STR_LIT>" } ) <EOL> return <EOL> player . message ( { "<STR_LIT:text>" : "<STR_LIT>" , "<STR_LIT>" : "<STR_LIT>" } ) <EOL> self . data [ player . username ] = player . getPosition ( ) <EOL> def home ( self , player , args ) : <EOL> if not player . getDimension ( ) == <NUM_LIT:0> : <EOL> player . message ( { "<STR_LIT:text>" : "<STR_LIT>" , "<STR_LIT>" : "<STR_LIT>" } ) <EOL> return <EOL> username = player . username <EOL> if username not in self . data : <EOL> player . message ( { "<STR_LIT:text>" : "<STR_LIT>" , "<STR_LIT>" : "<STR_LIT>" } ) <EOL> return <EOL> player . message ( { "<STR_LIT:text>" : "<STR_LIT>" , "<STR_LIT>" : "<STR_LIT>" } ) <EOL> self . api . minecraft . console ( "<STR_LIT>" % ( username , self . data [ username ] [ <NUM_LIT:0> ] , self . data [ username ] [ <NUM_LIT:1> ] , self . data [ username ] [ <NUM_LIT:2> ] ) ) </s>
