Paste #2915: classcomtest

Date: 2014/03/26 10:57:04 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


classCommands:
    type: World
    requirements:
    - permission [shakeyCmd.classCmd]
    events:
        on invisme command:
        - define arg1 <c.args.get[1]>
        - if %arg1% == null {
            - cast [INVISIBILITY] duration:7600 <player.location.find.players.within[100]>
            - narrate ["All players within a 100 block radius around you are now invisible!"]
            - narrate ["You can turn everyone back to normal by doing /invisme -r"]
        }
        else if %arg1% == "-r"{
        - cast [INVISIBILITY] remove
        - narrate ["All players within a 100 block radius around you are visible again!"]
        }
        else {
        - narrate ["<red>INVALID SYNTAX: Correct syntax is /invisme (-r)"]
        }