name: JakesRTP
author: JakeTS
main: biz.donvi.jakesRTP.JakesRtpPlugin
prefix: 'J-RTP'
version: '0.14.9'
api-version: '1.13'

softdepend:
  # Needed for multi-world support
  - 'Multiverse-Core'
  # Needed for economy support
  - 'Vault'
  # For world-border support
  - 'ChunkyBorder'
  - 'WorldBorder'
  # For claims support
  - 'GriefPrevention'
  - 'WorldGuard'
  - 'HuskTowns'
  - 'Lands'

commands:
  jrtpdebug:
    description: 'Used for debugging, no practical purpose'
  rtp:
    description: 'Teleports you to a random location'
    aliases:
      - 'wild'
    permission: 'jakesrtp.use'
    permission-message: 'Could not run command. Missing permission node: jakesrtp.use'
    usage: '/rtp'
  forcertp:
    description: 'Teleports the specified user to a random location'
    permission: 'jakesrtp.others'
    permission-message: 'Could not run command. Missing permission node: jakesrtp.others'
    usage: '/forcertp <playerName> [-c <rtpConfigName> | -w <destinedWorld>]'
  rtp-admin:
    description: 'All the admin functionality (of J-RTP) in its own place'
    permission: 'jakesrtp.admin'
    permission-message: 'Could not run command. Missing permission node: jakesrtp.admin'
    useage: '/rtp-admin [reload|status]'

permissions:
  jakesrtp.use:
    description: 'Allows the use of the base "/rtp" command'
    default: true
  jakesrtp.usebyname:
    description: 'Allows players to give a rtpSettings name after rtp as such: "/rtp <settingsName>"'
    default: false
  jakesrtp.rtpondeath:
    description: 'If rtp-on-death is enabled, players with this node will be respawn in a random location'
    default: false
  jakesrtp.nofirstjoinrtp:
    descriptopn: >
      If rtp-on-first-join is enabled, then players who have this permission before they join the server will NOT be
      randomly teleported. If rtp-on-first-join is disabled, this permission does nothing.
    default: false
  jakesrtp.nocooldown:
    description: 'Allows the user to ignore the cool-down timer'
    default: op
  jakesrtp.nowarmup:
    description: 'Allows the user to ignore the warm-up timer'
    default: op
  jakesrtp.others:
    description: 'Allows the use of "/forcertp <player>" on a player'
    default: op
  jakesrtp.admin:
    description: 'Allows the usage of the "/rtp-admin" command.'
    default: op
  # Permission packs
  jakesrtp.permpack.admin:
    description: 'A collection of permissions that are *not* intended for players'
    children:
      jakesrtp.nocooldown: true
      jakesrtp.nowarmup: true
      jakesrtp.others: true
      jakesrtp.admin: true
