diff --git a/src/main/java/com/gmail/nossr50/commands/mc/McmmoCommand.java b/src/main/java/com/gmail/nossr50/commands/mc/McmmoCommand.java index feaa61479..308ece808 100644 --- a/src/main/java/com/gmail/nossr50/commands/mc/McmmoCommand.java +++ b/src/main/java/com/gmail/nossr50/commands/mc/McmmoCommand.java @@ -1,22 +1,14 @@ package com.gmail.nossr50.commands.mc; import org.bukkit.ChatColor; -import org.bukkit.Material; import org.bukkit.command.Command; import org.bukkit.command.CommandExecutor; import org.bukkit.command.CommandSender; import org.bukkit.entity.Player; -import org.bukkit.inventory.ItemStack; import org.getspout.spoutapi.player.SpoutPlayer; import com.gmail.nossr50.config.LoadProperties; import com.gmail.nossr50.locale.mcLocale; -import com.gmail.nossr50.mcMMO; - -import java.util.ArrayList; -import java.util.Calendar; -import java.util.Date; -import java.util.GregorianCalendar; public class McmmoCommand implements CommandExecutor { @@ -45,7 +37,7 @@ public class McmmoCommand implements CommandExecutor { if (LoadProperties.spoutEnabled && player instanceof SpoutPlayer) { SpoutPlayer sPlayer = (SpoutPlayer) player; if (LoadProperties.donateMessage) - player.sendMessage(ChatColor.GREEN + "[mcMMO] Donate! Paypal theno1yeti@gmail.com"); + sPlayer.sendMessage(ChatColor.GREEN + "[mcMMO] Donate! Paypal theno1yeti@gmail.com"); } else { if (LoadProperties.donateMessage) player.sendMessage(ChatColor.GREEN + "If you like my work you can donate via Paypal: theno1yeti@gmail.com"); diff --git a/src/main/java/com/gmail/nossr50/mcPermissions.java b/src/main/java/com/gmail/nossr50/mcPermissions.java index b438f1f50..12ed27d7e 100644 --- a/src/main/java/com/gmail/nossr50/mcPermissions.java +++ b/src/main/java/com/gmail/nossr50/mcPermissions.java @@ -16,9 +16,6 @@ */ package com.gmail.nossr50; -import java.util.logging.Logger; - -import org.bukkit.Server; import org.bukkit.entity.Player; public class mcPermissions diff --git a/src/main/java/com/gmail/nossr50/party/Party.java b/src/main/java/com/gmail/nossr50/party/Party.java index 2d48a4098..b81edab69 100644 --- a/src/main/java/com/gmail/nossr50/party/Party.java +++ b/src/main/java/com/gmail/nossr50/party/Party.java @@ -32,7 +32,6 @@ import org.bukkit.Bukkit; import org.bukkit.entity.Player; import com.gmail.nossr50.Users; import com.gmail.nossr50.mcMMO; -import com.gmail.nossr50.config.LoadProperties; import com.gmail.nossr50.datatypes.PlayerProfile; import com.gmail.nossr50.locale.mcLocale; import com.gmail.nossr50.spout.util.ArrayListString; @@ -118,7 +117,6 @@ public class Party public void informPartyMembers(Player player, Player[] players) { - int x = 0; for(Player p : players) { if(player != null && p != null) @@ -126,7 +124,6 @@ public class Party if(inSameParty(player, p) && !p.getName().equals(player.getName())) { p.sendMessage(mcLocale.getString("Party.InformedOnJoin", new Object[] {player.getName()})); - x++; } } } @@ -171,14 +168,12 @@ public class Party } public void informPartyMembersOwnerChange(Player newOwner, Player[] players) { - int x = 0; for(Player p : players){ if(newOwner != null && p != null){ if(inSameParty(newOwner, p)) { //TODO: Needs more locale. p.sendMessage(newOwner.getName()+" is the new party owner."); - x++; } } } @@ -191,13 +186,11 @@ public class Party public void informPartyMembersQuit(Player player, Player[] players) { - int x = 0; for(Player p : players){ if(player != null && p != null){ if(inSameParty(player, p) && !p.getName().equals(player.getName())) { p.sendMessage(mcLocale.getString("Party.InformedOnQuit", new Object[] {player.getName()})); - x++; } } } diff --git a/src/main/java/com/gmail/nossr50/skills/Mining.java b/src/main/java/com/gmail/nossr50/skills/Mining.java index fe6d85390..1665141c2 100644 --- a/src/main/java/com/gmail/nossr50/skills/Mining.java +++ b/src/main/java/com/gmail/nossr50/skills/Mining.java @@ -19,7 +19,6 @@ package com.gmail.nossr50.skills; import org.bukkit.Bukkit; import org.bukkit.Location; import org.bukkit.Material; -import org.bukkit.Statistic; import org.bukkit.block.Block; import org.bukkit.entity.Player; import org.bukkit.inventory.ItemStack; diff --git a/src/main/java/com/gmail/nossr50/skills/Unarmed.java b/src/main/java/com/gmail/nossr50/skills/Unarmed.java index 61da12dc9..817ce32be 100644 --- a/src/main/java/com/gmail/nossr50/skills/Unarmed.java +++ b/src/main/java/com/gmail/nossr50/skills/Unarmed.java @@ -18,7 +18,6 @@ package com.gmail.nossr50.skills; import org.bukkit.Location; import org.bukkit.entity.Player; -import org.bukkit.block.Block; import org.bukkit.event.entity.EntityDamageByEntityEvent; import org.bukkit.inventory.ItemStack; import com.gmail.nossr50.Users; diff --git a/src/main/java/com/gmail/nossr50/skills/WoodCutting.java b/src/main/java/com/gmail/nossr50/skills/WoodCutting.java index e5e3bc4ad..c86bc1fa6 100644 --- a/src/main/java/com/gmail/nossr50/skills/WoodCutting.java +++ b/src/main/java/com/gmail/nossr50/skills/WoodCutting.java @@ -23,7 +23,6 @@ import org.bukkit.Material; import org.bukkit.block.Block; import org.bukkit.entity.Player; import org.bukkit.inventory.ItemStack; -import org.bukkit.Statistic; import org.bukkit.enchantments.Enchantment; import org.bukkit.event.player.PlayerAnimationEvent; import org.bukkit.Bukkit;