perfah / Duties

GNU General Public License v2.0
2 stars 1 forks source link

Multiverse Inventories Integration #1

Open awnowlin opened 11 years ago

awnowlin commented 11 years ago

Hey, I love the plugin, but I have a significant issue.

On a multiverse enabled server, when you enable duty mode and THEN switch worlds, it loads your regular inventory, and changes to said inventory carry over to when you're not in duty mode.

Steps to reproduce.

Assumptions: Server running Bukkit, with Multiverse and Multiverse-Inventories plugins enabled, 2 worlds (A and B), appropriately configured permissions, and player has existing inventory in World A and B.

1) In World A, enable Duty mode using /duty. 2) Verify duty mode enabled, see clean inventory. 3) Teleport to World B. 4) Duty mode still enabled, notice existing inventory was loaded. 5) Drop an item in your inventory, or spawn in a new item. 6) Disable duty mode. You're taken back to World A 7) Teleport back to World B while NOT in duty mode - Inventory change saved/carried over.

The same occurs when you leave the world even without disabling duty mode.

I tried a workaround by assigning users in duty mode MV Inventories bypass permissions, but that simply caused their duty inventory to be saved in any world they visited when they left the world or disabled duty mode.

Hopefully there's some way to make this play nice with Multiverse.

Let me know if you need anything other information from me!

TH3PF commented 11 years ago

Thanks for your feedback. Sorry for late response which is because of this not being the issue tracker for the current version of Duties.

The last time I tried running Duties and Multiverse-Inventories together, they worked perfectly fine with the bypass permission nodes enabled. I'm not sure if this issue is occurring because of Multiverse-Inventories being outdated or if Duties is behind it. Will try to reproduce the issue asap. If you have any more information about the problem with the workaround, please let me know.

awnowlin commented 11 years ago

No worries on the late response. I tried working on this a little more after posting with no luck. I will probably do some more testing later this week (probably this weekend actually) to see if I can get it working. I may have derp'd something up when I was trying to get it working, so who knows. Anyway, I'll let you know if I can reproduce again and see about getting you logs and configs if you want.

Also, no worries about the delay, but could you link to the issue tracker you use? I'll make note for future issues (if there are any). Thanks!

TH3PF commented 11 years ago

I have found two possible causes of your problem. The first one being that you may not have set the ''use_bypass' node to enabled in the config file of Multiverse Inventories.

"... settings:

If this is set to true, it will enable bypass permissions (Check the wiki for more info.)

use_bypass: true ..."

The other one is that you might not have put apostrophe marks around the permission nodes.

wrong

mvinv.bypass.*: true

right

'mvinv.bypass.*: true'

right

mvinv.bypass.*

I hope one of these solutions works!

ghost commented 11 years ago

Also I have found that having Multiverse handle inventories to be better. I also have a creative world and other worlds, and I have multiverse handle all the inventories for all the worlds individually, this seems to help when switching in and out of duty mode cross worlds.