Skip to content

Commit 47d38f1

Browse files
committed
GH-1282 Send vanish join message only to players with vanish-see permission.
1 parent 0d75d3e commit 47d38f1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

eternalcore-core/src/main/java/com/eternalcode/core/feature/vanish/controller/PlayerJoinController.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ void onJoin(PlayerJoinEvent event) {
3737
this.noticeService.player(player.getUniqueId(), messages -> messages.vanish().joinedInVanish());
3838

3939
this.noticeService.create()
40-
.onlinePlayers(VanishPermissionConstant.VANISH_JOIN_PERMISSION)
40+
.onlinePlayers(VanishPermissionConstant.VANISH_SEE_PERMISSION)
4141
.notice(messages -> messages.vanish().playerJoinedInVanish())
4242
.placeholder("{PLAYER}", player.getName())
4343
.send();

0 commit comments

Comments
 (0)