Skip to content

Commit 1fb3912

Browse files
committed
Change help message for custom help topics a bit
1 parent f9c5fce commit 1fb3912

File tree

3 files changed

+6
-14
lines changed
  • commandapi-documentation-code/src/main
  • docssrc/src

3 files changed

+6
-14
lines changed

commandapi-documentation-code/src/main/java/dev/jorel/commandapi/examples/java/Examples.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1699,12 +1699,12 @@ public String getFullText(CommandSender forWho) {
16991699
// Make use of the player's locale to make language-specific help!
17001700
Locale playerLocale = player.locale();
17011701
if (playerLocale.getLanguage().equals("en")) {
1702-
helpText = "Broadcasts hi to everyone on the server";
1702+
helpText = "Broadcasts \"Hi!\" to everyone on the server";
17031703
} else if (playerLocale.getLanguage().equals("de")) {
1704-
helpText = "Sendet Hallo an alle auf dem Server";
1704+
helpText = "Sendet \"Hi!\" an alle auf dem Server";
17051705
}
17061706
} else {
1707-
helpText = "Broadcasts hi to everyone on the server";
1707+
helpText = "Broadcasts \"Hi!\" to everyone on the server";
17081708
}
17091709
return helpText;
17101710
}

commandapi-documentation-code/src/main/kotlin/dev/jorel/commandapi/examples/kotlin/Examples.kt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1614,12 +1614,12 @@ fun makeHelp(command: String): HelpTopic = object: HelpTopic() {
16141614
// Make use of the player's locale to make language-specific help!
16151615
val playerLocale = forWho.locale()
16161616
if (playerLocale.getLanguage() == "en") {
1617-
helpText = "Broadcasts hi to everyone on the server"
1617+
helpText = "Broadcasts \"Hi!\" to everyone on the server"
16181618
} else if (playerLocale.getLanguage() == "de") {
1619-
helpText = "Sendet Hallo an alle auf dem Server"
1619+
helpText = "Sendet \"Hi!\" an alle auf dem Server"
16201620
}
16211621
} else {
1622-
helpText = "Broadcasts hi to everyone on the server"
1622+
helpText = "Broadcasts \"Hi!\" to everyone on the server"
16231623
}
16241624
return helpText
16251625
}

docssrc/src/help.md

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -105,10 +105,6 @@ In this example, we implement locale-specific help so players can see help in th
105105
{{#include ../../commandapi-documentation-code/src/main/kotlin/dev/jorel/commandapi/examples/kotlin/Examples.kt:help3}}
106106
```
107107

108-
```kotlin,Kotlin_DSL
109-
{{#include ../../commandapi-documentation-code/src/main/kotlin/dev/jorel/commandapi/examples/kotlin/ExamplesKotlinDSL.kt:help3}}
110-
```
111-
112108
</div>
113109

114110
We then add our new `HelpTopic` to the command using the `withHelp` method:
@@ -123,10 +119,6 @@ We then add our new `HelpTopic` to the command using the `withHelp` method:
123119
{{#include ../../commandapi-documentation-code/src/main/kotlin/dev/jorel/commandapi/examples/kotlin/Examples.kt:help4}}
124120
```
125121

126-
```kotlin,Kotlin_DSL
127-
{{#include ../../commandapi-documentation-code/src/main/kotlin/dev/jorel/commandapi/examples/kotlin/ExamplesKotlinDSL.kt:help4}}
128-
```
129-
130122
</div>
131123

132124
</div>

0 commit comments

Comments
 (0)