Ledger Nano X - The secure hardware wallet
SHARE
TWEET

Untitled

a guest Apr 6th, 2020 261 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. import org.bukkit.craftbukkit.v1_8_R3.entity.CraftPlayer;
  2. import org.bukkit.entity.Player;
  3.  
  4. import net.minecraft.server.v1_8_R3.IChatBaseComponent;
  5. import net.minecraft.server.v1_8_R3.Packet;
  6. import net.minecraft.server.v1_8_R3.PacketPlayOutChat;
  7.  
  8. public class Actionbar {
  9.    
  10.       public static void sendPacket(Packet packet, Player p){
  11.           ((CraftPlayer) p).getHandle().playerConnection.sendPacket(packet);
  12.   }
  13.      
  14.         public static void sendActionMessage(Player player, String message) {
  15.  
  16.             IChatBaseComponent icbc;
  17.             PacketPlayOutChat packet;
  18.  
  19.             icbc = IChatBaseComponent.ChatSerializer.a("{\"text\": \"" + message + "\"}");
  20.             packet = new PacketPlayOutChat(icbc, (byte)2);
  21.  
  22.             sendPacket(packet, player);
  23.         }
  24.  
  25.     }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top