Jump to content

Command execution whilst claiming kit not working for non-admins

Pending 2.2.21

MancDad
  • in Kits
MancDad

Posted

Hi - I've a prestige kit that contains an item to give RP upon claim.

The command is /rp add %username% <value>

This works ... but only if an administrator claims the kit... Checking (server rewards plugin) it's clear that you need Admin perms to execute this this command. 

Is there a way to have the kits plugin execute commands as "admin" authority so that default players can claim this item ? 

Thanks

MeventSupport

Posted

Hi. I can assume that you are using the chat command, and you need to use the console command (they are run on behalf of the server)

  • Like 1
MancDad

Posted

Hey - really sorry for the delay responding ... Still an issue - 2 players have both just levelled up and can now claim this kit... They get the contents but not the RP
image.png.6d5bfcd42b387f4e776aaf6fe2fd1ec2.png

 

MancDad

Posted

But when an Admin account claims the kit the command executes no problem !?

 

  • Curator
Mevent

Posted

Hey! rp is a chat command — it checks player permissions. Use the ServerRewards console command instead:

sr add %steamid% 100000

Replace rp with sr and %username% with %steamid% in your kit's "Commands on receiving" field. That'll fix it for non-admin players.

2.2m

Downloads

Total number of downloads.

10.3k

Customers

Total customers served.

149.6k

Files Sold

Total number of files sold.

3.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.