9
0
mirror of https://github.com/Auxilor/EcoJobs.git synced 2025-12-28 03:19:11 +00:00
This commit is contained in:
Auxilor
2022-11-21 11:45:05 +00:00
parent c5d7e07d49
commit e212762951
2 changed files with 5 additions and 0 deletions

View File

@@ -28,6 +28,10 @@ class CommandJobs(plugin: EcoPlugin) : PluginCommand(plugin, "jobs", "ecojobs.co
return
}
if (player.hasJob(job)) {
player.sendMessage(plugin.langYml.getMessage("dont-have-job"))
}
job.levelGUI.open(player)
}

View File

@@ -35,6 +35,7 @@ messages:
job-already-joined: "&cYou already have this job!"
leave-current-job: "&cYou must leave your current job before joining a new one!"
cant-leave-job: "&cYou can't leave the %job%&f job!"
dont-have-job: "&cYou don't have this job unlocked!"
menu:
title: "Jobs"