mirror of
https://github.com/TotalFreedomMC/TF-EssentialsX.git
synced 2025-08-08 21:43:10 +00:00
Cleanup various aspects of code, fix some formatting, more netbeans 7.4 stuff
This commit is contained in:
parent
d5196e31b2
commit
3e725ef060
65 changed files with 432 additions and 443 deletions
|
@ -17,19 +17,6 @@ public class Commandremove extends EssentialsCommand
|
|||
super("remove");
|
||||
}
|
||||
|
||||
|
||||
private enum ToRemove
|
||||
{
|
||||
DROPS,
|
||||
ARROWS,
|
||||
BOATS,
|
||||
MINECARTS,
|
||||
XP,
|
||||
PAINTINGS,
|
||||
ITEMFRAMES,
|
||||
ENDERCRYSTALS
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void run(final Server server, final User user, final String commandLabel, final String[] args) throws Exception
|
||||
{
|
||||
|
@ -105,7 +92,7 @@ public class Commandremove extends EssentialsCommand
|
|||
removeEntities(sender, world, toRemove, 0);
|
||||
}
|
||||
|
||||
protected void removeEntities(final CommandSource sender, final World world, final ToRemove toRemove, int radius) throws Exception
|
||||
private void removeEntities(final CommandSource sender, final World world, final ToRemove toRemove, int radius) throws Exception
|
||||
{
|
||||
int removed = 0;
|
||||
if (radius > 0)
|
||||
|
@ -191,4 +178,17 @@ public class Commandremove extends EssentialsCommand
|
|||
}
|
||||
sender.sendMessage(_("removed", removed));
|
||||
}
|
||||
|
||||
|
||||
private enum ToRemove
|
||||
{
|
||||
DROPS,
|
||||
ARROWS,
|
||||
BOATS,
|
||||
MINECARTS,
|
||||
XP,
|
||||
PAINTINGS,
|
||||
ITEMFRAMES,
|
||||
ENDERCRYSTALS
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue