diff --git a/build.gradle b/build.gradle index cfeb6a2c..486420f9 100644 --- a/build.gradle +++ b/build.gradle @@ -7,7 +7,7 @@ plugins { } group = "com.dansplugins" -version = "5.1.2" +version = "5.1.3" def repoUsername = "" def repoPassword = "" diff --git a/src/main/kotlin/com/dansplugins/factionsystem/command/faction/role/MfFactionRoleSetCommand.kt b/src/main/kotlin/com/dansplugins/factionsystem/command/faction/role/MfFactionRoleSetCommand.kt index f53dcfe5..6c932730 100644 --- a/src/main/kotlin/com/dansplugins/factionsystem/command/faction/role/MfFactionRoleSetCommand.kt +++ b/src/main/kotlin/com/dansplugins/factionsystem/command/faction/role/MfFactionRoleSetCommand.kt @@ -48,7 +48,7 @@ class MfFactionRoleSetCommand(private val plugin: MedievalFactions) : CommandExe plugin.logger.log(SEVERE, "Failed to save target player: ${it.reason.message}", it.reason.cause) return@Runnable } - if (mfPlayer.id.value == targetMfPlayer.id.value) { + if (mfPlayer.id.value == targetMfPlayer.id.value && !mfPlayer.isBypassEnabled) { sender.sendMessage("$RED${plugin.language["CommandFactionRoleSetCannotSetOwnRole"]}") return@Runnable }