10-22-2015, 04:49 PM
SQLite with colums "id" "name" "permission" and "commands" would have a similar effect to an Ini that goes like:
[name]
permission=
1=
2=
3=
But the Ini would be editable from out of game. It could even be loaded into memory in table form during initilization (instead of reading it during execution) and then executed with a for loop. It should be secure as they don't name a file but a key.
Although be wary that a similar plugin for bukkit/spigot has some users that define hundreds of new commands.
I just finished my plugin that stores button information in an ini file and then loads that into memory when it's initialized, then writes back out on disable. I'll see if I can't make a mockup of my idea in a bit, although bugtesting and releasing a my code will take priority.
[name]
permission=
1=
2=
3=
But the Ini would be editable from out of game. It could even be loaded into memory in table form during initilization (instead of reading it during execution) and then executed with a for loop. It should be secure as they don't name a file but a key.
Although be wary that a similar plugin for bukkit/spigot has some users that define hundreds of new commands.
I just finished my plugin that stores button information in an ini file and then loads that into memory when it's initialized, then writes back out on disable. I'll see if I can't make a mockup of my idea in a bit, although bugtesting and releasing a my code will take priority.