01.02.2014, 16:27
(
Последний раз редактировалось Jachu; 01.02.2014 в 19:21.
)
Hello!
I have up to 600 commands in my gamemode and I need to rewrite them to the fast and flexible command system. Currently I am using strcmp method, which is slow (that is what I heard).
The problem is that the command system must provide:
- possibility to change command name at runtime
- possibility to make proxy commands at runtime - which point to the same block of code (like /healme -> /heal)
- possibility to group commands and players (admins, mods, special users etc.)
- possibility to set up privileges for groups (something like normal users can't use admin commands)
- easy way to list all commands and commands for particular groups
I don't know if there is such a library that can provide me these features. I have almost all of them using just strcmp.
I have up to 600 commands in my gamemode and I need to rewrite them to the fast and flexible command system. Currently I am using strcmp method, which is slow (that is what I heard).
The problem is that the command system must provide:
- possibility to change command name at runtime
- possibility to make proxy commands at runtime - which point to the same block of code (like /healme -> /heal)
- possibility to group commands and players (admins, mods, special users etc.)
- possibility to set up privileges for groups (something like normal users can't use admin commands)
- easy way to list all commands and commands for particular groups
I don't know if there is such a library that can provide me these features. I have almost all of them using just strcmp.