Config

Example Config

# ItemSpy, still created by SpartaMercenary
# See http://dev.bukkit.org/server-mods/itemspy/ for help.
illegal_ids:
- '7'
alert_delay: 100
debug_level: 0

Settings

PropertyDescription
illegal_idsCustomize what items/blocks are classified as "illegal." This supports both blocks and items (and data values, as of 2.0.0), and defaults to Bedrock.
alert_delayCustomize the amount of time (in server ticks) between each possible alert. Similar alerts triggered by the same person during this delay will be dropped. Inventory scans are not subject to this.
debug_levelThe level of debugging information that ItemSpy outputs while it's running. A level of 0 is normal operation, 1 outputs stack traces during exceptions, and 2+ outputs descriptions of almost everything ItemSpy does. The 2+ debug level isn't set up as of 2.0.1.

Notes

  • Make sure to escape all apostrophes that aren't enclosing a string with two apostrophes instead of one.
  • To make an item with a specific data value illegal, put it into the illegal_ids list in the form 'id:data' (including the single quotes).
  • Using the delay setting is highly recommended. A player constantly picking up illegal items will easily flood your chat.
    • Don't set the delay to 0. I have no idea what might happen if you do, but I personally did this to another plugin and it completely wrecked the BukkitScheduler and about 10 of my plugins until I fixed it.
  • If ItemSpy complains about a YAML error, try pasting the config in its entirety into an online YAML parser. A good one can be found here.

Comments

Posts Quoted:
Reply
Clear All Quotes