From 15e342564cb38115318cf5519c7c56c671dfcdfc Mon Sep 17 00:00:00 2001 From: D3v1s0m Date: Sun, 13 Aug 2023 12:38:56 +0530 Subject: [PATCH] added delay info in hover of action list --- .../interaction/consolecommand/ConsoleCommandAction.java | 2 +- .../lol/pyr/znpcsplus/interaction/message/MessageAction.java | 2 +- .../pyr/znpcsplus/interaction/playerchat/PlayerChatAction.java | 2 +- .../interaction/playercommand/PlayerCommandAction.java | 2 +- .../znpcsplus/interaction/switchserver/SwitchServerAction.java | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/plugin/src/main/java/lol/pyr/znpcsplus/interaction/consolecommand/ConsoleCommandAction.java b/plugin/src/main/java/lol/pyr/znpcsplus/interaction/consolecommand/ConsoleCommandAction.java index 2153beb..1b0b040 100644 --- a/plugin/src/main/java/lol/pyr/znpcsplus/interaction/consolecommand/ConsoleCommandAction.java +++ b/plugin/src/main/java/lol/pyr/znpcsplus/interaction/consolecommand/ConsoleCommandAction.java @@ -45,7 +45,7 @@ public class ConsoleCommandAction extends InteractionActionImpl { .append(Component.text(" | ", NamedTextColor.GRAY)) .append(Component.text("Console Command: ", NamedTextColor.GREEN) .hoverEvent(HoverEvent.hoverEvent(HoverEvent.Action.SHOW_TEXT, - Component.text("Click Type: " + getInteractionType().name() + " Cooldown: " + getCooldown()/1000, NamedTextColor.GREEN)))) + Component.text("Click Type: " + getInteractionType().name() + " Cooldown: " + getCooldown()/1000 + " Delay: " + getDelay(), NamedTextColor.GRAY)))) .append(Component.text(command, NamedTextColor.WHITE))); } diff --git a/plugin/src/main/java/lol/pyr/znpcsplus/interaction/message/MessageAction.java b/plugin/src/main/java/lol/pyr/znpcsplus/interaction/message/MessageAction.java index 3122f55..2382275 100644 --- a/plugin/src/main/java/lol/pyr/znpcsplus/interaction/message/MessageAction.java +++ b/plugin/src/main/java/lol/pyr/znpcsplus/interaction/message/MessageAction.java @@ -48,7 +48,7 @@ public class MessageAction extends InteractionActionImpl { .append(Component.text(" | ", NamedTextColor.GRAY)) .append(Component.text("Message: ", NamedTextColor.GREEN) .hoverEvent(HoverEvent.hoverEvent(HoverEvent.Action.SHOW_TEXT, - Component.text("Click Type: " + getInteractionType().name() + " Cooldown: " + getCooldown()/1000, NamedTextColor.GREEN)))) + Component.text("Click Type: " + getInteractionType().name() + " Cooldown: " + getCooldown()/1000 + " Delay: " + getDelay(), NamedTextColor.GRAY)))) .append(Component.text(message, NamedTextColor.WHITE))); } diff --git a/plugin/src/main/java/lol/pyr/znpcsplus/interaction/playerchat/PlayerChatAction.java b/plugin/src/main/java/lol/pyr/znpcsplus/interaction/playerchat/PlayerChatAction.java index 122f450..ab3ffe0 100644 --- a/plugin/src/main/java/lol/pyr/znpcsplus/interaction/playerchat/PlayerChatAction.java +++ b/plugin/src/main/java/lol/pyr/znpcsplus/interaction/playerchat/PlayerChatAction.java @@ -43,7 +43,7 @@ public class PlayerChatAction extends InteractionActionImpl { .append(Component.text(" | ", NamedTextColor.GRAY)) .append(Component.text("Player Chat: ", NamedTextColor.GREEN) .hoverEvent(HoverEvent.hoverEvent(HoverEvent.Action.SHOW_TEXT, - Component.text("Click Type: " + getInteractionType().name() + " Cooldown: " + getCooldown()/1000, NamedTextColor.GREEN)))) + Component.text("Click Type: " + getInteractionType().name() + " Cooldown: " + getCooldown()/1000 + " Delay: " + getDelay(), NamedTextColor.GRAY)))) .append(Component.text(message, NamedTextColor.WHITE))); } diff --git a/plugin/src/main/java/lol/pyr/znpcsplus/interaction/playercommand/PlayerCommandAction.java b/plugin/src/main/java/lol/pyr/znpcsplus/interaction/playercommand/PlayerCommandAction.java index a67c668..65ab64f 100644 --- a/plugin/src/main/java/lol/pyr/znpcsplus/interaction/playercommand/PlayerCommandAction.java +++ b/plugin/src/main/java/lol/pyr/znpcsplus/interaction/playercommand/PlayerCommandAction.java @@ -44,7 +44,7 @@ public class PlayerCommandAction extends InteractionActionImpl { .append(Component.text(" | ", NamedTextColor.GRAY)) .append(Component.text("Player Command: ", NamedTextColor.GREEN) .hoverEvent(HoverEvent.hoverEvent(HoverEvent.Action.SHOW_TEXT, - Component.text("Click Type: " + getInteractionType().name() + " Cooldown: " + getCooldown()/1000, NamedTextColor.GREEN)))) + Component.text("Click Type: " + getInteractionType().name() + " Cooldown: " + getCooldown()/1000 + " Delay: " + getDelay(), NamedTextColor.GRAY)))) .append(Component.text(command, NamedTextColor.WHITE))); } diff --git a/plugin/src/main/java/lol/pyr/znpcsplus/interaction/switchserver/SwitchServerAction.java b/plugin/src/main/java/lol/pyr/znpcsplus/interaction/switchserver/SwitchServerAction.java index be4edab..de9561e 100644 --- a/plugin/src/main/java/lol/pyr/znpcsplus/interaction/switchserver/SwitchServerAction.java +++ b/plugin/src/main/java/lol/pyr/znpcsplus/interaction/switchserver/SwitchServerAction.java @@ -42,7 +42,7 @@ public class SwitchServerAction extends InteractionActionImpl { .append(Component.text(" | ", NamedTextColor.GRAY)) .append(Component.text("Switch Server: ", NamedTextColor.GREEN) .hoverEvent(HoverEvent.hoverEvent(HoverEvent.Action.SHOW_TEXT, - Component.text("Click Type: " + getInteractionType().name() + " Cooldown: " + getCooldown()/1000, NamedTextColor.GREEN)))) + Component.text("Click Type: " + getInteractionType().name() + " Cooldown: " + getCooldown()/1000 + " Delay: " + getDelay(), NamedTextColor.GRAY)))) .append(Component.text(server, NamedTextColor.WHITE))); }