Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Suggestion] Limit & Restriction (With StartsWith Option) #71

Open
rayzox57 opened this issue Jan 19, 2022 · 0 comments
Open

[Suggestion] Limit & Restriction (With StartsWith Option) #71

rayzox57 opened this issue Jan 19, 2022 · 0 comments

Comments

@rayzox57
Copy link

rayzox57 commented Jan 19, 2022

Good evening everyone !
Here is my idea of ​​feature that could be interesting:
Add the ability to limit or restrict a group of types.

Example :

  • [Server day 1, I add:]
    • EntityCustom_A
    • EntityCustom_B
  • [x days later, I add: ]
    • EntityCustom_C
    • EntityCustom_RANDOM
    • ...
  • [x days later, I add: ]
    • EntityCustom_F
  • [etc...]

Rather than limiting the two EntityCustom to 20 the first time, and then x days later I forget or waste my time looking for the limit I set for the first two EntityCustom, I would just put "EntityCustom_*" so that each time a new EntityCustom is added to the server it is immediately taken care of (one could imagine that this type of limit would be set aside, which means that if we do not find a precise limit we switch on an array containing all limits with types)

I provide you with a video showing (with a test function that only takes the first split) how it could work [example with wire elements here]: https://youtu.be/EKwceKVBSpo

[the same would apply to the restriction].

And one could even imagine an individual or collective limit. If you take the individual, you will be able to spawn 20 EntityCustom of each, while the group limit would be 20 EntityCustom for all types starting with "EntityCustom_*"

Sorry for my rather broken English :)
By looking a bit at the code I could see that this kind of implementation looks possible, but seems quite complex ^^'

Thanks again for reading.

@rayzox57 rayzox57 changed the title [Suggestion] Limit & Restriction (StartWith & EndsWith) [Suggestion] Limit & Restriction (With Like Option) Jan 19, 2022
@rayzox57 rayzox57 changed the title [Suggestion] Limit & Restriction (With Like Option) [Suggestion] Limit & Restriction (With StartsWith Option) Jan 19, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant