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

Commit f70d789

Browse files
committed
Fixed bug with bad method grouping leading to commands not working
1 parent 7405226 commit f70d789

2 files changed

Lines changed: 7 additions & 15 deletions

File tree

plugins/claims/claims_plugin.py

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -222,13 +222,9 @@ def claim_list(self, data):
222222
)
223223
self.protocol.send_chat_message(
224224
'Players registered to this planet: ^yellow;{}'.format(
225-
'^green;, ^yellow;'.join(
226-
(
227-
self.player_planets[planet]
228-
.replace('[', '')
229-
.replace(']', '')
230-
)
231-
)
225+
'^green;, ^yellow;'.join(self.player_planets[planet])
226+
.replace('[', '')
227+
.replace(']', '')
232228
)
233229
)
234230
elif planet in self.unclaimable_planets:

plugins/planet_protect/planet_protect_plugin.py

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -173,14 +173,10 @@ def protect_list(self, data):
173173
return
174174
if planet in self.player_planets:
175175
self.protocol.send_chat_message(
176-
'Players registered to this planet: ^yellow;{}'.format(
177-
'^green;, ^yellow;'.join(
178-
(
179-
self.player_planets[planet]
180-
.replace('[', '')
181-
.replace(']', '')
182-
)
183-
)
176+
'Players registered to this planet: ^green;{}'.format(
177+
'^yellow;, ^green;'.join(self.player_planets[planet])
178+
.replace('[', '')
179+
.replace(']', '')
184180
)
185181
)
186182
else:

0 commit comments

Comments
 (0)