Skip to content

Commit

Permalink
make #nextmap use player object rather than cn
Browse files Browse the repository at this point in the history
  • Loading branch information
fdChasm committed May 31, 2010
1 parent 8515bc6 commit 95379a6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/pyscripts/plugins/maprotation.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,15 +89,15 @@ def presetRotate():
rotate_on_join[0] = True
sbserver.setPaused(True)

def onNextMapCmd(cn, args):
def onNextMapCmd(p, args):
'''@description Display next map
@usage
@public'''
if args != '':
sbserver.playerMessage(cn, error('Usage: #nextmap'))
p.message(error('Usage: #nextmap'))
else:
try:
sbserver.playerMessage(cn, info(config['Templates']['nextmap_response'].substitute(colordict, mapname=getSuccessor(sbserver.gameMode(), sbserver.mapName()))))
p.messageinfo(config['Templates']['nextmap_response'].substitute(colordict, mapname=getSuccessor(sbserver.gameMode(), sbserver.mapName()))))
except (KeyError, ValueError):
sbserver.playerMessage(cn, error('Could not determine next map'))

Expand Down

0 comments on commit 95379a6

Please sign in to comment.