mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2024-11-29 08:36:45 +01:00
Removed unused variables & imports.
This commit is contained in:
parent
30fb2770a6
commit
f9e7ae22f2
@ -1,22 +1,14 @@
|
|||||||
package com.gmail.nossr50.commands.mc;
|
package com.gmail.nossr50.commands.mc;
|
||||||
|
|
||||||
import org.bukkit.ChatColor;
|
import org.bukkit.ChatColor;
|
||||||
import org.bukkit.Material;
|
|
||||||
import org.bukkit.command.Command;
|
import org.bukkit.command.Command;
|
||||||
import org.bukkit.command.CommandExecutor;
|
import org.bukkit.command.CommandExecutor;
|
||||||
import org.bukkit.command.CommandSender;
|
import org.bukkit.command.CommandSender;
|
||||||
import org.bukkit.entity.Player;
|
import org.bukkit.entity.Player;
|
||||||
import org.bukkit.inventory.ItemStack;
|
|
||||||
import org.getspout.spoutapi.player.SpoutPlayer;
|
import org.getspout.spoutapi.player.SpoutPlayer;
|
||||||
|
|
||||||
import com.gmail.nossr50.config.LoadProperties;
|
import com.gmail.nossr50.config.LoadProperties;
|
||||||
import com.gmail.nossr50.locale.mcLocale;
|
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 {
|
public class McmmoCommand implements CommandExecutor {
|
||||||
|
|
||||||
@ -45,7 +37,7 @@ public class McmmoCommand implements CommandExecutor {
|
|||||||
if (LoadProperties.spoutEnabled && player instanceof SpoutPlayer) {
|
if (LoadProperties.spoutEnabled && player instanceof SpoutPlayer) {
|
||||||
SpoutPlayer sPlayer = (SpoutPlayer) player;
|
SpoutPlayer sPlayer = (SpoutPlayer) player;
|
||||||
if (LoadProperties.donateMessage)
|
if (LoadProperties.donateMessage)
|
||||||
player.sendMessage(ChatColor.GREEN + "[mcMMO] Donate! Paypal theno1yeti@gmail.com");
|
sPlayer.sendMessage(ChatColor.GREEN + "[mcMMO] Donate! Paypal theno1yeti@gmail.com");
|
||||||
} else {
|
} else {
|
||||||
if (LoadProperties.donateMessage)
|
if (LoadProperties.donateMessage)
|
||||||
player.sendMessage(ChatColor.GREEN + "If you like my work you can donate via Paypal: theno1yeti@gmail.com");
|
player.sendMessage(ChatColor.GREEN + "If you like my work you can donate via Paypal: theno1yeti@gmail.com");
|
||||||
|
@ -16,9 +16,6 @@
|
|||||||
*/
|
*/
|
||||||
package com.gmail.nossr50;
|
package com.gmail.nossr50;
|
||||||
|
|
||||||
import java.util.logging.Logger;
|
|
||||||
|
|
||||||
import org.bukkit.Server;
|
|
||||||
import org.bukkit.entity.Player;
|
import org.bukkit.entity.Player;
|
||||||
|
|
||||||
public class mcPermissions
|
public class mcPermissions
|
||||||
|
@ -32,7 +32,6 @@ import org.bukkit.Bukkit;
|
|||||||
import org.bukkit.entity.Player;
|
import org.bukkit.entity.Player;
|
||||||
import com.gmail.nossr50.Users;
|
import com.gmail.nossr50.Users;
|
||||||
import com.gmail.nossr50.mcMMO;
|
import com.gmail.nossr50.mcMMO;
|
||||||
import com.gmail.nossr50.config.LoadProperties;
|
|
||||||
import com.gmail.nossr50.datatypes.PlayerProfile;
|
import com.gmail.nossr50.datatypes.PlayerProfile;
|
||||||
import com.gmail.nossr50.locale.mcLocale;
|
import com.gmail.nossr50.locale.mcLocale;
|
||||||
import com.gmail.nossr50.spout.util.ArrayListString;
|
import com.gmail.nossr50.spout.util.ArrayListString;
|
||||||
@ -118,7 +117,6 @@ public class Party
|
|||||||
|
|
||||||
public void informPartyMembers(Player player, Player[] players)
|
public void informPartyMembers(Player player, Player[] players)
|
||||||
{
|
{
|
||||||
int x = 0;
|
|
||||||
for(Player p : players)
|
for(Player p : players)
|
||||||
{
|
{
|
||||||
if(player != null && p != null)
|
if(player != null && p != null)
|
||||||
@ -126,7 +124,6 @@ public class Party
|
|||||||
if(inSameParty(player, p) && !p.getName().equals(player.getName()))
|
if(inSameParty(player, p) && !p.getName().equals(player.getName()))
|
||||||
{
|
{
|
||||||
p.sendMessage(mcLocale.getString("Party.InformedOnJoin", new Object[] {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) {
|
public void informPartyMembersOwnerChange(Player newOwner, Player[] players) {
|
||||||
int x = 0;
|
|
||||||
for(Player p : players){
|
for(Player p : players){
|
||||||
if(newOwner != null && p != null){
|
if(newOwner != null && p != null){
|
||||||
if(inSameParty(newOwner, p))
|
if(inSameParty(newOwner, p))
|
||||||
{
|
{
|
||||||
//TODO: Needs more locale.
|
//TODO: Needs more locale.
|
||||||
p.sendMessage(newOwner.getName()+" is the new party owner.");
|
p.sendMessage(newOwner.getName()+" is the new party owner.");
|
||||||
x++;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -191,13 +186,11 @@ public class Party
|
|||||||
|
|
||||||
public void informPartyMembersQuit(Player player, Player[] players)
|
public void informPartyMembersQuit(Player player, Player[] players)
|
||||||
{
|
{
|
||||||
int x = 0;
|
|
||||||
for(Player p : players){
|
for(Player p : players){
|
||||||
if(player != null && p != null){
|
if(player != null && p != null){
|
||||||
if(inSameParty(player, p) && !p.getName().equals(player.getName()))
|
if(inSameParty(player, p) && !p.getName().equals(player.getName()))
|
||||||
{
|
{
|
||||||
p.sendMessage(mcLocale.getString("Party.InformedOnQuit", new Object[] {player.getName()}));
|
p.sendMessage(mcLocale.getString("Party.InformedOnQuit", new Object[] {player.getName()}));
|
||||||
x++;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -19,7 +19,6 @@ package com.gmail.nossr50.skills;
|
|||||||
import org.bukkit.Bukkit;
|
import org.bukkit.Bukkit;
|
||||||
import org.bukkit.Location;
|
import org.bukkit.Location;
|
||||||
import org.bukkit.Material;
|
import org.bukkit.Material;
|
||||||
import org.bukkit.Statistic;
|
|
||||||
import org.bukkit.block.Block;
|
import org.bukkit.block.Block;
|
||||||
import org.bukkit.entity.Player;
|
import org.bukkit.entity.Player;
|
||||||
import org.bukkit.inventory.ItemStack;
|
import org.bukkit.inventory.ItemStack;
|
||||||
|
@ -18,7 +18,6 @@ package com.gmail.nossr50.skills;
|
|||||||
|
|
||||||
import org.bukkit.Location;
|
import org.bukkit.Location;
|
||||||
import org.bukkit.entity.Player;
|
import org.bukkit.entity.Player;
|
||||||
import org.bukkit.block.Block;
|
|
||||||
import org.bukkit.event.entity.EntityDamageByEntityEvent;
|
import org.bukkit.event.entity.EntityDamageByEntityEvent;
|
||||||
import org.bukkit.inventory.ItemStack;
|
import org.bukkit.inventory.ItemStack;
|
||||||
import com.gmail.nossr50.Users;
|
import com.gmail.nossr50.Users;
|
||||||
|
@ -23,7 +23,6 @@ import org.bukkit.Material;
|
|||||||
import org.bukkit.block.Block;
|
import org.bukkit.block.Block;
|
||||||
import org.bukkit.entity.Player;
|
import org.bukkit.entity.Player;
|
||||||
import org.bukkit.inventory.ItemStack;
|
import org.bukkit.inventory.ItemStack;
|
||||||
import org.bukkit.Statistic;
|
|
||||||
import org.bukkit.enchantments.Enchantment;
|
import org.bukkit.enchantments.Enchantment;
|
||||||
import org.bukkit.event.player.PlayerAnimationEvent;
|
import org.bukkit.event.player.PlayerAnimationEvent;
|
||||||
import org.bukkit.Bukkit;
|
import org.bukkit.Bukkit;
|
||||||
|
Loading…
Reference in New Issue
Block a user