diff --git a/foundation-core/src/main/kotlin/gay/pizza/foundation/core/features/player/GooseCommand.kt b/foundation-core/src/main/kotlin/gay/pizza/foundation/core/features/player/GooseCommand.kt new file mode 100644 index 0000000..8aaa428 --- /dev/null +++ b/foundation-core/src/main/kotlin/gay/pizza/foundation/core/features/player/GooseCommand.kt @@ -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): 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 + } +} diff --git a/foundation-core/src/main/kotlin/gay/pizza/foundation/core/features/player/PlayerFeature.kt b/foundation-core/src/main/kotlin/gay/pizza/foundation/core/features/player/PlayerFeature.kt index 2c13831..4196081 100644 --- a/foundation-core/src/main/kotlin/gay/pizza/foundation/core/features/player/PlayerFeature.kt +++ b/foundation-core/src/main/kotlin/gay/pizza/foundation/core/features/player/PlayerFeature.kt @@ -47,6 +47,7 @@ class PlayerFeature : Feature() { registerCommandExecutor(listOf("adventure", "a"), GamemodeCommand(GameMode.ADVENTURE)) registerCommandExecutor(listOf("spectator", "sp"), GamemodeCommand(GameMode.SPECTATOR)) registerCommandExecutor(listOf("localweather", "lw"), LocalWeatherCommand()) + registerCommandExecutor(listOf("goose", "the_most_wonderful_kitty_ever"), GooseCommand()) } override fun module() = org.koin.dsl.module { diff --git a/foundation-core/src/main/resources/plugin.yml b/foundation-core/src/main/resources/plugin.yml index ea1a4f6..cb8c21f 100644 --- a/foundation-core/src/main/resources/plugin.yml +++ b/foundation-core/src/main/resources/plugin.yml @@ -63,3 +63,8 @@ commands: usage: /localweather aliases: - lw + goose: + description: Goose + usage: /goose + aliases: + - the_most_wonderful_kitty_ever