This commit is contained in:
2023-02-02 23:16:37 -08:00
parent cbe647cce9
commit fdeff648f4
3 changed files with 28 additions and 0 deletions

View File

@ -0,0 +1,22 @@
package gay.pizza.foundation.core.features.player
import org.bukkit.command.Command
import org.bukkit.command.CommandExecutor
import org.bukkit.command.CommandSender
import org.bukkit.entity.Player
class GooseCommand : CommandExecutor {
override fun onCommand(
sender: CommandSender,
command: Command,
label: String,
args: Array<out String>): Boolean {
if (sender !is Player) {
sender.sendMessage("Player is required for this command.")
return true
}
sender.chat("Goose is the most beautiful kbity to ever exist <3")
sender.chat("I don't know who Nat is but there is no way she can compare to Goose.")
return true
}
}

View File

@ -47,6 +47,7 @@ class PlayerFeature : Feature() {
registerCommandExecutor(listOf("adventure", "a"), GamemodeCommand(GameMode.ADVENTURE)) registerCommandExecutor(listOf("adventure", "a"), GamemodeCommand(GameMode.ADVENTURE))
registerCommandExecutor(listOf("spectator", "sp"), GamemodeCommand(GameMode.SPECTATOR)) registerCommandExecutor(listOf("spectator", "sp"), GamemodeCommand(GameMode.SPECTATOR))
registerCommandExecutor(listOf("localweather", "lw"), LocalWeatherCommand()) registerCommandExecutor(listOf("localweather", "lw"), LocalWeatherCommand())
registerCommandExecutor(listOf("goose", "the_most_wonderful_kitty_ever"), GooseCommand())
} }
override fun module() = org.koin.dsl.module { override fun module() = org.koin.dsl.module {

View File

@ -63,3 +63,8 @@ commands:
usage: /localweather <type> usage: /localweather <type>
aliases: aliases:
- lw - lw
goose:
description: Goose
usage: /goose
aliases:
- the_most_wonderful_kitty_ever