FancyShop

6.7k Downloads

Admin Shop Features

sa5mmm opened this issue ยท 2 comments

commented

There should be a way to turn off shop management for OPs.

For example this is what happens now:

Server OP creates an Admin Fancy Shop while in Creative Mode, but still wants to be able to buy/sell to while in Survival mode. (Just because you're OP doesn't mean you want to be unfair to your players). But when OP tries to access Admin Fancy Shop as a player, shop is still in the "Manage Shop" Mode.

Fix:
When in Survival Mode an OP defaults as a normal player, or since Admin Shops have unlimited resources the Access Shop Inventory button could be changed to a "Test Shop" or "Finalize Admin Shop" button. That way OP can still use Admin Fancy Shops like normal players using and Admin Shop.

commented

Admin Shop Display Name:
With Admin Shops, I've noticed that the player who created it that's whose name is on the shop when someone goes to shop from it. There should be a way to configure what Admin Shops say.

Admin Command--Shops for Others:
There should also be a way to create Fancy Shops for other people. So the create a shop command will read /fancyshop create PlayerName

Admin Controls:
I have a community chest at spawn, but how Fancy Shop works anyone could make it into their own Fancy Shop. (Well at least I think) The chest is on an Admin Claim (GriefPrevention), but it has containertrust public. There should be a way, it could use flags, to limit who can create a shop in certain claims/areas. But for those who don't use flags maybe there could be a command /fancyshop lock and it will lock a certain chest from changing modes. So if it's a shop already it can never become a normal chest unless it becomes unlocked, but if it's a normal chest it stays a normal chest until it becomes unlocked. I think that unlocking a chest could be the same as destroying the chest or using the command.
Edit: I think there is something on this already, sorry guys.

commented
  1. Currently you can right-click with a stick to use a shop as a player. This works for regular and admin shops. I don't want to tie it in to creative mode because some servers have different levels of moderator, and someone might want to give FancyShop admin perms without giving creative mode.
  2. Naming shops will be in the next update.
  3. This is a good idea.
  4. You can use Flags for this, see the wiki. That won't help for something like LWC though. I've been trying to avoid adding hooks for any specific protection plugin but I don't know if there's another way to do it. I can't seem to find a "protection API" that does what Vault and Flags do for economy and regions, respectively. Maybe I should write one.

Currently admin shops are just regular shops with a flag set, but now that I think about it, it makes more sense for them to have no owner, so anyone with the right permission can edit them rather than needing a specific person.