lofi-enjoyer / NubladaTowns

Immersive protection plugin without commands.
MIT License
3 stars 1 forks source link

[BUG] Can't add new role #51

Open DrJekyllH opened 4 days ago

DrJekyllH commented 4 days ago

After adding the first role, when second role is added, role-already-exists is displayed in the chat box, and the role cannot be added. Incidentally, when checking the lectern at this point, the first role name is blank.

After restarting the server, the roles “permissions” and “players” appear on this screen.

In this state, after allowing role-editor-edit-manage-roles in permissions and assigning a player, the same operation cannot add a role.

image

lofi-enjoyer commented 4 days ago

I cannot reproduce it. Could you explain more specifically the steps to do it? Thanks!

DrJekyllH commented 3 days ago
  1. Install the plug-in and start the server
  2. Create a banner, name it with an anvil, and make a copy of it on the workbench
  3. Put the flag on the ground and create the city.
  4. Name the paper with an anvil
  5. Hold the paper in the hand and interact with the lectern
  6. View the role list (image below)
  7. Restart the server
  8. View the role list (image above)

version: Paper 1.21

image

lofi-enjoyer commented 3 days ago

What's the name of the role you want to create?

DrJekyllH commented 3 days ago

I tried to name three times: "test", "税務官", and "aaaa". On all three times, the server had been started by deleting the plugin data and installing the plugin each time.

lofi-enjoyer commented 3 days ago

Still cannot reproduce it. Both "test" and "aaaa" work fine, and "税務官" just gives the only-alphanumeric error and the role is not created. I'll take a deeper look into it and see if I find the issue.

DrJekyllH commented 3 days ago

In my environment, both CJK and alphabetic characters are logged as shown in the image. Nothing is displayed in the console.

image

DrJekyllH commented 3 days ago

Oh, I found a conflict with a certain chat related plugin. It appears that the plugin is preventing the chat data from being passed to this plugin. I will ask the author of the plugin that caused the problem.