#Skript Error

1 messages · Page 1 of 1 (latest)

median beacon
#
[19:10:53 INFO]: [Skript] Skript cannot save any variables to the database 'default'. The server will hang and may crash if no more variables can be saved. ```
How do I fix this
austere gate
#

Use addons for databases

median beacon
#

For the variables?

#

What addons shall I use?

halcyon nest
# austere gate Use addons for databases

there is no database being used there, it's just the default variables.csv file.

To fix this, go through your code to see if things are being done a lot of times at once. This just means you are trying to save a lot of variables at the same time too quickly.

median beacon
#

Ahh okay probably because I am saving blocks through variables

halcyon nest
#

how are you saving the blocks? if you are doing a large area, I'd recommend SkBee's structures

median beacon
#

No it's just for short time, for example if a player used certain thing the code will loop blocks in a radius for example 5, then it'll remove the blocks after saving the blocks to a variable, then after a while I reset the blocks by looping the variable. Do you have a better idea for this?

junior crystal
#
command: /nodirt
  permission: minecraft.op
  trigger:
    set {_loc1} to "%player's x-coordinate -20% %player's Y-coordinate -20% %player's Z-coordinate -20%"
    set {_loc2} to "%player's x-coordinate +20% %player's Y-coordinate +20% %player's Z-coordinate +20%"
    make console execute command "/fill %{_loc1}% %{_loc2}% structure void replace dirt"
    send "dirt removed"
    wait 30 seconds
    make console execute command "/fill %{_loc1}% %{_loc2}% dirt replace structure void"```
this should be similar to what your doing already but not with saving all the data
this will also keep blocks that get placed within the other slots. this way can only be done on one block type at a time 
but you can change air to structure void and save the structure then turn the air back load the structure at the least x y and z cords and this will replace newly placed blocks tho
#
make console execute command ""
set the gamerule sendCommandFeedback of player's world to true

doing this with the SkQuery plugin will silence the console for those commands.
if your annoyed by it or people complain about chat spam as op