Paste #139688: Edit of paste 139686: Unnamed Denizen Script Paste

Date: 2026/03/28 17:35:52 UTC+00:00
Type: Denizen Script

View Raw Paste Download This Paste Edit Of Paste 139686 View Edit Report
Copy Link


1
2
3
4
5
6
7
8
9
10
11
12
13


cmd_transfer:
    type: command
    name: transfer
    description: Trigger a proxy transfer
    usage: /transfer [player] [destination]
    script:
    - define playerName <context.args.get[1]>
    - define player <server.match_player[<[playerName]>].if_null[null]>
    - define destinationName <context.args.get[2]>
    - if <[player]> == null:
        - narrate "<&[error]>No player named '<[playerName]>'"
        - stop
    - adjust <[player]> send_to:<[destinationName]>