diff --git a/src/main/java/factionsystem/Commands/TransferCommand.java b/src/main/java/factionsystem/Commands/TransferCommand.java index 9eccf4cd6..cdc311d68 100644 --- a/src/main/java/factionsystem/Commands/TransferCommand.java +++ b/src/main/java/factionsystem/Commands/TransferCommand.java @@ -30,6 +30,11 @@ public boolean transferOwnership(CommandSender sender, String[] args) { UUID playerUUID = findUUIDBasedOnPlayerName(args[1]); if (faction.isMember(playerUUID)) { + if (playerUUID.equals(player.getUniqueId())) { + player.sendMessage(ChatColor.RED + "You can't transfer ownership of your faction to yourself!"); + return false; + } + if (faction.isOfficer(playerUUID)) { faction.removeOfficer(playerUUID); }