Sudo problem - Failed to OP player
buli439 opened this issue ยท 3 comments
Hi i have problem with sudo. i use MCPC+ 1.5.2 build B617 and dev CH last one for 1.5.2. When i try add commad to run as op i get error. My script
sudo('/region s' @region)
sudo('//setbiome' $type)
my error
http://pastebin.com/XgCn5bKU
any idea how this fix ?
Sorry my english is very very bad :(
What version are you using according to /version CommandHelper, because these line numbers in the error don't correspond with the current builds. (Also, in the future, please file bugs at youtrack.sk89q.com, as normally this bug tracker isn't monitored)
IMO this is outside the scope of this plugin. It relies on methods and fields that are deobfuscated in Bukkit. In MCPC though, not only are they not in the same places, but they are more than likely still obfuscated, which means that to keep this working someone would have to investigate MCPC's files every update and add a separate check to determine whether the server is running MCPC.
Ok, I've added a new preference, use-sudo-fallback. This uses a less reliable method of op-runcommand-deop if the standard method fails. The option defaults to false in preferences.ini, so change the setting to true, then test to see if it works. The fallback method actually ops the player, runs the command, then deops them, whereas the normal method "fake ops" them, runs the command, then deops them. This does not have the guarantee that a failure somewhere in between the "op" and "deop" method won't cause the player to remain op, however, so use this at your own risk. Please test this out, and let me know if it works for you.