Skip to content
This repository was archived by the owner on Apr 27, 2019. It is now read-only.

Commit 3d4f8c8

Browse files
author
Marv Cool
committed
adds docstring
1 parent a74de55 commit 3d4f8c8

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

plugins/planet_protect/planet_protect_plugin.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ def planet_check(self):
4040

4141
@permissions(UserLevels.ADMIN)
4242
def protect(self, data):
43+
"""Protects the current planet. Only admins can build on protected planets."""
4344
planet = self.protocol.player.planet
4445
on_ship = self.protocol.player.on_ship
4546
if on_ship:
@@ -54,6 +55,7 @@ def protect(self, data):
5455

5556
@permissions(UserLevels.ADMIN)
5657
def unprotect(self, data):
58+
"""Removes the protection from the current planet."""
5759
planet = self.protocol.player.planet
5860
on_ship = self.protocol.player.on_ship
5961
if on_ship:

0 commit comments

Comments
 (0)