Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not able to create Shops in worldguard regions as the owner/Weird Help Menu. #37

Open
SoraShiunin opened this issue Apr 5, 2021 · 1 comment
Labels
bug Something isn't working hacktoberfest help wanted Extra attention is needed

Comments

@SoraShiunin
Copy link

SoraShiunin commented Apr 5, 2021

Bug details

Describe the bug
Having an issue not being able to create Shops in worldguard regions as the owner.

To Reproduce
Steps to reproduce the behavior:

  1. Get a stick + slab.
  2. Try to create a shop on a worldguard region you own.
  3. Nothing happens. Error in console. https://pastebin.com/WdKGMVrn

HOWEVER, if you have worldguard.* or are server operator it works.

Expected behavior
The Shop creation menu pops up.
``
Error Paste: https://pastebin.com/WdKGMVrn

Weird help menu in the first page only:
Screenshot_1042

Runtime Configuration

Slabbo Version: 1.0.26
Wg Version: 7.0.4

Server Software: Spigot

Server Version: 1.16.5

Other details

Additional context
Add any other context about the problem here.

@SoraShiunin SoraShiunin added the bug Something isn't working label Apr 5, 2021
@Sven65
Copy link
Owner

Sven65 commented Apr 8, 2021

Thank you for your bug report! The way support for creating shops in a WorldGuard is currently implemented is by checking if the creating user is either the owner of the region, or if the slabbo-others-create-shops flag is set to allow.

The offending line, according to your error paste is the following, and would suggest that region.getFlag() returns null, i.e, nothing.

String createShopsValue = region.getFlag(CREATE_SHOPS).toString();

I'll have a look at this when I get the chance to, and it'll probably be included with the fix for issue #35, as I need to rethink the implementation of the WG support.

@Sven65 Sven65 added hacktoberfest help wanted Extra attention is needed labels Sep 30, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working hacktoberfest help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants