blixadocs
/
    PaperWipe / Configuration

    config.yml

    The main configuration file. Controls the command alias, confirmation settings, exemption, the seven built-in wipe categories, custom wipe types, and logging.

    # ─────────────────────────────────────────────────────────────────────────────
    
    # PaperWipe - config.yml
    
    # Free, license-free. Core settings, alias, per-category wipe commands, custom
    # wipe types, exemption list, and logging.
    
    # ─────────────────────────────────────────────────────────────────────────────
    
    GENERAL:
      LANGUAGE: "en"
      DEBUG: false
      # The short alias for the main command. Default /pw.
      ALIAS: "pw"
    
    # ─── Commands ────────────────────────────────────────────────────────────────
    COMMANDS:
      # Master switch for /serverwipe. DEFAULT: false.
      #
      # /serverwipe wipes EVERY player the server has ever seen - online and offline
      # alike - in a single action. It cannot be undone, there is no backup, and
      # there is no partial rollback. The only protection is the exempt list.
      #
      # While false, the command is NOT REGISTERED AT ALL: it does not appear in tab
      # completion, /help, or the command tree, and running it gives the same
      # "unknown command" response as any command that does not exist. Nobody can
      # discover it, and no permission node - not even operator - makes it usable.
      # This is deliberate: an admin must consciously opt in to having a
      # server-ending command exist on their server at all.
      #
      # Set to true ONLY if you actually intend to use it (season resets, map
      # rotations). Turning it back to false afterwards is the safest default and is
      # recommended between uses.
      #
      # Changes take effect on /pw reload or a server restart.
      SERVERWIPE-ENABLED: false
    
    # ─── Confirmation ────────────────────────────────────────────────────────────
    CONFIRMATION:
      # /serverwipe always requires confirmation (irreversible, affects everyone).
      SERVERWIPE-TIMEOUT: "30s"     # how long the confirm prompt stays valid
      # /paperwipe <player> (single-target) confirmation is optional.
      PAPERWIPE-REQUIRE-CONFIRM: false
      PAPERWIPE-TIMEOUT: "30s"
    
    # ─── Exemption ───────────────────────────────────────────────────────────────
    
    # Players on the exempt list are skipped by /serverwipe. Exemption does NOT
    # protect against a targeted /paperwipe <player> on that individual.
    EXEMPTION:
      ENABLED: true
    
    # ─── Built-in wipe categories ───────────────────────────────────────────────
    
    # Each category can be individually toggled and has its own permission node
    # (paperwipe.category.<key>) and its own executable command(s). {player} is
    # substituted with the target's username.
    CATEGORIES:
    
      INVENTORY:
        ENABLED: true
        LABEL: "Inventory"
        # Handled natively (clears items/armor/offhand) - no command needed.
    
      ENDERCHEST:
        ENABLED: true
        LABEL: "Ender Chest"
        # Handled natively.
    
      XP-STATS:
        ENABLED: true
        LABEL: "XP & Stats"
        # Handled natively (resets level, exp, and all Bukkit Statistics).
    
      POTION-EFFECTS:
        ENABLED: true
        LABEL: "Potion Effects"
        # Handled natively.
    
      HEALTH-HUNGER:
        ENABLED: true
        LABEL: "Health & Hunger"
        # Handled natively (restores to max health/hunger/saturation).
    
      ADVANCEMENTS:
        ENABLED: true
        LABEL: "Advancements"
        # Handled natively (revokes all criteria on all advancements).
    
      ECONOMY:
        ENABLED: true
        LABEL: "Economy"
        # Not handled natively - runs a configurable command instead, since every
        # economy plugin has its own syntax.
        COMMANDS:
          - "economy wipe {player}"
    
    # ─── Custom wipe types ───────────────────────────────────────────────────────
    
    # Define your own named wipes with their own permission and command list.
    # Reachable via /pwcustom <name> <player> and /paperwipe:<name> <player>.
    # Set PROMOTE-TO-COMMAND to also register it as a standalone top-level command
    # (e.g. "shardwipe") - requires /pw reload to take effect after editing.
    CUSTOM-WIPES:
    
      # Example - remove before adding your own, or edit freely.
      example:
        LABEL: "Example Custom Wipe"
        PERMISSION: "paperwipe.custom.example"
        PROMOTE-TO-COMMAND: ""       # e.g. "shardwipe" - leave blank to disable
        COMMANDS:
          - "say {player} was wiped by the example custom wipe"
    
    # ─── Logging ─────────────────────────────────────────────────────────────────
    
    # Every wipe action (built-in full, per-category, custom, or server-wide) is
    # logged: who ran it, when, which player(s) were affected, which wipe type,
    # and which categories were included.
    LOGGING:
      ENABLED: true
      LOG-TO-CONSOLE: true
      LOG-TO-FILE: true
      FILE: "logs/wipe-history.log"
      # INERT - PaperWipe ships no database backend, so this key currently does
      # nothing. Left here so the option is not silently dropped if a storage layer
      # is added later. Console and file logging above cover the full audit trail.
      LOG-TO-DATABASE: false