Skip to content

Commit 7264b28

Browse files
committed
CooldownHandler.kt updated.
Signed-off-by: Pavel Erokhin (MairwunNx) <[email protected]>
1 parent 2890b36 commit 7264b28

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/kotlin/com/mairwunnx/projectessentials/cooldown/CooldownHandler.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ internal object CooldownHandler {
99
internal fun handle(event: CommandEvent) {
1010
val commandName = event.commandName
1111
val commandSender = event.player
12-
val commandSenderNickName = commandSender.name.string
12+
val commandSenderNickName = commandSender!!.name.string
1313
try {
1414
if (
1515
!CooldownConfig.config.ignoredPlayers.contains(commandSenderNickName) &&

0 commit comments

Comments
 (0)