MihaiChirculete / WorldGuard

The fastest world protector in town for your PocketMine server!
GNU General Public License v3.0
58 stars 36 forks source link

BIG PROBLEM: The variable %player% does not supports names with spaces #222

Open ghost opened 3 years ago

ghost commented 3 years ago

Describe the bug the variable %player% does not support names with spaces I tried to add a permission of pureperms when entering a zone, so i put:

rg flag set Shop console-cmd-on-enter setuperm %player% levellimiter.bypass.shop

Because the syntax of pureperms to add a permission to a player is setuperm (player) (permission) (world)

I also tried to put double quote ("") besides %player% variable but does not works ("%player%")

And pureperms says "world not found" but when i put it in the chat as a normal command with double quote ("") it works perfectly so i think the variable %player% does not support names with spaces and this is a big problem

To Reproduce Steps to reproduce the behavior: This is an example, but can be reproduced with any flag that requires the variable player on a player with spaces in his name

  1. Add a permission for entering a region, for example, ' rg flag set Shop console-cmd-on-enter setuperm %player% levellimiter.bypass.shop'
  2. Login with an account with spaces in their name (e.g Julian alfonso)
  3. Pureperms will say that the world does not exists 'World levellimiter.bypass.shop does NOT exist'
  4. See error

Expected behavior Being able to execute commands as people with spaces in their name.

Screenshots If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

Additional context I explained everything.

awgybop1 commented 2 years ago

Hello,

I see the problem, I will work on getting this fixed for the console-cmd flags.