mirror of
https://github.com/Auxilor/EcoJobs.git
synced 2025-12-22 08:29:24 +00:00
Fixed /ecojobs reset
This commit is contained in:
@@ -41,7 +41,7 @@ class CommandReset(plugin: EcoPlugin) : Subcommand(plugin, "reset", "ecojobs.com
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (!player.hasJob(job)) {
|
if (!player.hasJob(job)) {
|
||||||
sender.sendMessage(plugin.langYml.getMessage("doesnt-job-job"))
|
sender.sendMessage(plugin.langYml.getMessage("doesnt-have-job"))
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -49,7 +49,7 @@ class CommandReset(plugin: EcoPlugin) : Subcommand(plugin, "reset", "ecojobs.com
|
|||||||
player.activeJob = null
|
player.activeJob = null
|
||||||
}
|
}
|
||||||
player.setJobXP(job, 0.0)
|
player.setJobXP(job, 0.0)
|
||||||
player.setJobLevel(job, 0)
|
player.setJobLevel(job, 1)
|
||||||
|
|
||||||
sender.sendMessage(
|
sender.sendMessage(
|
||||||
plugin.langYml.getMessage("reset-xp", StringUtils.FormatOption.WITHOUT_PLACEHOLDERS)
|
plugin.langYml.getMessage("reset-xp", StringUtils.FormatOption.WITHOUT_PLACEHOLDERS)
|
||||||
|
|||||||
Reference in New Issue
Block a user