Conversation
- MockBukkit v1.20 테스트 의존성 추가 - JUnit Jupiter 5.10.0 추가 - Mockito 5.7.0 추가 - Paper Maven 저장소 추가 (MockBukkit 의존성) - JitPack 저장소 추가 - JUnit Platform 테스트 설정
AttributeModifier 순회 중 제거 시 발생하는 버그 수정 - 복사본 리스트 생성 후 순회하도록 변경 - 순회 완료 후 별도로 제거 수행
- try-with-resources 구문으로 InputStream 자동 닫기 적용 - copyDefaults(true) 추가하여 새 키 자동 병합 - 예외 처리 추가
setItemInMainHand(null) 호출 시 일부 버전에서 발생할 수 있는 호환성 문제 방지를 위해 AIR ItemStack 사용
- hasActiveEffect() 로직 단순화 - startExpirationChecker() 호출 시 기존 태스크 취소 후 시작 - ConcurrentHashMap.remove(key, value) 사용으로 동시성 안전성 향상 - 불필요한 Iterator 패턴 제거
- onPlayerJoin 핸들러 추가: 이전 세션에서 남은 속성 정리 - onPlayerQuit 로직 개선: 효과 활성 여부와 관계없이 항상 속성 제거 - 비정상 종료, 리로드 등 엣지 케이스 대응
- cleanupOnlinePlayers() 메서드 추가 - onDisable에서 온라인 플레이어 넉백 저항 속성 정리 - 리로드 감지 시 기존 플레이어 속성 정리 - 메인 스레드 체크 및 안전한 실행 보장
- EffectExpirationCheckerConsistencyTest: 효과 만료 체커 동시성 테스트 - PlayerQuitEffectCleanupTest: 플레이어 퇴장 시 속성 정리 테스트 - MockBukkit 기반 단위 테스트 구조 구축
test_output.txt 파일 무시 항목 추가
- 버그 리포트 템플릿 추가 - 기능 요청 템플릿 추가 - PR 템플릿 추가
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
개요
플러그인의 안정성을 향상시키고 테스트 환경을 구축하는 PR입니다.
변경 유형
관련 이슈
closes #1
closes #2
closes #3
변경 사항
버그 수정
안정성 개선
테스트 환경
기타
테스트 방법
./gradlew test명령어로 단위 테스트 실행/reload명령어 실행 후 정상 동작 확인체크리스트