Skip to content

Commit 4e459e1

Browse files
committed
Fix some
1 parent 1a9aa9b commit 4e459e1

File tree

4 files changed

+4
-6
lines changed

4 files changed

+4
-6
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# CHPlus
22

3-
ProtocolLib 버전만 맞으면 1.8 이상 모든버전 호환 가능
3+
[ProtocolLib](https://www.spigotmc.org/resources/protocollib.1997/) 버전만 맞으면 1.8 이상 모든버전 호환 가능
44

55
## 함수
66

build.gradle

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,5 @@ dependencies {
2222
compile('com.sk89q:commandhelper:3.3.2-SNAPSHOT') {
2323
exclude module: 'spigot-api'
2424
}
25-
// compile group: 'com.comphenix.protocol', name: 'ProtocolLib-API', version: '4.3.0-SNAPSHOT'
26-
compile files('C:\\Users\\Junhyeong Lim\\Documents\\MCServer\\1.12\\plugins\\ProtocolLib.jar')
27-
testCompile group: 'junit', name: 'junit', version: '4.11'
25+
compile group: 'com.comphenix.protocol', name: 'ProtocolLib-API', version: '4.3.1-SNAPSHOT'
2826
}

src/main/java/kr/rvs/chplus/CHPlus.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
@MSExtension("CHPlus")
1313
public class CHPlus extends AbstractExtension {
1414
public static final Version BUKKIT_VERSION = new SimpleVersion(Bukkit.getVersion());
15-
public static final Version V1_11_2 = new SimpleVersion(1, 11, 2);
15+
public static final Version V1_12 = new SimpleVersion(1, 12, 0);
1616
public static final byte CHAT_TYPE_SYSTEM = 2;
1717
public static final byte CHAT_TYPE_GAME_INFO = 2;
1818

src/main/java/kr/rvs/chplus/util/Packets.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ public static PacketContainer createChatPacket(WrappedChatComponent component, b
3131
.createPacket(PacketType.Play.Server.CHAT);
3232

3333
// Chat type
34-
if (CHPlus.BUKKIT_VERSION.gt(CHPlus.V1_11_2)) {
34+
if (CHPlus.BUKKIT_VERSION.gte(CHPlus.V1_12)) {
3535
Class chatTypeClass = EnumWrappers.getChatTypeClass();
3636
StructureModifier components = packet.getSpecificModifier(chatTypeClass);
3737

0 commit comments

Comments
 (0)