APickledWalrus / skript-placeholders

Placeholder integration for Skript.
GNU General Public License v3.0
28 stars 8 forks source link

command works fine when run by the player but issues when run by console or for another player #23

Closed DaMrZ closed 3 years ago

DaMrZ commented 3 years ago

Description

I run the command as the user and the command will run successfully but when I run the command as the console I receive an error: There is no player online whose name starts with 'universal DaMrZ' /keycheck [< player >]

Steps to Reproduce

run the command as user and it will take amount of tokens then give them the relevant crate key run the command as console and receive the error

Expected Behavior

Should be able to run the command through the console for another player and have them take away tokens and be provided the key

Errors / Screenshots

There is no player online whose name starts with 'universal DaMrZ' /keycheck [< player >]

Server Information

Additional Context

code: https://pastebin.com/fQUyphfq

DaMrZ commented 3 years ago

code: https://pastebin.com/fQUyphfq

APickledWalrus commented 3 years ago

This does not seem to be related to this addon. If you are trying to allow offline players to be used with your command, you can do <offlineplayer> instead of <player>