- D1 Meta Docs - Denizen Script -
Home Page / Pi to one million places / Contact mcmonkey / Donate / Paste Scripts / Denizen Help /
You are browsing as a guest.
Login | Register


Click here to create your own public paste ~ ~ click to duplicate and edit this paste


Titleadmincommands
TypeDenizen Script
Date2014/03/27 15:04:32 UTC-07:00
ByGuest
Other
Paste
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
5100
classCommands:
    type: World
    events:
        on invisme command:
        if <player.has_permission[shakeyCmd.classCmd]> == true {
        - define arg1 "<c.args.get[1]>"
        - if "%arg1%" == "null" {
            - cast INVISIBILITY duration:7200 <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<&co> Correct syntax is /invisme (-r)"
            }
        } else {
        - narrate "<red>You don't have permission to use this command."
        }
        - determine fulfilled
        on gm1me command
        if <player.has_permission[shakeyCmd.classCmd]> == true {
        - foreach <player.location.find.players.within[100]> {
            - execute as_player "/gm 1 %value%"
        }
        - narrate "All nearby players switched to gamemode 1"
        } else {
        - narrate "<red>You don't have permission to use this command."
        }
        - determine fulfilled
        on gm2me command
        if <player.has_permission[shakeyCmd.classCmd]> == true {
        - foreach <player.location.find.players.within[100]> {
            - execute as_player "/gm 2 %value%"
        }
        - narrate "All nearby players switched to gamemode 2"
        } else {
        - narrate "<red>You don't have permission to use this command."
        }
        - determine fulfilled
        on gm0me command
        if <player.has_permission[shakeyCmd.classCmd]> == true {
        - foreach <player.location.find.players.within[100]> {
            - execute as_player "/gm 0 %value%"
        }
        - narrate "All nearby players switched to gamemode 0"
        } else {
        - narrate "<red>You don't have permission to use this command."
        }
        - determine fulfilled



RawRaw



Pastes made: 57250