Unable to create player shopkeepr
blablubbabcDEV opened this issue · 7 comments
Migrated from: https://dev.bukkit.org/projects/shopkeepers/issues/303
Originally posted by Brian_AMCW (Mar 11, 2015):
What steps will reproduce the problem?
1.Clicking on a block after clicking a chest
2.
3.What is the expected output? What do you see instead?
Player shopkeeper suppose to be created, Instead I get an error message that one cannot be created at that location regardles of where I click. Tested in world gaurd protected area with bypass in config and outside protected area same results. Performed action with an admin account. Can create admin shopkeepers with no problems using commands. Fails with spawn egg and using commands, also will not accept any shop types when entered after \shopkeeper error message unknown type
What version of the product are you using?
The very latest, just installedDo you have an error log of what happened?
NoPlease provide any additional information below.
Trying to create a player shopkeeper for my own account which is in the owner group in group manager with all permissions enabled. Not tested with a standard default member account.
Originally commented by blablubbabc (Mar 11, 2015):
Possible reasons for the 'cannot be created at that location' message are:
there is already a player shopkeeper using the selected chest (this would be my current guess: you could take a look at your save file and see if there is an entry in there for the selected chest)
world guard restrictions are enabled in the config and the clicked location is protected by a worldguard region where the player doesn't have build permission in
same for towny restriction
Regarding the /shopkeeper command to fail because of unknown type argument:
What exact type argument have you tried? Also take a look at the front page, there is a description telling you what valid shop and object types are.
Originally commented by Brian_AMCW (Mar 11, 2015):
[at]blablubbabc:
There are no other player shopkeepers I just installed the plugin and created the chest myself I'm just testing it. I have only created 1 other admin shopkeeper in a different location. I tried it outside of a world gaurd protected area. I used the ones listed in the directions, normal, buy, trade.
Originally commented by blablubbabc (Mar 11, 2015):
[at]Brian_AMCW:
Well, shop creation works fine for me on my test server.
Could you describe again, in more detail, what exactly you are doing, step by step, and what the chat output is after each of your steps?
My working scenario looks like this:
I join the server and get a villager egg and a chest and make sure that I am in survival mode
I place down the chest, in no worldguard region
I right click the chest with the villager egg in hand: it say something like 'chest selected, click somewhere to create the shop'
I right click the ground next to the chest
it spawns the villager and displays: 'shop created, enter items to the chest, then right click the shopkeeper to edit the trades'
Regarding the shop type argument: normal, buy, trade etc. are only available for player shopkeepers. So you have to look at an available chest while executing the command, in order for the player shopkeeper creation to get triggered (instead of admin shopkeeper creation).
If you look on the ground, it tries to create an admin shopkeeper and here the command expects an object type (instead of shop type). The available object types are: sign, citizen (alias npc), or the mob name for all currently supporte mob types (villager, pig, witch, etc..).
Edited Mar 11, 2015
Originally commented by blablubbabc (May 19, 2015):
I will close this ticket because I cannot reproduce the issue. If you have new information what could be casuing this on your server, create a new ticket (maybe linking to this one) and I will look into it again.
Originally commented by Brian_AMCW (Mar 11, 2015):
[at]blablubbabc:
I am doing exactly what you are, I select a villager spawn egg then in survival mode select the shop type by cycling the choices I place a chest and right click the chest it displays message that chest has been selected click somewhere to create a shop. When I click on any block as described in the directions the output chat is simply a shop cannot be created at that location. In the same location I can create an admin shop no problem this is only for a player shop. I have tried it inside world gaurd area with bypass on, as the player with ownership and build permissions of the worldgaurd area and outside of any worldguard area. I tried to create the player shop using the commands instead of a spawn egg with the same results. I will test further.