mirror of
https://github.com/TotalFreedomMC/TF-EssentialsX.git
synced 2025-08-08 05:23:12 +00:00
Add missing param in /remove
This commit is contained in:
parent
1f3e52a4b9
commit
f6f71126a1
5 changed files with 21 additions and 5 deletions
|
@ -26,7 +26,8 @@ public class Commandremove extends EssentialsCommand
|
|||
MINECARTS,
|
||||
XP,
|
||||
PAINTINGS,
|
||||
ITEMFRAMES
|
||||
ITEMFRAMES,
|
||||
ENDERCRYSTALS
|
||||
}
|
||||
|
||||
@Override
|
||||
|
@ -178,6 +179,14 @@ public class Commandremove extends EssentialsCommand
|
|||
removed++;
|
||||
}
|
||||
}
|
||||
else if (toRemove == ToRemove.ENDERCRYSTALS)
|
||||
{
|
||||
if (e instanceof EnderCrystal)
|
||||
{
|
||||
e.remove();
|
||||
removed++;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
sender.sendMessage(_("removed", removed));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue