-
Notifications
You must be signed in to change notification settings - Fork 0
FAQ
-
Run
/pt debug YourNameand trigger the action in-game. If you see the packet in console, the plugin is sending it. If you don't see anything, PacketTrigger isn't intercepting that particular packet — the plugin might be using a different delivery method. -
Check
/pt list— make sure the trigger shows a green checkmark (enabled). -
Double-check the
placeholderfield exactly matches the start of the message you saw in debug mode. It's case-sensitive. -
Check that
packet-sourcematches — if the plugin sends a SYSTEM packet and you havepacket-source: PLAYER, it won't match. -
Check your
conditions— if any condition fails, the trigger skips silently. -
Check if the player is on cooldown —
/pt clearcooldowns YourNameto reset.
This usually means you have packet-source: BOTH (or the old setup with both SYSTEM and CHAT registered) and the plugin sends both types. Change to packet-source: SYSTEM which is correct for virtually all plugin messages.
Yes, if you use packet-source: PLAYER without protection. Always add a permission field so only trusted players or systems can trigger it, and set a reasonable cooldown. If you don't actually need player chat triggering, stick with packet-source: SYSTEM which is completely safe.
The placeholder returns empty until the trigger has fired at least once for that player. It doesn't persist between server restarts. If it's blank after the trigger fires, make sure PlaceholderAPI is installed and that the trigger name in the placeholder exactly matches the config key.
PacketTrigger is built against the Paper API and uses Adventure components which aren't available on Spigot. It requires Paper or a Paper fork.
No. The SYSTEM_CHAT packet type was introduced in 1.19. On older versions most plugin messages went through the CHAT packet, but the code is written for 1.19+ Paper.
PacketTrigger relies on ProtocolLib for packet interception, which handles Minecraft version compatibility. As long as ProtocolLib supports the new version, PacketTrigger should keep working. The packet extraction code has 4 fallback methods specifically to handle differences between versions.
Use /pt test <trigger> <player> [data...] from console or via RCON. You can call it programmatically using Bukkit.dispatchCommand(Bukkit.getConsoleSender(), "pt test ...").