1. KillParadise submitted a new resource:

    Prefix Handler Module - Prefix Handling Module for RanksAndTitles, handles multiple prefixes that users can choose from

    Read more about this resource...
     
  2. @KillParadise you could also grab prefixes and so on from Better Chatname ;)
     
  3. This is for RanksAndTitles its a module and cannot run by itself, you're more than welcome to plug into it as well if you would like, just send it your data and config file to the plugin like this:
    Code:
    var prefixAPI = new prefixHandler([config, data]);
    
    However since my RanksAndTitles uses prefixes as a permission controller and group permissions handler it may cause issues since it uses the oxide.user file to find permission groups to set available. Since it's also based off the config structure of RanksAndTitles that also may pose a problem.
    But in the future I can make it dynamic in this area to allow others to use the module if desired.
     
  4. "data" should be an array?
     
  5. Nah they should both just be your json files in its entirety, easier that way, no cross language hoopla
     
  6. just adding this? To hot here (BrainIsSmelten):
    Code:
    prefixAPI = prefixHandler([config, data])
     
  7. Oh, and I forgot you would have to support a ph command, that points at the main function. Since the module does no command handling in itself. (Like I said, it will become more dynamic as I progress and advance my modular development plugins)
     
  8. I guess im just waiting until you made it more dynamic ;)
     
  9. The Module is a JavaScript Class. So you will need to create a new instance of it, hence the new prefixHandler([config, data])
    it will build a new instance of the module and you can access it via the variable you set. (in this case prefixAPI)
    it's okay its 5am here so I am half high from lack of sleep.

    I'll make it more dynamic soon, this is just a simple system to test the waters of JavaScript Classes and performance (they should perform much better than regular JS plugins) so we shall see. Since I have a large line up of modules to release lol.
     
  10. This doesn't seem to work anymoreeeeeeeeeeeeeeeeeeeeeeee
     
  11. Not surprising. I'll have to sit down and do a hard session on all my plugins again. I'll look into it when I have a chance today.
     
  12. I managed to give people the prefixes via the ranks and titles commands in the end but yeah :)
     
  13. What's the error you're getting if you don't mind? Or is it simply just broken and wont work?
     
  14. It was just not updating with the available prefixes after I had put people ion the mod group and myself in the owner group, still only had the player prefix option.
     
  15. Hmm, okay might be a oxide update that broke it.