Skip to content

Commit a6bd851

Browse files
committed
Update command feedback
1 parent 7be63d5 commit a6bd851

File tree

2 files changed

+14
-3
lines changed

2 files changed

+14
-3
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,4 @@ Get support, suggest changes or chat about the project in our Discord: https://d
1212

1313
## Carbon CLI (for developers)
1414
- Ensure you have built the file already
15-
- `carbon deploy ./plugin/build/libs/PluginPortal-2.2.1.jar /plugins --star 92puvy2K0caL9akj -wr"`
15+
- `carbon deploy ./plugin/build/libs/PluginPortal-2.2.1.jar /plugins --star <Carbon Star ID> -wr"`

plugin/src/main/kotlin/gg/flyte/pluginportal/plugin/command/PremiumSubCommands.kt

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,12 @@
11
package gg.flyte.pluginportal.plugin.command
22

3-
import gg.flyte.pluginportal.plugin.chat.sendFailure
3+
import gg.flyte.pluginportal.plugin.chat.Status
4+
import gg.flyte.pluginportal.plugin.chat.boxed
5+
import gg.flyte.pluginportal.plugin.chat.status
6+
import gg.flyte.pluginportal.plugin.util.SharedComponents
47
import net.kyori.adventure.audience.Audience
8+
import net.kyori.adventure.text.Component.text
9+
import net.kyori.adventure.text.format.NamedTextColor
510
import revxrsal.commands.annotation.Command
611
import revxrsal.commands.annotation.Subcommand
712
import revxrsal.commands.bukkit.annotation.CommandPermission
@@ -26,6 +31,12 @@ class PremiumSubCommands {
2631
fun exportCommand(audience: Audience) = premiumCommand(audience)
2732

2833
fun premiumCommand(audience: Audience) {
29-
audience.sendFailure("This command is only available for Plugin Portal Premium.")
34+
audience.sendMessage(
35+
status(Status.FAILURE, "\n- This command is only available for Plugin Portal Premium.\n")
36+
.append(text("- Join our ", NamedTextColor.GRAY))
37+
.append(SharedComponents.DISCORD_COMPONENT)
38+
.append(text(" For more information", NamedTextColor.GRAY))
39+
.boxed()
40+
)
3041
}
3142
}

0 commit comments

Comments
 (0)