Paste #29536: Untitled Paste

Date: 2016/02/02 14:53:55 UTC-08:00
Type: Denizen Script

View Raw Paste Download This Paste
Copy Link


1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18


ResetPassword_Command:
  type: command
  debug: true
  name: ResetPassword
  description: Reset a players password
  aliases:
  - rp
  - resetpassword
  usage: /rp(player)
  permission: denizen.resetpassword
  tab complete:
  - determine <server.list_players.parse[name].filter[starts_with[<context.args.last||>]]>
  script:
  - if <player.has_permission[denizen.resetpassword].not> {
   - narrate "<&c>This command is for <&6>High-tier <&c>Staff Members only!"
   - Queue clear
    }
  - execute as_server "resetpassword <player.name>"