- 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


TitleUntitled Paste
TypeDenizen Script
Date2015/10/29 03:31:05 UTC-07:00
BySeq
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
4500
Home_Command:
  type: command
  name: home
  aliases:
  - mgw
  usage: /home <&lt>arguments<&gt>
  description: Save location as home or teleport home.
  permission: home.command
  allowed help: 
  - determine <player.has_permission[home.command]||false>
  tab complete:
  - if <player.has_permission[home.command].not||true> queue clear
  - determine <li@reset|remove>
  script:
    - if <player.has_permission[home.command].not||true> {
      - narrate "<red>Sorry, you don't have permission to use this command."
      - queue clear
      }
    - define args <context.args> 
    - if <def[Args].size> == 0 {
      - if <server.list_notables.parse[notable_name].contains[<player.name>-home].not> {
        - note <player.location.block> "as:<player.name>-home"
        - narrate "<green><player.name>-home added!"
        }
        else {
        - teleport <player> "l@<player.name>-home"
        }
      }    
      else if <context.args> !=reset && <context.args> != remove {
      - narrate "<red>Unknown Arguments!" 
      - queue clear      
      }
      else {
      - choose <context.args>: 
        - case reset: 
          - note remove "as:<player.name>-home"
          - narrate "<green><player.name>-home removed!"
          - note <player.location.block> "as:<player.name>-home"
          - narrate "<green><player.name>-home added!"
        - case remove: 
        - note remove "as:<player.name>-home"
         - narrate "<green><player.name>-home removed!"" 
      }
      



RawRaw



Pastes made: 62529