diff --git a/README.md b/README.md
index 0d35f9f..32be043 100644
--- a/README.md
+++ b/README.md
@@ -1,6 +1,42 @@
# denizen-scripts
-DenizenScript scripts (and data) folders of SakuraFalls.
+
+
-# How to use
-You should just be able to drag & drop this into your
-DenizenScript folder on your server. Enjoy!
+
+# About
+
+This repository contains the *Denizen* `scripts` and `data` folders of SakuraFalls.
+
+It contains the actual code used on the server at this time. You are free to explore and to
+use the scripts that our server uses! We believe that gatekeeping roleplaying servers furhter
+only leads to less variety and creativity. We hope that the code here, although just given as
+is without further instructions, will lead to a new generation of awesome roleplaying servers.
+
+## License
+
+All files are licensed under **GNU GPL 3.0**.
+You may use them on your server, but only under the license presented above.
+A summary can be found here: https://www.tldrlegal.com/license/gnu-general-public-license-v3-gpl-3
+
+## How to use
+You should just be able to drag & drop this into your `plugins/Denizen` folder on your server.
+Server software: **PaperMC 1.21.10-117**
+*Denizen* version: **1.3.1-SNAPSHOT (build 7235-DEV)**.
+
+Enjoy!
+
+## Extra dependencies
+
+The scripts here may depend on the following plugins, some of which may need to be purchased:
+1. **Depenizen** (build 882)
+https://ci.citizensnpcs.co/job/Depenizen/
+2. **LiteBans** (latest)
+https://www.spigotmc.org/resources/litebans.3715/
+3. **LiteProfiles** (latest)
+https://github.com/fishydarwin/LiteProfiles
+4. **PlaceholderAPI** (latest)
+https://www.spigotmc.org/resources/placeholderapi.6245/
+5. **AreaShop** (2.9.1) *(md5sha256 variant)*
+https://www.github.com/md5sha256/AreaShop
+6. **ProtocolLib** (5.4.0)
+https://www.spigotmc.org/resources/protocollib.1997/
diff --git a/scripts/apartments/apartments_commands.dsc b/scripts/apartments/apartments_commands.dsc
index 177f313..c84ddc8 100644
--- a/scripts/apartments/apartments_commands.dsc
+++ b/scripts/apartments/apartments_commands.dsc
@@ -82,8 +82,7 @@ apartments_command_apartmentremoveaccess:
- aptrm
permission: apartments.command.apartmentremoveaccess
tab completions:
- # TODO: use the procedural tab-complete to handle this correctly!
- 1:
+ 1: ].parse[name]>
script:
- if != player:
- narrate "<&c>Please run this command as a player."
diff --git a/scripts/apartments/apartments_tasks.dsc b/scripts/apartments/apartments_tasks.dsc
index 96a2e39..9693e3f 100644
--- a/scripts/apartments/apartments_tasks.dsc
+++ b/scripts/apartments/apartments_tasks.dsc
@@ -109,3 +109,17 @@ apartments_end_edit:
- inventory set origin:<[item]> slot:<[slot]> player:<[player]>
- adjust <[player]> gamemode:survival
- flag <[player]> apartments_edit:!
+
+apartments_all_with_access:
+ debug: false
+ type: procedure
+ definitions: player
+ script:
+ - define location
+ - define apartment ]>
+ - if <[apartment]> == null:
+ - determine
+ - define owner ]>
+ - if <[owner]> != <[player]>:
+ - determine
+ - determine <[owner].flag[apartments_access].get[<[apartment]>].if_null[].keys>
diff --git a/scripts/apartments/apartments_world.dsc b/scripts/apartments/apartments_world.dsc
index 53d9619..76897b9 100644
--- a/scripts/apartments/apartments_world.dsc
+++ b/scripts/apartments/apartments_world.dsc
@@ -12,7 +12,7 @@ apartments_world:
## invalid access
on player right clicks block:
- if :
- - stop
+ - stop
- if == null:
- stop
- if !|]>:
diff --git a/scripts/carry/carry_commands.dsc b/scripts/carry/carry_commands.dsc
index a659faf..63793f2 100644
--- a/scripts/carry/carry_commands.dsc
+++ b/scripts/carry/carry_commands.dsc
@@ -45,7 +45,7 @@ carry_command_carry:
- narrate format:formats_prefix "Sent a carry request to <&e>]>"
#
- narrate format:formats_prefix targets:<[target]> "<&e>]> <&7> would like to carry you."
- - narrate targets:<[target]> "<&l>[ACCEPT]].on_click[]>"
+ - narrate targets:<[target]> <&l>[ACCEPT]].on_click[]>
carry_command_uncarry:
debug: false
diff --git a/scripts/furniture/furniture_tasks.dsc b/scripts/furniture/furniture_tasks.dsc
index 15a55e6..ac8d301 100644
--- a/scripts/furniture/furniture_tasks.dsc
+++ b/scripts/furniture/furniture_tasks.dsc
@@ -62,7 +62,7 @@ furniture_menu:
item: <[item]>
- define contents <[contents].with[<[loop_index]>].as[<[item_entry]>]>
- if <[page]> > 0:
- - define contents_extra:
+ - definemap contents_extra:
49:
item: - <<><<>]]>
script: furniture_menu
@@ -71,7 +71,7 @@ furniture_menu:
page: <[page].sub[1]>
- define contents <[contents].include[<[contents_extra]>]>
- if <[page].add[1].mul[27]> < <[contents].size>:
- - define contents_extra:
+ - definemap contents_extra:
51:
item:
- <>><>>]]>
script: furniture_menu
diff --git a/scripts/furniture/furniture_world.dsc b/scripts/furniture/furniture_world.dsc
index b395b23..50a518b 100644
--- a/scripts/furniture/furniture_world.dsc
+++ b/scripts/furniture/furniture_world.dsc
@@ -43,7 +43,7 @@ furniture_world_custom_block:
- if ! && !:
- stop
- if :
- - stop
+ - stop
- if !|]>:
- stop
- ratelimit 5t
@@ -80,7 +80,7 @@ furniture_world_custom_block:
- if ]> == null:
- stop
- if ! && !:
- - determine cancelled passively
+ - determine cancelled passively
- stop
- run custom_block_destroy def.at:
#
@@ -96,7 +96,7 @@ furniture_world_collision_block:
events:
on player right clicks block bukkit_priority:high:
- if == null:
- - stop
+ - stop
- if ! && !:
- stop
- if :
diff --git a/scripts/guns/guns_world.dsc b/scripts/guns/guns_world.dsc
index bcd4a37..412d94e 100644
--- a/scripts/guns/guns_world.dsc
+++ b/scripts/guns/guns_world.dsc
@@ -30,7 +30,7 @@ guns_world_gun:
- playeffect effect:redstone at:].distance[0.1]> special_data:0.5|white visibility:16 quantity:6 offset:0,0,0
- stop
- playeffect effect:redstone at:].distance[0.1]> special_data:0.5|white visibility:16 quantity:6 offset:0,0,0
- - if <[target].entity_type> != player:
+ - if <[target].type> != player:
- stop
- if <[target].has_flag[guns_frozen]>:
- stop
@@ -51,7 +51,7 @@ guns_world_taser:
- define target
- if <[target]> == null:
- stop
- - if <[target].entity_type> != player:
+ - if <[target].type> != player:
- stop
- if <[target].has_flag[guns_frozen]>:
- stop
diff --git a/scripts/lib/gui_restore.dsc b/scripts/lib/gui_restore.dsc
index 9fd1ff8..900472c 100644
--- a/scripts/lib/gui_restore.dsc
+++ b/scripts/lib/gui_restore.dsc
@@ -57,7 +57,7 @@ gui_restore_world:
- if ]>:
- run gui_restore_save def.player:
- if == anvil:
- - run gui_restore_save def.player:
+ - run gui_restore_save def.player:
on player closes inventory bukkit_priority:lowest:
- if :
- run gui_restore_load def.player:
diff --git a/scripts/lib/textbox.dsc b/scripts/lib/textbox.dsc
index 6884398..8612fbd 100644
--- a/scripts/lib/textbox.dsc
+++ b/scripts/lib/textbox.dsc
@@ -61,15 +61,15 @@ textbox_write:
- playsound sound:textbox.text <[player]> custom pitch:
- wait 1t
- if <[line].substring[<[value].add[1]>,<[value].add[1]>].trim.length.if_null[1]> == 0:
- - if <[line].substring[<[value]>,<[value]>]> == ".":
+ - if <[line].substring[<[value]>,<[value]>]> == .:
- wait 2t
- - if <[line].substring[<[value]>,<[value]>]> == "!":
+ - if <[line].substring[<[value]>,<[value]>]> == !:
- wait 2t
- - if <[line].substring[<[value]>,<[value]>]> == "?":
+ - if <[line].substring[<[value]>,<[value]>]> == ?:
- wait 2t
- - if <[line].substring[<[value]>,<[value]>]> == "-":
+ - if <[line].substring[<[value]>,<[value]>]> == -:
- wait 2t
- - if <[line].substring[<[value]>,<[value]>]> == ",":
+ - if <[line].substring[<[value]>,<[value]>]> == ,:
- wait 2t
- wait
- if <[player].flag[textbox_state].if_null[null]> != writing:
diff --git a/scripts/liteprofilesutils/liteprofilesutils_command.dsc b/scripts/liteprofilesutils/liteprofilesutils_command.dsc
index a56bfb9..0c2eafe 100644
--- a/scripts/liteprofilesutils/liteprofilesutils_command.dsc
+++ b/scripts/liteprofilesutils/liteprofilesutils_command.dsc
@@ -16,7 +16,7 @@ liteprofilesutils_command_profiles:
- stop
- define player
- clickable save:accept usages:1 until:30s:
- - flag <[player]> liteprofiles_legacy_menu:!
+ - flag <[player]> liteprofiles_legacy_menu:!
- run liteprofilesutils_show_menu def.player:<[player]>
- narrate
- narrate format:formats_prefix "Our profile system lets you own multiple 'unique accounts' by tricking the server to hand you new unique IDs, which may cause the server to incorrectly save your inventory, ranks, or other data."
diff --git a/scripts/liteprofilesutils/liteprofilesutils_tasks.dsc b/scripts/liteprofilesutils/liteprofilesutils_tasks.dsc
index 22cfc65..27d44e0 100644
--- a/scripts/liteprofilesutils/liteprofilesutils_tasks.dsc
+++ b/scripts/liteprofilesutils/liteprofilesutils_tasks.dsc
@@ -50,7 +50,7 @@ liteprofilesutils_show_menu:
- define slaveitem
-
- define slavename ]>]>
- if <[slavename]> == null:
- - define slavename "Unnamed Character"
+ - define slavename "Unnamed Character"
- adjust def:slaveitem display:<&f><[slavename]>
- adjust def:slaveitem lore:
Alt Profile|<&f>|<&8>UUID:|<&8><[slaveuuid]>]>
- flag <[slaveitem]> liteprofiles: