-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
MrCraftGoo
committed
Feb 24, 2020
1 parent
249562b
commit 0683361
Showing
4 changed files
with
26 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
package xyz.hstudio.hstudiolibrary.nms; | ||
|
||
import net.minecraft.server.v1_7_R4.ChatComponentText; | ||
import net.minecraft.server.v1_7_R4.PacketPlayOutChat; | ||
import org.bukkit.craftbukkit.v1_7_R4.entity.CraftPlayer; | ||
import org.bukkit.entity.Player; | ||
|
||
public class v1_7_R4 implements IMcAccessor { | ||
|
||
@Override | ||
public void sendActionBar(final Player player, final String msg) { | ||
PacketPlayOutChat packet = new PacketPlayOutChat(new ChatComponentText(msg), (byte) 2); | ||
((CraftPlayer) player).getHandle().playerConnection.sendPacket(packet); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,6 +7,7 @@ | |
|
||
public enum Version { | ||
|
||
v1_7_R4, | ||
v1_8_R3, | ||
v1_9_R2, | ||
v1_10_R1, | ||
|