Skip to content

Commit 00ee191

Browse files
authored
GH-1282 Send vanish join message only to players with vanish-see permission. (#1285)
1 parent eb555e2 commit 00ee191

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

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)