Add a space and hover text to end of game message

This commit is contained in:
Spencer 2017-11-23 16:31:23 -05:00 committed by Alexander Meech
parent d70f7a8ec0
commit 37657058ae

View File

@ -5,6 +5,8 @@ import java.util.List;
import java.util.Map;
import java.util.function.Function;
import mineplex.core.common.jsonchat.HoverEvent;
import mineplex.core.common.jsonchat.JsonMessage;
import org.bukkit.Sound;
import org.bukkit.entity.Player;
import org.bukkit.event.EventHandler;
@ -134,7 +136,10 @@ public class GameSummaryModule extends Module
_components.forEach(component -> component.sendMessage(player));
player.sendMessage(C.mBody + "Hover over for details.");
player.sendMessage("");
new JsonMessage(C.cGreen + "Hover over for details.")
.hover(HoverEvent.SHOW_TEXT, "Don't hover over me, silly!")
.sendToPlayer(player);
player.sendMessage(ArcadeFormat.Line);
player.playSound(player.getLocation(), Sound.LEVEL_UP, 2, 1);