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

Commit 2c34a1c

Browse files
committed
Removed whoami. Starbound clients intercept the command before it is sent to the server, so the whoami code no longer works. Easy fix is to use a different command name... but I'm hard pressed to come up with a good alternative at the moment. So instead, I'm just cutting it out all together. Using whois <name> works and gives all the same info.
1 parent 77438d8 commit 2c34a1c

File tree

1 file changed

+22
-22
lines changed

1 file changed

+22
-22
lines changed

plugins/core/admin_commands_plugin/admin_command_plugin.py

+22-22
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ class UserCommandPlugin(SimpleCommandPlugin):
1616
name = 'admin_commands_plugin'
1717
depends = ['command_plugin', 'player_manager_plugin']
1818
commands = [
19-
'who', 'whoami', 'whois', 'promote', 'kick', 'ban', 'ban_list',
19+
'who', 'whois', 'promote', 'kick', 'ban', 'ban_list',
2020
'unban', 'item', 'planet', 'mute', 'unmute', 'passthrough', 'shutdown',
2121
'timestamps'
2222
]
@@ -61,27 +61,27 @@ def planet(self, data):
6161
)
6262
)
6363

64-
@permissions(UserLevels.GUEST)
65-
def whoami(self, data):
66-
"""
67-
Displays client data about yourself.
68-
Syntax: /whoami
69-
"""
70-
info = self.protocol.player
71-
self.protocol.send_chat_message(
72-
'Name: {} ^green;: ^gray;{}\nUserlevel: ^yellow;{}^green; '
73-
'(^gray;{}^green;)\nUUID: ^yellow;{}^green;\nIP address: '
74-
'^cyan;{}^green;\nCurrent planet: ^yellow;{}^green;'.format(
75-
info.colored_name(self.config.colors),
76-
info.org_name,
77-
UserLevels(info.access_level),
78-
info.last_seen.strftime('%c'),
79-
info.uuid,
80-
info.ip,
81-
info.planet
82-
)
83-
)
84-
return False
64+
# @permissions(UserLevels.GUEST)
65+
# def whoami(self, data):
66+
# """
67+
# Displays client data about yourself.
68+
# Syntax: /whoami
69+
# """
70+
# info = self.protocol.player
71+
# self.protocol.send_chat_message(
72+
# 'Name: {} ^green;: ^gray;{}\nUserlevel: ^yellow;{}^green; '
73+
# '(^gray;{}^green;)\nUUID: ^yellow;{}^green;\nIP address: '
74+
# '^cyan;{}^green;\nCurrent planet: ^yellow;{}^green;'.format(
75+
# info.colored_name(self.config.colors),
76+
# info.org_name,
77+
# UserLevels(info.access_level),
78+
# info.last_seen.strftime('%c'),
79+
# info.uuid,
80+
# info.ip,
81+
# info.planet
82+
# )
83+
# )
84+
# return False
8585

8686
@permissions(UserLevels.REGISTERED)
8787
def whois(self, data):

0 commit comments

Comments
 (0)