Citizens are being "pushed" out of Worldguard regions with "entry deny" flag
It seems that worldguard regions with the flag "entry deny" prevent citizens from entering. Im not sure if this is an issue with worldguard, and ive asked them about this too, but short of "opping" the player with the same name as the NPC, that flag affects them the same...
WorldGuard 6 beta added a fake-player-build-override that was designed to address this, I think. It would only work for fake players with brackets around their name.
The issues introduced by WG 6 are not limited to this. Opening inventories is bugged too. Slightly off topic, i know, but the point is that the bugs are introduced (imo) by WG, not citizens.
hmmm.... Yeah opping the "real" player also seems to give permission to the NPC, but I guess there isnt a way to add a permission node (worldguar.region.bypass) to an NPC and not the player with the same name?
Ya, WG6 is still beta. Not sure if this issue is a WG6-only issue, though? mrretrus doesn't mention version. Also, previously mentioned config option should address it in 6 if it's a 6 issue.
Kind of weird to blame it on WG, though, since Citizens is doing the weird special behavior here, not WG. It's not surprising that other plugins might have issues with fake players.
right- and I am using an older version for 1.5.2 since this is a FTB server- but the nodes still exist in some format- Worldguard seems to think that the NPC Lycan, is the player Lycan- since when i op Lycan the NPC can enter regions. But the NPC doesnt have a "name" oir a "group" that i can add nodes to does it? because then I could add permission nodes to the NPC instead of the real player
Ah, so given your older versions you're not really reporting this so much as trying to get help with it. If it's checking permissions for the fake player, then you should be able to give permissions to that fake player, I'd imagine.
Yes, but thats not what I was asking- Im asking if theres a way to give permissions to the FAKE (NPC) player, without giving it to the ACTUAL player- or even be able to add the whole "NPC" group to a groupmanager group so i dont have to manually make a fake player and add permissions to all of my dozens of NPC's just so they arent getting booted around
Not in groupmanager, other perm plugins might possibly have the option... I doubt it for 1.5.2 though :/ and you could always use mob-type NPCs. You do have options.
Why would perm plugins have options to add permissions to non-players? Either it's a player, which gets checked by WG and has permissions, or it's a non-player which has neither of those things.
Have you tried remove-from-list?
Well in modern MC, you can specify the NPC's own UUID and that'd probably work to give them their own permissions. Again, probably nothing for it in 1.5.2
That would be ideal lol I don't want worldguard to affect the NPC but it does. Opping the player affects the box with the same name so there must be some node the npc gets at that point... I just don't fully understand how it works
To be clear, WG (and other plugins) don't try and treat NPCs like players, Citizens is creating fake players. If you give that fake player a permission node, it should work just like a player.
Did you try remove-from-list in Citizens yet? If that doesn't work, you'll just want to use permissions. Create an NPC group. Or you could just not use "entry deny" in areas NPCs exist.
You could also potentially have 'entry deny' flagged regions in little lines marking the border of the area, rather than entirely covering the area.
All are very good suggestions. The line border can't work though because ppm can still to in n out of the center (they need to be able to to in and out) and I didn't know that setting remove from list. What does that do exactly? And If I added an NPC group, what's the fake player name? The npc name in the saves file is identical to the player so is there a suffix or a way to add the npc to a group?
You would likely need the UUID and not the name, Is there a way of getting the UUID mcmonkey?
He's running 1.5.2: they don't have UUIDs.
(You can get the UUID by reading saves.yml or reading it through a plugin like Denizen [ which would be /ex narrate <npc.uuid> ] )
Im still not having much luck on this one :\ Still the only way to get them "access" to a region is by opping the player with the same name. Is there no way to give all NPC "fake players" a permission node or something to bypass worldguard? Worldguard does have a node like this, but how do I add it to the whole citizens plugin so I dont have to bind the permission to the NPC manually? Even then, how DO i bind something to the NPC manually :\
Any thoughts? I would add the NPC to a group or add the permission to them directly... but the "Fake player" name? Whats the prefix or suffix? For example if I create a citizens with the name "Drake" in the saves file he appears as "Drake" - So how can I give the NPC the permission without the actual player? and also Is there a "group" that the citizens belong to so I can just give all NPCs permission instead of doing it one by one?
Try it yourself. I doubt many people are interested in loading up a 1.5.2 test server.
Otherwise my recommendation is to stop using the entry/exit flags where NPCs are and vice versa.
Um... sorry? I'm not trying to be a pest I'm just trying to figure out what I can and can't do with hooking plug-ins. As for the 1.5, it's a FTB Unleashed server which is the most popular mod pack out there so plenty of people are interested. At any rate if support for older versions is out the window that's fine I just figured you would be the person to ask about this since there's no documentation that helps with this particular situation.