Skip to content

Commit

Permalink
Fix for /spawn to only work on a ship
Browse files Browse the repository at this point in the history
  • Loading branch information
teihoo committed Mar 16, 2014
1 parent bb0e6b2 commit 2649c2e
Showing 1 changed file with 4 additions and 0 deletions.
Expand Up @@ -35,5 +35,9 @@ def activate(self):
@permissions(UserLevels.GUEST)
def spawn(self, data):
"""Warps your ship to spawn.\nSyntax: /spawn"""
on_ship = self.protocol.player.on_ship
if not on_ship:
self.protocol.send_chat_message("You need to be on a ship!")
return
self.plugins['warpy_plugin'].move_player_ship(self.protocol, [x for x in self._spawn])
self.protocol.send_chat_message("Moving your ship to spawn.")

0 comments on commit 2649c2e

Please sign in to comment.