Jump to content

Player Not Found

Not a Bug 0.1.0

MilaDust
MilaDust

Posted (edited)

I want to give user group perm via in-game story from plugin ServerRewards. After entering command "/rewards add command <name> <command> <cost> - Add a new command to the reward store - basic command" /rewards add command Ultra "tperm add %STEAMID% 30 ultra 30 true" 2, Server writes in RCON perm not found. I tried "tperm add %STEAMID% ultra 30 true"

 

Снимок экрана 2024-10-20 в 04.00.16.png

Снимок экрана 2024-10-20 в 04.01.10.png

Edited by MilaDust
MilaDust

Posted

If i use there "tperm add %STEAMID% ultra 30 true" - Then user not found, if i use "o.usergroup add %STEAMID%  30 true" then just "Player '%STEAMID%' not found". I made a mistake above in code.

IIIaKa

Posted

Changed Status from Pending to Work in Progress

IIIaKa

Posted (edited)

@MilaDust
Hello, try using $player.id instead of %STEAMID%. When calling commands in the ServerRewards plugin, it replaces $player.id with the userID.

o.usergroup add $player.id ultra 30


DvmAZyu.png

9zzTGnG.png

Edited by IIIaKa
  • Love 1
IIIaKa

Posted

Yes, the variable %STEAMID% does not exist. Here’s an example with the command: "say $player.id %STEAMID%"

5eQgxQV.png

  • Love 1
IIIaKa

Posted

Changed Status from Work in Progress to Not a Bug

  • Love 1
IIIaKa

Posted

If the issue persists, feel free to report it in this thread.

  • Love 1
1.4m

Downloads

Total number of downloads.

6.9k

Customers

Total customers served.

102.2k

Files Sold

Total number of files sold.

2m

Payments Processed

Total payments processed.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.