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
Repeat Expression #5098
Repeat Expression #5098
Conversation
src/main/java/ch/njol/skript/classes/data/DefaultFunctions.java
Outdated
Show resolved
Hide resolved
Skript has it's own implementation of multiply in StringUtils Skript/src/main/java/ch/njol/util/StringUtils.java Lines 291 to 313 in 6bf2341
I haven't checked if it would be more efficient to use Skript's or not. The collection util in Java probably didn't exist back then. We need to ensure this is currently the most efficient operation count. The old method might even be better to replace with new, or vice versa. |
It's entirely possible that skript's method would be better with the fact it's built for string while |
Moved it to |
I think lime was just suggesting you use the function in your code. as a name, I think |
I think I could do that tho would it be best to keep repeat function and add it as a side option like how round is |
…o feature/repeat
Removed function repeat Added repeat expression
Changes should of been made now, sorry for the delay on those |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me! Nice work :)
Co-authored-by: Patrick Miller <apickledwalrus@gmail.com>
Co-Authored-By: LimeGlass <16087552+TheLimeGlass@users.noreply.github.com>
bd134d0
to
3f08853
Compare
Personally I'm not for this entirely Co-authored-by: TheLimeGlass <seantgrover@gmail.com>
For the love of god fix the list to list comparisons
Description
This PR adds a new repeat expression into skript, pattern usage is
%string% repeated %integer% time[s]
Target Minecraft Versions: any
Requirements: none
Related Issues: none