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

Commit 0f36ab6

Browse files
committed
Changed default protection level to registered users.
1 parent a8cbe78 commit 0f36ab6

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

plugins/planet_protect/planet_protect_plugin.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import json
21
from base_plugin import SimpleCommandPlugin
32
from core_plugins.player_manager import UserLevels, permissions
43

@@ -36,14 +35,14 @@ def activate(self):
3635
self.player_manager = self.plugins['player_manager']
3736

3837
def planet_check(self):
39-
if self.protocol.player.planet in self.protected_planets and self.protocol.player.access_level < UserLevels.ADMIN:
38+
if self.protocol.player.planet in self.protected_planets and self.protocol.player.access_level < UserLevels.REGISTERED:
4039
return False
4140
else:
4241
return True
4342

4443
@permissions(UserLevels.ADMIN)
4544
def protect(self, data):
46-
"""Protects the current planet. Only admins can build on protected planets. Syntax: /protect"""
45+
"""Protects the current planet. Only registered users can build on protected planets. Syntax: /protect"""
4746
planet = self.protocol.player.planet
4847
on_ship = self.protocol.player.on_ship
4948
if on_ship:

0 commit comments

Comments
 (0)