Fix command confirmations. Now uses suggestCommand instead of runCommand.
This commit is contained in:
parent
32ab113a25
commit
f219a5ac84
|
@ -342,7 +342,7 @@ public class BoosCoolDownListener implements Listener {
|
|||
BoosChat.sendMessageToPlayer(player, " " + limitMessage);
|
||||
}
|
||||
final String yesString = BoosConfigManager.getConfirmCommandMessage();
|
||||
final JSONClickAction yesClick = new JSONClickAction.RunCommand(yesString);
|
||||
final JSONClickAction yesClick = new JSONClickAction.SuggestCommand(yesString);
|
||||
final JSONHoverAction yesHover = new JSONHoverAction.ShowStringText(BoosConfigManager.getConfirmCommandHint());
|
||||
final JSONComponent yes = new JSONComponent(" " + yesString);
|
||||
yes.setColor(JSONColor.GREEN).setBold(true);
|
||||
|
@ -351,7 +351,7 @@ public class BoosCoolDownListener implements Listener {
|
|||
yes.send(player);
|
||||
|
||||
final String noString = BoosConfigManager.getCancelCommandMessage();
|
||||
final JSONClickAction noClick = new JSONClickAction.RunCommand(noString);
|
||||
final JSONClickAction noClick = new JSONClickAction.SuggestCommand(noString);
|
||||
final JSONHoverAction noHover = new JSONHoverAction.ShowStringText(BoosConfigManager.getCancelCommandHint());
|
||||
final JSONComponent no = new JSONComponent(" " + noString);
|
||||
no.setColor(JSONColor.RED).setBold(true);
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
name: boosCooldowns
|
||||
main: cz.boosik.boosCooldown.BoosCoolDown
|
||||
version: 3.17.4
|
||||
version: 3.17.5
|
||||
api-version: 1.13
|
||||
authors: [LordBoos (boosik)]
|
||||
softdepend: [Vault, PlayerPoints]
|
||||
|
|
4
pom.xml
4
pom.xml
|
@ -11,10 +11,10 @@
|
|||
<packaging>pom</packaging>
|
||||
<url>http://maven.apache.org</url>
|
||||
<properties>
|
||||
<boosCooldowns.version>3.17.4</boosCooldowns.version>
|
||||
<boosCooldowns.version>3.17.5</boosCooldowns.version>
|
||||
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
||||
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
|
||||
<minecraft.version>1.19</minecraft.version>
|
||||
<minecraft.version>1.19.3</minecraft.version>
|
||||
<bukkit.version>R0.1</bukkit.version>
|
||||
</properties>
|
||||
<pluginRepositories>
|
||||
|
|
Loading…
Reference in New Issue