Skip to content

Commit 106f429

Browse files
committed
Make showHelpMessage for CommandSender also
1 parent a39802f commit 106f429

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ sourceCompatibility = targetCompatibility = JavaVersion.VERSION_1_8
99
compileJava.options.encoding 'UTF-8'
1010

1111
group 'me.dkim19375'
12-
version '3.0.1'
12+
version '3.0.2'
1313

1414
repositories {
1515
mavenCentral()

src/main/kotlin/me/dkim19375/dkim19375core/function/PlayerFunctions.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ fun String.toPlayer(): Player? {
3030
* @param page The page of the help page
3131
* @param commands The commands to show
3232
*/
33-
fun Player.showHelpMessage(label: String, error: String? = null, page: Int = 1, commands: List<HelpMessage>, plugin: CoreJavaPlugin) {
33+
fun CommandSender.showHelpMessage(label: String, error: String? = null, page: Int = 1, commands: List<HelpMessage>, plugin: CoreJavaPlugin) {
3434
sendMessage("${ChatColor.DARK_BLUE}------------------------------------------------")
3535
sendMessage(
3636
"${ChatColor.GREEN}Bedwars v${plugin.description.version} " +

0 commit comments

Comments
 (0)