APickledWalrus / skript-placeholders

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

<none> from console #17

Closed arts7493 closed 3 years ago

arts7493 commented 3 years ago

can't get value from console it works from player

Description

Steps to Reproduce

command /testcommand: trigger: set {_test} to placeholder "~~" from sender message "%{_test}%"

Expected Behavior

Errors / Screenshots

Server Information

Additional Context

APickledWalrus commented 3 years ago

It is not currently possible to get a placeholder from/using the console

APickledWalrus commented 3 years ago

I should expand on this:

If your placeholder doesn't need a player to work, you should just be able to leave it blank.

For example, with the placeholder server_tps from the Server expansion, you do not need to provide a player to get the value. You could use the following code:

command /test:
    trigger:
        set {_p} to parse placeholder "server_tps"
        send "RESULT: '%{_p}%'" to player

This code will function properly :) If you have any issues with this, let me know.