Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- private static void setMoneyAndTokens(Player player, double money, int tokens) {
- ByteArrayDataOutput out = ByteStreams.newDataOutput();
- out.writeUTF("Forward");
- out.writeUTF("Velocity");
- out.writeUTF(IDENTIFIER);
- ByteArrayOutputStream msgbytes = new ByteArrayOutputStream();
- DataOutputStream msgout = new DataOutputStream(msgbytes);
- try {
- msgout.writeUTF(money+":"+tokens);
- } catch (IOException e) {
- throw new RuntimeException(e);
- }
- out.write(msgbytes.toByteArray());
- player.sendPluginMessage(HBase.getInstance(), IDENTIFIER, out.toByteArray());
- }
Advertisement
Add Comment
Please, Sign In to add comment