File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed
src/main/kotlin/me/apyr/chatemotes/commands Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ import org.bukkit.event.block.SignChangeEvent
1414class SetSignCommand : ChatEmotesCommand {
1515 override val name: String = " setsign"
1616 override val description: String = " modify a line on the sign"
17- override val usage: String = " <1-4> < text> "
17+ override val usage: String = " <1-4> [ text] "
1818
1919 override fun onCommand (sender : CommandSender , args : List <String >) {
2020 if (sender !is Player ) {
@@ -24,7 +24,6 @@ class SetSignCommand : ChatEmotesCommand {
2424 val line: Int = (checkArgument(args.getOrNull(0 )).toIntOrNull() ? : 1 )
2525 .coerceAtLeast(1 )
2626 .coerceAtMost(4 )
27- checkArgument(args.getOrNull(1 ))
2827 val text: String = args.drop(1 ).joinToString(" " )
2928
3029 val sign: Block = sender.getTargetBlock(null , 5 )
@@ -55,7 +54,7 @@ class SetSignCommand : ChatEmotesCommand {
5554 override fun onTabComplete (sender : CommandSender , args : List <String >): List <String > {
5655 return when {
5756 args.size == 1 && args[0 ].isEmpty() -> listOf (" <1-4>" )
58- args.size == 2 && args[1 ].isEmpty() -> listOf (" < text> " )
57+ args.size == 2 && args[1 ].isEmpty() -> listOf (" [ text] " )
5958 else -> emptyList()
6059 }
6160 }
You can’t perform that action at this time.
0 commit comments