Zrips / CMI

117 stars 99 forks source link

Tfly command #3538

Closed QueenAngus closed 4 years ago

QueenAngus commented 4 years ago

Description of issue or feature request: When giving players the cmi.command.tfly perm, they can both go /tfly to see how much temporary flight they have left, and also use /tfly (time) to give themselves more time. My request is simple, separate perms for these so that people can see how much time they have left but not modify their own time.

Thanks.

CloudeLecaw commented 4 years ago

Nice idea. This should be also possible for tgod :) Could you change your title to something like "extansion for tfly and tgod" so i dont need to create a new request ticket for this? :)

mrfloris commented 4 years ago

Technically someone could make a /flytime command that uses the placeholders to visualize time remaining. But I agree, splitting up the tfly permissions so they can't set the tfly but they can check the tfly, seems like a logical expansion. Placeholders that can be used in action-, bossbar msgs, etc. are:

%cmi_user_canfly% (true/false - can they fly?)
%cmi_user_flying% (true/false - are they flying?)

%cmi_user_tfly% (integer - time in seconds remaining until tfly expires)
%cmi_user_tfly_formatted% (string - formatted time until tfly expires)

/flytime could be like so:
msg! [playerName] Temp fly ends in (%cmi_user_tfly% seconds) %cmi_user_tfly_formatted%
CloudeLecaw commented 4 years ago

Thse are placeholders in cmi

%cmi_user_tfly% %cmi_user_tfly_formated% %cmi_user_tfly_formatted% %cmi_user_flightcharge% %cmi_user_tgod% %cmi_user_tgod_formated% %cmi_user_tgod_formatted% So formated can be also defined as time remaining So you could create a customalias like mrfloris suggested allready. Have you tried to create one that uses the formated onces? Formated can use the normal times format. You can define needed ermissions for these customaliases if you want this. Then players could check there tfly time without able to use tfly itself

We also have the bperm feature so the tfly can get asked for by an custom alias without needing to give player permission to set tfly

Zrips commented 4 years ago

Will add permission node as cmi.command.tfly.admin which will allow to manage time, but without it will only output current tfly state