I was on a development roll and now I need to sleep

- Removes commands /aec, /attributelist, /reactionbar, /playtime, /settotalvotes, /status
- Removes unused activity log functionality
- Migrates many more commands to use MiniMessage
- Merges /disguisetoggle with /toggle
- Reimplements explosive arrows in a much better way
This commit is contained in:
Video
2023-03-27 23:23:34 -06:00
parent 34269bde09
commit 6c983f6b97
65 changed files with 495 additions and 1267 deletions

View File

@ -308,8 +308,8 @@ public class ItemFun extends FreedomService
}
//Redundant Player cast is required to avoid suspicious method calls.
if (arrow != null
&& (arrow.getShooter() instanceof Player)
&& explosivePlayers.contains(arrow.getShooter()))
&& (arrow.getShooter() instanceof Player player)
&& plugin.pl.getPlayer(player).isExplosiveArrowsEnabled())
{
Objects.requireNonNull(arrow.getLocation().getWorld()).createExplosion(arrow.getLocation().getX(), arrow.getLocation().getY(), arrow.getLocation().getZ(), ConfigEntry.EXPLOSIVE_RADIUS.getDouble().floatValue(), false, ConfigEntry.ALLOW_EXPLOSIONS.getBoolean());
arrow.remove();