Baza7781,
"Difficulty" is a relative term. What might be difficult for you in your beginning paths of learning lua and Glua is likely not difficult for many of the regulars, or more so, the Ulysses dev team such as us.
Honestly, there's not much wrong with copy/pasting IF you're also learning what the stuff you might be copying does.
Heck, some of my earliest days in coding was copy/pasting code bits of Commodore 64 and Tandy Color Computer BASIC and Assembly from magazines in the 80s.
I'd type stuff from the magazine. Run the code. See what it did. Change bits of it I thought might do something else, and viola, have new stuff happen.
Am I an expert now? No. I didn't go that route in life, but, I learned enough to often tell what almost any code does by looking at it.
Logic statements, comparisons, etc.
Ulysses forum search engine is a good way to learn from previous projects.
https://forums.ulyssesmod.net/index.php/topic,8248.htmlThat is what I found searching for whitelist.
No, it's not what you're looking for. But, it's one way to do a whitelist system + see how XLib and GUI's are done.
If you look at MrPresident's original project, less gui, but whitelist ideas just the same.
I've not looked at the code, but believe as you learn lua, you might look and go 'oh, i see what was done there'