wifi-left / sign-editor

An in-game sign editor for Minecraft (Fabric) 1.19 and higher version
Creative Commons Zero v1.0 Universal
2 stars 0 forks source link

[SUGGESTION] Cooldown #2

Open DaDiGui opened 1 month ago

DaDiGui commented 1 month ago

Hello, would there be any possibility to add CD's to a poster so that it can only be used again from time to time? And also add permissions so that only the OP/Administrators can configure the CD.

wifi-left commented 1 month ago

Hello. Personally, I think this feature may not be that necessary. First of all, the editing permissions set by this module are already administrators, and ordinary members cannot be edited. If you think this function is very necessary, you can reopen this issue, I will try to make this function, thank you.

DaDiGui commented 1 month ago

Hi! Yes the main function is still that these signs are only configured by the Administration/OPs. My suggestion was to give the possibility, in my case, using this mod: multieconomy to execute a command to add a custom economy (Reputation) and obviously to use it with other commands from other mods, and even the vanilla commands from scoreboards, etc. It's hard for me to do it any other way and that's why when I saw your mod I figured it was the only hope to be able to carry out the Reputation System I have planned for my server. Thank you very much in advance.

wifi-left commented 1 month ago

I don't know what the features you mentioned have to do with adding a cd to this mod. But first I have to explain what this mod does. This mod is used to change the content of the sign, even after you uninstall this mod, the content of the sign will remain in effect. Because it's all part of the original. This mod just adds a simple modification. You can also modify the sign by '/data' to achieve the same effect as this mod. I don't think it has anything to do with the features you mentioned. All in all, this mod does not modify the original function of the sign. If you need a solution, I can provide you with:

  1. Create a scoreboard to keep track of time
    scoreboard objectives add time dummy "Time"
  2. Execute the command repeatedly:
    scoreboard players remove @a[scores={time=1..}] time 1
  3. Modify the board and add commands (at most one command can be added to a line of the board)
    execute as @s unless score @s time matches 1..  run <You command here>
    execute as @s unless score @s time matches 1..  run scoreboard players set @s time <You cd time>

    This will allow you to implement the cd that executes the command.

wifi-left commented 1 month ago

If my answer solves your question, you can close the issue, otherwise you can continue asking. I'll try to help you.

More helps for commands: https://minecraft.wiki/w/Commands