Skip to content

Commit 0ad9689

Browse files
committed
feat: implement help
1 parent f9853d6 commit 0ad9689

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

scoreboardHelper/scoreboardHelper.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,12 +69,15 @@ def help(self, player, text_list):
6969
"!sb view <name>": view a certain scoreboard for a period of time.
7070
-------------------------------------------------------------------'''
7171
op_help_info = '''\
72+
----------------- ScoreboardHelper OP Command List ----------------
7273
"!sb cycle <true|false>": turn on/off scoreboard cycling.
7374
"!sb <add|rm> <visible|cycle> <name>":
7475
add/remove a scoreboard from visible/cycle list.
7576
"!sb settime <visible|cycle> <time_in_sec>":
76-
77-
'''
77+
set cycle interval / view duration time in sec.
78+
-------------------------------------------------------------------'''
79+
help_msg = help_info + (op_help_info if player.is_op() else '')
80+
self.utils.tell(player, help_msg)
7881

7982

8083
def list_visible_sb(self, player, text_list):

0 commit comments

Comments
 (0)