mirror of
https://github.com/Mezeporta/Erupe.git
synced 2025-12-14 07:55:33 +01:00
hide disabled commands
This commit is contained in:
@@ -325,7 +325,9 @@ func parseChatCommand(s *Session, command string) {
|
|||||||
case commands["Help"].Prefix:
|
case commands["Help"].Prefix:
|
||||||
if commands["Help"].Enabled {
|
if commands["Help"].Enabled {
|
||||||
for _, command := range commands {
|
for _, command := range commands {
|
||||||
sendServerChatMessage(s, fmt.Sprintf("%s%s: %s", s.server.erupeConfig.CommandPrefix, command.Prefix, command.Description))
|
if command.Enabled {
|
||||||
|
sendServerChatMessage(s, fmt.Sprintf("%s%s: %s", s.server.erupeConfig.CommandPrefix, command.Prefix, command.Description))
|
||||||
|
}
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
sendDisabledCommandMessage(s, commands["Help"])
|
sendDisabledCommandMessage(s, commands["Help"])
|
||||||
|
|||||||
Reference in New Issue
Block a user