PacketDebugCommand

public class PacketDebugCommand extends AdvancedCommand

One-shot diagnostic that samples the modeled-entity packet load for the next N model-clock ticks and prints what every viewer is actually being sent.

Usage:

  • /fmm packetdebug — sample the next single tick
  • /fmm packetdebug 20 — sample the next 20 ticks (~1s) and average

Run it while standing in the laggy area (e.g. the NPC hub). It reports logical packets/tick, packets delivered/tick (counting per-viewer fan-out), the worst single player/tick, a packet-type breakdown, and the heaviest viewers. Packet counts are exact; byte figures are rough estimates. See PacketDiagnostics for the why.

Constructors

Link copied to clipboard
public void PacketDebugCommand()

Inherited properties

Link copied to clipboard
public final List<String> aliases
Link copied to clipboard
public final List<ICommandArgument> argumentsList
Link copied to clipboard
public final Map<String, Integer> argumentsMap
Link copied to clipboard
public String description
Link copied to clipboard
public String permission
Link copied to clipboard
Link copied to clipboard
public String usage

Functions

Link copied to clipboard
public void execute(CommandData commandData)

Inherited functions

Link copied to clipboard
protected void addArgument(String key, ICommandArgument arg)
Link copied to clipboard
protected void addLiteral(String key)
Link copied to clipboard
protected void addOptionalArgument(String key, ICommandArgument arg)
Link copied to clipboard
protected void addOptionalVarargsArgument(String key, ICommandArgument arg)
Link copied to clipboard
protected void addPlayerArgument(String key)
Link copied to clipboard
protected void addVarargsArgument(String key, ICommandArgument arg)
Link copied to clipboard
public boolean aliasMatches(String potentialAlias)
Link copied to clipboard
public boolean aliasStartMatches(String potentialAliasStart)
Link copied to clipboard
public List<String> getAliases()
Link copied to clipboard
Link copied to clipboard
public Map<String, Integer> getArgumentsMap()
Link copied to clipboard
public String getDescription()
Link copied to clipboard
public Double getDoubleArgument(String key, CommandSender commandSender, Array<String> args)
Link copied to clipboard
public Integer getIntegerArgument(String key, CommandSender commandSender, Array<String> args)
Link copied to clipboard
public String getPermission()
Link copied to clipboard
public String getPermissionMessage()
Link copied to clipboard
Link copied to clipboard
public String getStringArgument(String key, CommandSender commandSender, Array<String> args)
Link copied to clipboard
public String getStringSequenceArgument(String key, CommandSender commandSender, Array<String> args)
Link copied to clipboard
public String getUsage()
Link copied to clipboard
public boolean isEnabled()
Link copied to clipboard
public List<String> onTabComplete(Array<String> args)
Link copied to clipboard
protected void setDescription(String description)
Link copied to clipboard
protected void setPermission(String permission)
Link copied to clipboard
protected void setSenderType(SenderType senderType)
Link copied to clipboard
protected void setUsage(String usage)
Link copied to clipboard
public static Command toBukkitCommand(JavaPlugin plugin, AdvancedCommand delegate, String name, List<String> aliases)