From 56134e2f32569334de2516eedf2ab543f7c80efb Mon Sep 17 00:00:00 2001 From: speed <43330808+speedxx@users.noreply.github.com> Date: Tue, 29 Dec 2020 14:26:16 -0500 Subject: [PATCH] lol --- .idea/TFGuilds.iml | 1 - .../java/me/totalfreedom/tfguilds/command/AddModSubcommand.java | 2 +- .../me/totalfreedom/tfguilds/command/SetWarpSubcommand.java | 1 - 3 files changed, 1 insertion(+), 3 deletions(-) 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;