- 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 04:11:15 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
46
47
48
49
50
5000
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.filter[starts_with[<context.args.last||>]]> 
  script: 
    - if <player.has_permission[home.command].not||true> { 
      - narrate "<red>Sorry, you don't have permission to use this command." 
      - queue clear 
      } 
    - if <context.args.is_empty> { 
      - if <server.list_notables[locations].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" 
        } 
        - queue clear 
      } 
    - choose <context.args.get[1]>: 
      - case reset: 
        - if <server.list_notables[locations].parse[notable_name].contains[<player.name>-home].not> {
          - narrate "<red>No home found to reset!"
          }
          else {
          - note remove "as:<player.name>-home" 
          - narrate "<white><player.name>-home removed!"
          - wait 1        
          - note <player.location.block> "as:<player.name>-home" 
          - narrate "<green><player.name>-home added!" 
          }
      - case remove:
        - if <server.list_notables[locations].parse[notable_name].contains[<player.name>-home].not> {
          - narrate "<red>No home found to remove!"
          }
          else {
          - note remove "as:<player.name>-home" 
          - narrate "<white><player.name>-home removed!" 
      - default: 
        - narrate "<red>Unknown Arguments!"



RawRaw



Pastes made: 59170