package de.steamwar.fightsystem.listener; import net.md_5.bungee.api.ChatMessageType; import net.md_5.bungee.api.chat.BaseComponent; import org.bukkit.attribute.Attribute; import org.bukkit.attribute.AttributeInstance; import org.bukkit.entity.Player; class BasicListener_9 { private BasicListener_9(){} static void toActionbar(Player player, BaseComponent... components){ player.spigot().sendMessage(ChatMessageType.ACTION_BAR, components); } static void toChat(Player player, BaseComponent... components){ player.spigot().sendMessage(ChatMessageType.CHAT, components); } static void setAttackSpeed(Player player){ AttributeInstance attribute = player.getAttribute(Attribute.GENERIC_ATTACK_SPEED); attribute.setBaseValue(16); } }