FTBTeam / FTB-Mods-Issues

Any mod issues, be it FTB Teams, Quests or any other of our mods can be reported here!
22 stars 1 forks source link

[Feature Request]: Commands that run as rewards can be activated by anyone and affect the server globally #1321

Open PamaPratt opened 1 month ago

PamaPratt commented 1 month ago

Mod

FTB Quests

Description

I see that we have the option to create commands that can be enabled to be auto-claimed so they run automatically, but I've seen that these commands are invalid for anyone without op permissions, since the commands seem to run from their side.

Describe the solution you'd like

It would be nice to have the option to enable commands without giving out op permissions to ALL players, so you if we add them as reward, players can run them without issues, as if they pushed a button on a command block, maybe.

Also, speaking of global-affecting things, it'd be really nice to have a "GLOBAL" option for quests, so everyone progresses indiviually, but when the quest is completed by someone, the quest finishes for everyone.

Thanks in advance for your time!

Describe alternatives you've considered

I tried a few workarounds, but none of them worked since all of them including trying to run commands. For the global part, I tried making a team so when the quest progressed, everyone would see it, but I couldn't find a way to make it so only ONE person gets the reward.

desht commented 1 month ago

It would be nice to have the option to enable commands without giving out op permissions to ALL players

This is already possible? Set the "Run with Elevated Permission" boolean to true in your command reward, and it will run with op permission, even if the user isn't an op:

image

Also, speaking of global-affecting things, it'd be really nice to have a "GLOBAL" option for quests, so everyone progresses indiviually, but when the quest is completed by someone, the quest finishes for everyone.

This is how it works now. All quests are team-based, so if one member of the team finishes a quest, it's finished for everyone in the team. Or do you mean for everyone on the server, regardless of team?

PamaPratt commented 1 month ago

Oh? You’re right! How did I overlook that? But yes, that’s exactly what I meant by "using commands as if op."

Regarding the global quests, yes, I tried using teams and other methods, but I didn’t have success.

What I Tried:

Teams Teams track everyone’s progress collectively, not individually. What I need is for the quest to be a server-wide quest with individual progress. In other words, everyone can see the quest, and each player only sees their own current progress (as quests typically work). However, the difference here would be that only one person receives the reward. Once someone wins, everyone can see that the quest is completed and who was the first to finish it.

Commands I also tried setting command lines as an auto-claimable reward, but it didn’t work: I can’t block rewards for this specific purpose: I tried using the command /ftbquests block_rewards true but I couldn’t find a way or syntax to make it work for just that specific quest. It seems that the command blocks all rewards (with the option of being conditionally applied), but not just for a single quest.

I also considered using the command /ftbquests change_progress @a complete so it would automatically trigger when one player wins. However, while this would partially work, it wouldn’t prevent everyone else from receiving the prize as well.

Suggestion Another thing! It’d be really cool if these global quests could have progress trackers or a milestone bar, so everyone can see in their Quest Book how everyone is doing.

Quick example: image

It would be even cooler if this porgress bar could be added to a screen block (though I couldn’t, for the life of me, figure out how to make those work).

Of course I know I'm asking a lot, and I'm also aware of the possibility of this already being an existing, implemented thing that I just don't know of, but yeah... Thank you for the patience.

Thank you so much for your time and consideration. Greatly appreciated.

stale[bot] commented 4 weeks ago

This issue has been automatically marked as stale because it is in a state of "Awaiting Reply" but no reply has been received within 14 days. It will be closed within 7 days if it is not updated with a reply.

desht commented 4 weeks ago

There are some interesting ideas here, but yes you're right that there's also a lot to consider, and limited developer time available. So, leaving this open for now, will definitely keep under consideration for the future.

PamaPratt commented 3 weeks ago

Thanks for the reply!

It's completely understandable and I know how much work it can be, so it's alright. Thanks for the consideration anyways.

On the other hand, there are tons of already existing features, but I can't seem to get how do they work. Is there a way to know what this or that thing does (like block-screens)? Is there a place, or wiki for this mod? I searched everywhere, but besides a couple of Youtube tutorials, I couldn't find anything. The official wiki is empty and the discord server is not very helpful.

Thanks again for your time!