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

Commit 7eb812a

Browse files
committed
Fixed up merge conflict, normalized docstring format.
2 parents 28e731b + 7baf366 commit 7eb812a

3 files changed

Lines changed: 9 additions & 2 deletions

File tree

plugins/admin_commands_plugin/admin_command_plugin.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ def who(self, data):
4343
return False
4444

4545
def planet(self, data):
46-
"""Displays who is on your current planet"""
46+
"""Displays who is on your current planet."""
4747
who = [w.colored_name(self.config.colors) for w in self.player_manager.who() if w.planet == self.protocol.player.planet and not w.on_ship]
4848
self.protocol.send_chat_message("Players on your current planet: %s" % " ".join(who))
4949

@@ -117,7 +117,7 @@ def make_admin(self, player):
117117

118118
@permissions(UserLevels.MODERATOR)
119119
def kick(self, data):
120-
"""Kicks a user from the server. Syntax: /kick [username] [reason]"""
120+
"""Kicks a user from the server. Usage: /kick [username] [reason]"""
121121
name, reason = self.extract_name(data)
122122
if reason is None:
123123
reason = "no reason given"

plugins/planet_protect/planet_protect_plugin.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@
44

55

66
class PlanetProtectPlugin(SimpleCommandPlugin):
7+
"""
8+
Allows planets to be either protector or unprotected. On protected planets,
9+
only admins can build. Planets are unprotected by default.
10+
"""
711
name = "planet_protect"
812
description = "Protects planets."
913
commands = ["protect", "unprotect"]
@@ -40,6 +44,7 @@ def planet_check(self):
4044

4145
@permissions(UserLevels.ADMIN)
4246
def protect(self, data):
47+
"""Protects the current planet. Only admins can build on protected planets. Syntax: /protect"""
4348
planet = self.protocol.player.planet
4449
on_ship = self.protocol.player.on_ship
4550
if on_ship:
@@ -55,6 +60,7 @@ def protect(self, data):
5560

5661
@permissions(UserLevels.ADMIN)
5762
def unprotect(self, data):
63+
"""Removes the protection from the current planet. Syntax: /unprotect"""
5864
planet = self.protocol.player.planet
5965
on_ship = self.protocol.player.on_ship
6066
if on_ship:

plugins/plugin_manager_plugin/plugin_manager_plugin.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

55

66
class PluginManagerPlugin(SimpleCommandPlugin):
7+
""" Provides a simple chat interface to the PluginManager"""
78
name = "plugin_manager"
89
commands = ["list_plugins", "enable_plugin", "disable_plugin", "help", "reload_plugins"]
910
auto_activate = True

0 commit comments

Comments
 (0)