diff --git a/.idea/TFGuilds.iml b/.idea/TFGuilds.iml index a5f2b44..fa88e47 100644 --- a/.idea/TFGuilds.iml +++ b/.idea/TFGuilds.iml @@ -26,7 +26,6 @@ - diff --git a/src/main/java/me/totalfreedom/tfguilds/command/AddModSubcommand.java b/src/main/java/me/totalfreedom/tfguilds/command/AddModSubcommand.java index f1cda04..81c37d0 100644 --- a/src/main/java/me/totalfreedom/tfguilds/command/AddModSubcommand.java +++ b/src/main/java/me/totalfreedom/tfguilds/command/AddModSubcommand.java @@ -50,7 +50,7 @@ public class AddModSubcommand extends Common implements CommandExecutor return true; } - if (guild.getOwner().equals(player.getName())) + if (guild.getOwner().equals(player.getUniqueId())) { sender.sendMessage(ChatColor.RED + "No need to make the owner a moderator!"); return true; diff --git a/src/main/java/me/totalfreedom/tfguilds/command/SetWarpSubcommand.java b/src/main/java/me/totalfreedom/tfguilds/command/SetWarpSubcommand.java index 247fa66..5e309f9 100644 --- a/src/main/java/me/totalfreedom/tfguilds/command/SetWarpSubcommand.java +++ b/src/main/java/me/totalfreedom/tfguilds/command/SetWarpSubcommand.java @@ -2,7 +2,6 @@ package me.totalfreedom.tfguilds.command; import me.totalfreedom.tfguilds.Common; import me.totalfreedom.tfguilds.guild.Guild; -import me.totalfreedom.tfguilds.guild.GuildWarp; import org.apache.commons.lang.StringUtils; import org.bukkit.ChatColor; import org.bukkit.command.Command;