I am implementing some Pex support in the plugin I am developing. One of the things I need from this is to be able to remove the suffix of the player. According to This source, the way to do this is with: pex user <user> suffix "" however, using "" just isn't working for me. I am using the line: Bukkit.dispatchCommand(Bukkit.getConsoleSender(), "pex user " + args[0] + " suffix """); Obviously, Java just doesn't like the """. I want to know if there is another way to display this for the console? also if anyone could tell me how I could send a message to the player "args[0]", I would appreciate it EDIT by Moderator: merged posts, please use the edit button instead of double posting.
Rellac Rather than going about it that way, I would assume that PEX has some kind of API for this kinda thing which would be much nicer, not only in code, but also for everything. Rellac A quick search gave me this https://github.com/PEXPlugins/PermissionsEx/wiki/Native-API-example EDIT by Moderator: merged posts, please use the edit button instead of double posting.
I can't seem to find exactly how to hook into pex at all? Mayhaps this is just the noob in me but google yields minimal results
Rellac import the pex jar into Eclipse as an external library, then you want to put it as a dependency in your plugin.yml. To get the pex object, go: Code:java Plugin pexPlugin = Bukkit.getServer().getPluginManager().getPlugin("NameOfPexPlugin"); You may need to further cast it to the pex plugin object like Code:java PexPlugin pex = (PexPlugin) pexPlugin;//The object PexPlugin probably doesn't exist. Look through their api to find what it is Once you have this, you can go pex.someMethod();