cnaude / PurpleIRC

Minecraft Bukkit plugin that provides an IRC bridge. This repo has been archived. Please see https://github.com/cnaude/PurpleIRC-spigot for the latest and greatest PurpleIRC code for Bukkit servers (Spigot, Paper etc...)
20 stars 9 forks source link

How does "Add permission option for IRC commands" work? #68

Open ghost opened 10 years ago

ghost commented 10 years ago

I am just looking for an explination of exactly how this would work. I see the new Perm: '' line in the bot config but im not sure if that means it will check the playername based on irc name for permission from gm in order to send that command via IRC?

cnaude commented 10 years ago

That is exactly how it works. When an IRC user attempts to run a command it will check the game server for that player name. If that player is logged on it checks the permission of that player.

cnaude commented 10 years ago

See line 215 https://github.com/cnaude/PurpleIRC/blob/master/src/main/java/com/cnaude/purpleirc/Utilities/IRCMessageHandler.java

ghost commented 10 years ago

Is there a way to alias IRC users names for minecraft IGNs/UUIDs? My IRC name does not match my IGN currently so I assume it would return a permissions error for any IRC username that does not match?

If the perm line is left blank it will not check for perm nodes correct?

cnaude commented 10 years ago

Maybe I can add a feature that aliases UUIDs and IRC hostmasks.

If it is blank it's just ignored.

ghost commented 10 years ago

a hostmask or vhost name would be awesome that way reguardless of the nick if vhost matches the optional aliased UUID permissions will work.