Skip to content

Commit

Permalink
마인크래프트 1.21 추가, JDK 21로 변경.
Browse files Browse the repository at this point in the history
  • Loading branch information
taromati committed Aug 9, 2024
1 parent 4162abe commit 8531e3d
Show file tree
Hide file tree
Showing 4 changed files with 53 additions and 7 deletions.
10 changes: 6 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,20 +1,22 @@
# Minecraft Chzzk / AfreecaTV 후원 연동 플러그인

## **지원 버전**
Java 버전: 17 이상
Java 버전: 21 이상

마인크래프트 서버 버전: Paper 1.18 ~ 1.20.4
※ Java 17 버전은 [1.7.2 버전](https://github.com/taromati/done-connector/releases/download/1.7.2/done-connector-1.7.2.jar)을 이용해 주세요. 1.7.2 버전은 마인크래프트 1.20.4까지만 지원 됩니다.

마인크래프트 서버 버전: Paper 1.18 ~ 1.21

## **빌드 방법**

1. 터미널에서 `gradlew jar` 실행

## **다운로드 방법**
1. Github(https://github.com/taromati/done-connector) 의 Release 에서 [다운로드](https://github.com/taromati/done-connector/releases/download/1.7.2/done-connector-1.7.2.jar)
1. Github(https://github.com/taromati/done-connector) 의 Release 에서 [다운로드](https://github.com/taromati/done-connector/releases/download/1.7.3/done-connector-1.7.3.jar)

## **실행 방법**

1. plugins 폴더에 done-connector-1.7.2.jar 파일을 넣고 마인크래프트 서버를 1회 실행 후 종료
1. plugins 폴더에 done-connector-1.7.3.jar 파일을 넣고 마인크래프트 서버를 1회 실행 후 종료
2. plugins 폴더에서 done-connector/config.yml 파일 수정
3. 마인크래프트 서버 실행

Expand Down
11 changes: 9 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ plugins {
}

group = 'me.taromati'
version = '1.7.2'
version = '1.7.3'

repositories {
mavenCentral()
Expand Down Expand Up @@ -34,12 +34,19 @@ dependencies {
compileOnly("io.papermc.paper:paper-api:1.20.1-R0.1-SNAPSHOT")
compileOnly("io.papermc.paper:paper-api:1.20.2-R0.1-SNAPSHOT")
compileOnly("io.papermc.paper:paper-api:1.20.4-R0.1-SNAPSHOT")
compileOnly("io.papermc.paper:paper-api:1.20.5-R0.1-SNAPSHOT")
compileOnly("io.papermc.paper:paper-api:1.20.6-R0.1-SNAPSHOT")
compileOnly("io.papermc.paper:paper-api:1.21-R0.1-SNAPSHOT")

compileOnly("org.projectlombok:lombok:1.18.32")
annotationProcessor("org.projectlombok:lombok:1.18.32")

implementation("org.slf4j:slf4j-api:2.0.7")
implementation("com.googlecode.json-simple:json-simple:1.1.1")
}

def sourceJavaVersion = 21
def targetJavaVersion = 17
def targetJavaVersion = 21
java {
def sourceVersion = JavaVersion.toVersion(sourceJavaVersion)
sourceCompatibility = sourceVersion
Expand Down
37 changes: 37 additions & 0 deletions src/main/java/me/taromati/doneconnector/Applicaton.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
//package me.taromati.doneconnector;
//
//import me.taromati.doneconnector.afreecatv.AfreecaTVApi;
//import me.taromati.doneconnector.afreecatv.AfreecaTVLiveInfo;
//import me.taromati.doneconnector.afreecatv.AfreecaTVWebSocket;
//import org.java_websocket.drafts.Draft_6455;
//import org.java_websocket.extensions.IExtension;
//import org.java_websocket.protocols.IProtocol;
//import org.java_websocket.protocols.Protocol;
//
//import java.util.ArrayList;
//import java.util.Collections;
//import java.util.HashMap;
//import java.util.Map;
//import java.util.concurrent.TimeUnit;
//
//public class Applicaton {
// public static void main(String[] args) throws InterruptedException {
// String id = "madaomm";
// Map<String, String> user = new HashMap<>();
// user.put("id", id);
// user.put("nickname", "닉네임");
// user.put("tag", "마크닉네임");
// AfreecaTVLiveInfo liveInfo = AfreecaTVApi.getPlayerLive(id);
//
// Draft_6455 draft6455 = new Draft_6455(
// Collections.emptyList(),
// Collections.singletonList(new Protocol("chat"))
// );
//
// AfreecaTVWebSocket webSocket = new AfreecaTVWebSocket("wss://" + liveInfo.CHDOMAIN().toLowerCase() + ":" + liveInfo.CHPT() + "/Websocket/" + liveInfo.BJID(), draft6455, liveInfo, user, new HashMap<>());
// webSocket.connectBlocking(10, TimeUnit.SECONDS);
// while (true) {
// Thread.sleep(1000);
// }
// }
//}
2 changes: 1 addition & 1 deletion src/main/java/org/json/simple/parser/Yylex.java

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 8531e3d

Please sign in to comment.