Skip to content

Commit

Permalink
Merge pull request #736 from DryByte/patch-7
Browse files Browse the repository at this point in the history
Fixes on movement.py script
  • Loading branch information
NotAFile committed Dec 4, 2022
2 parents abb36ef + eae90c2 commit c105d21
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions piqueserver/core_commands/movement.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ def unstick(connection, player):
Unstick yourself or another player and inform everyone on the server of it
/unstick [player]
"""
connection.protocol.send_chat("%s unstuck %s" %
connection.protocol.broadcast_chat("%s unstuck %s" %
(connection.name, player.name), irc=True)
player.set_location_safe(player.get_location())

Expand Down Expand Up @@ -77,7 +77,7 @@ def do_move(connection, args, silent=False):
player = connection.name
# player specified
elif arg_count == 2 or arg_count == 4:
if not (connection.rights.admin or connection.rights.move_others):
if not (connection.admin or connection.rights.move_others):
raise PermissionDenied(
"moving other players requires the move_others right")
player = args[0]
Expand All @@ -98,7 +98,7 @@ def do_move(connection, args, silent=False):
if silent:
connection.protocol.irc_say('* ' + message)
else:
connection.protocol.send_chat(message, irc=True)
connection.protocol.broadcast_chat(message, irc=True)


@command(admin_only=True)
Expand Down Expand Up @@ -144,7 +144,7 @@ def teleport(connection, player1, player2=None, silent=False):
if silent:
connection.protocol.irc_say('* ' + message)
else:
connection.protocol.send_chat(message, irc=True)
connection.protocol.broadcast_chat(message, irc=True)


@command('tpsilent', 'tps', admin_only=True)
Expand Down

0 comments on commit c105d21

Please sign in to comment.