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

Commit 013fddb

Browse files
author
Marv Cool
committed
adds a feedback chat message for affected player
1 parent 6be1dcc commit 013fddb

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

plugins/admin_commands_plugin/admin_command_plugin.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,9 +80,11 @@ def promote(self, data):
8080
self.protocol.send_chat_message("No such rank!\n"+usage)
8181
return
8282

83-
self.protocol.send_chat_message("%s: %s -> %s\n" % (
83+
self.protocol.send_chat_message("%s: %s -> %s" % (
8484
player.colored_name(self.config.colors), str(UserLevels(old_rank)).split(".")[1],
8585
rank.upper()))
86+
self.protocol.factory.protocols[player.protocol].send_chat_message("%s has promoted you to %s" % (
87+
player.colored_name(self.config.colors), rank.upper()))
8688
else:
8789
self.protocol.send_chat_message("Player not found!\n"+usage)
8890
return

0 commit comments

Comments
 (0)