- 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


TitleEdit of P#38043 debugboard
TypeDenizen Script
Date2019/04/25 08:17:27 UTC-07:00
ByBlackCoyote
OtherEdit of paste #38043 - click here to see edit details
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
4000
debugboard_version:
  type: version
  name: debugboard
  id: 38
  description: a handy little debugboard!
  version: 2
debugboard_events:
  type: world
  debug: false
  events:
    on player quits:
    - flag <player> current_board:!
    on player joins:
    - flag <player> current_board:!
    on system time hourly:
    - webget "http://stats.denizenscript.com/tracker?script=38&version=<s@debugboard_version.yaml_key[version]>"
debugboard:
  debug: false
  type: command
  name: db
  script:
  - if <player.is_op.not> && <player.has_permission[debugboard.use].not||true> {
    - narrate "<&c>You do not have permission to do this!"
    - queue clear
    }
  - if <player.flag[current_board]||none> == debug {
    - sidebar remove
    - narrate "<&c>Disabled  debugboard."
    - flag <player> current_board:!
    - queue clear
    }
  - flag <player> current_board:debug
  - while <player.flag[current_board].is[==].to[debug]||false> {
    - sidebar set "title:<&4>Main Debug Board" "values:<&c>online players<&co><&e> <server.list_online_players.size>|<&c>player ping<&co><&e> <player.ping>|<&c>server TPS<&co><&e> <server.recent_tps.get[1].as_money>|<&c>server RAM<&co><&e> <server.ram_max.sub[<server.ram_free>].div[1048576].round_up>MB/<server.ram_max.div[1048576].round_up>MB|<&c>queues running<&co><&e> <queue.list.size>|<&c>YAML files loaded<&co><&e> <yaml.list.size>|<&c>Entities nearby<&co><&e> <player.location.find.entities.within[50].size||Too many>|<&c>cuboids<&co> <&6><player.location.cuboids.size||0><&e><player.location.cuboids.parse[notable_name].separated_by[/]||>|<&c>regions<&co> <&6><player.location.regions.size||0><&e><player.location.regions.parse[substring[11]].separated_by[/]||>|<&c>Inventory<&co> <&e><player.open_inventory||none>|<&c>Item in hand<&co> <&e><player.item_in_hand||i@air>|<&c>target<&co> <&e><player.target.name||<player.target.entity_type||<player.location.cursor_on.material>>>|<&c>precise<&co> <&e><player.target||<player.location.cursor_on.simple>>"
    - wait 1s
    }






RawRaw



Pastes made: 54312