From 8dbe453bc57bc102cdb7d1126d525ac25494ffae Mon Sep 17 00:00:00 2001 From: Auxilor Date: Mon, 21 Nov 2022 12:57:23 +0000 Subject: [PATCH] Fix --- .../src/main/kotlin/com/willfp/ecojobs/commands/CommandJobs.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/eco-core/core-plugin/src/main/kotlin/com/willfp/ecojobs/commands/CommandJobs.kt b/eco-core/core-plugin/src/main/kotlin/com/willfp/ecojobs/commands/CommandJobs.kt index 64c5768..8d1ffcf 100644 --- a/eco-core/core-plugin/src/main/kotlin/com/willfp/ecojobs/commands/CommandJobs.kt +++ b/eco-core/core-plugin/src/main/kotlin/com/willfp/ecojobs/commands/CommandJobs.kt @@ -28,7 +28,7 @@ class CommandJobs(plugin: EcoPlugin) : PluginCommand(plugin, "jobs", "ecojobs.co return } - if (player.hasJob(job)) { + if (!player.hasJob(job)) { player.sendMessage(plugin.langYml.getMessage("dont-have-job")) return }