Paste #74036: dsffdsfd

Date: 2020/08/08 13:15:44 UTC-07: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
19


smite_command:
    type: command
    name: smite
    usage: /smite [player / *]
    description: *zap*
    permission: MoonBread.admin.smite
    script:
        - define player <context.raw_args>
        - if <[player].is_empty>:
            - narrate "<&4>You must specify a player!"
            - stop
        - if !<server.match_player[<[player]>].is_online>:
            - narrate "<&4> The player must be online!"
            - stop
        - if <[player]> == *:
            - foreach <server.online_players> as:players:
                - strike <[players].location>
        - define player <server.match_player[<[player]>]>
        - strike <[player].location>