-
Bug
-
Resolution: Fixed
-
Minor
-
None
-
None
-
Windows 10 Pro 1909 64-bit
Java 13.0.1.0
-
This server is running CraftBukkit version git-Spigot-ae72bf4-183139d (MC: 1.15.2) (Implementing API version 1.15.2-R0.1-SNAPSHOT)
-
Yes
public class SwingCommand implements CommandExecutor { @Override public boolean onCommand(CommandSender sender, Command command, String label, String[] args) { if(sender instanceof Player) { Player p = (Player) sender; p.swingMainHand(); //Only visible for other players } return true; }}
Only other players see the arm animation and the player, that actually swings the arm doesn't. It makes those methods basically useless.
Install the attached TestPlugin and type /swing to reproduce. (You need multiple accounts!)