Jump to content

Skript scoreboards and placeholders


Recommended Posts

I NEED HELP

so i am running the skript 

 

#on papi placeholder request with prefix "something":
  #  if identifier is "hello":
    #    set result to "%{balance::%player's uuid%}%"
#this is somthing else i was just trying i dont think it worked though
on join:
    set {_p} to placeholder "gemseconomy_balance_coin" from player


on join:
    set title of player's scoreboard to "&6&lServer Info"
    while player is online:
        set line 1 of player's scoreboard to "&7• &eOnline: &f%size of all players%"
        set line 2 of player's scoreboard to "&7• &eCurrent money: &f%{_p}%"
        wait 1 second

 

 

my plugins R skbee, essentials, gemseconomy, skript, skript placeholders, placeholderapi,Tuske, luckperms and essentials chat 

 

there is no error message it just shows "<none>" one the scoreboard

if any 1 know why please let me know or if you have the time just fix what i did wrong thankyou

Link to post
Share on other sites
4 hours ago, siryolothe2 said:

I NEED HELP

so i am running the skript 

 

#on papi placeholder request with prefix "something":
  #  if identifier is "hello":
    #    set result to "%{balance::%player's uuid%}%"
#this is somthing else i was just trying i dont think it worked though
on join:
    set {_p} to placeholder "gemseconomy_balance_coin" from player


on join:
    set title of player's scoreboard to "&6&lServer Info"
    while player is online:
        set line 1 of player's scoreboard to "&7• &eOnline: &f%size of all players%"
        set line 2 of player's scoreboard to "&7• &eCurrent money: &f%{_p}%"
        wait 1 second

 

 

my plugins R skbee, essentials, gemseconomy, skript, skript placeholders, placeholderapi,Tuske, luckperms and essentials chat 

 

there is no error message it just shows "<none>" one the scoreboard

if any 1 know why please let me know or if you have the time just fix what i did wrong thankyou

You should only use/make PlaceholderAPI placeholders if you require information such as play time, or skript related data in an external plugin such as KiteBoard, TAB REBORN, etc.

In this case, making custom placeholders isn't necessary because if you have Vault installed and enabled with GemsEconomy, you could directly use player's balance to get player's money.

Also, just noticed that you tried to set a local variable in a player join event which is only available within the event, and not outside of that.

If you wish to use the placeholder, do it as follows:

on join:
    set title of player's scoreboard to "&6&lServer Info"
    while player is online:
        set line 1 of player's scoreboard to "&7• &eOnline: &f%size of all players%"
        # set a variable to the placeholder
        set {_money} to placeholder "%%gemseconomy_balance_coin%%" from player
        # use the variable as follows
        set line 2 of player's scoreboard to "&7• &eCurrent money: &f%{_money}%"
        wait 1 second

 

Hello there! If you're reading this, hope you're having a wonderful day!

 

Feel free to contact me via Discord (CoolProgrammer#1920) for any help.

My DMs are always open for help.

You can also message via. forum messages for help.

1604908226_ScreenShot2021-01-28at10_32_28AM.png.2646ad6be239a9d0756a99e8e15602ab.png

Also, don't hesitate to leave a like on my post if I helped you in any way.

Link to post
Share on other sites
  • 5 weeks later...
On 5/4/2021 at 10:08 PM, siryolothe2 said:

Oh My gosh thanks sooo much cool programer

 

 

No problem.

3 hours ago, siryolothe2 said:

@CoolProgrammer nvm doest work sad

 

 

 

 

It might be because you haven't installed the GemsEconomy PlaceholderAPI expansion. Or even if you have, it might have got reset after your server was hibernated. This is a known bug on Minehut, and is being worked on. This is how I fix it using Skript:

enable:
    console command "papi ecloud download GemsEconomy"
    wait 2 seconds
    console command "papi ecloud download Vault"
    wait 2 seconds
    console command "papi reload"

In-case you are talking about the scoreboard not working: If by any chance, you have skRayFall installed, go to /plugins/skRayFall/config.yml and change the enableFastScoreBoards option to false. Once that's done, restart your server and the scoreboard should work.

 

P.S. I'm still not sure what the problem is, can you tell me what's wrong and what doesn't work?

Hello there! If you're reading this, hope you're having a wonderful day!

 

Feel free to contact me via Discord (CoolProgrammer#1920) for any help.

My DMs are always open for help.

You can also message via. forum messages for help.

1604908226_ScreenShot2021-01-28at10_32_28AM.png.2646ad6be239a9d0756a99e8e15602ab.png

Also, don't hesitate to leave a like on my post if I helped you in any way.

Link to post
Share on other sites

Ok i did what you said also i switched to normal essentials eco and just changed the placeholder so i am running

 

on join:
    set title of player's scoreboard to "&6&lServer Info"
    while player is online:
        set line 1 of player's scoreboard to "&7• &eOnline: &f%size of all players%"
        # set a variable to the placeholder
        set {_money} to placeholder "%%essentials_worth%%" from player
        # use the variable as follows
        set line 2 of player's scoreboard to "&7• &eCurrent money: &f$%{_money}%"
        wait 1 second
 

 

 

and on the scoreboard it is just displaying <none> even though i know i have money please help if you can 🙂

 

siryolothe2

Link to post
Share on other sites
9 hours ago, siryolothe2 said:

Ok i did what you said also i switched to normal essentials eco and just changed the placeholder so i am running

 

on join:
    set title of player's scoreboard to "&6&lServer Info"
    while player is online:
        set line 1 of player's scoreboard to "&7• &eOnline: &f%size of all players%"
        # set a variable to the placeholder
        set {_money} to placeholder "%%essentials_worth%%" from player
        # use the variable as follows
        set line 2 of player's scoreboard to "&7• &eCurrent money: &f$%{_money}%"
        wait 1 second
 

 

 

and on the scoreboard it is just displaying <none> even though i know i have money please help if you can 🙂

 

siryolothe2

You have to install the Essentials PlaceholderAPI expansion for it to work.

Do the following commands:

-> /papi ecloud download Essentials

-> /papi reload

That should work.

You can also use Vault instead of Essentials.

-> /papi ecloud download Vault

-> /papi reload

And then use %vault_eco_balance%.

  • Thanks 1

Hello there! If you're reading this, hope you're having a wonderful day!

 

Feel free to contact me via Discord (CoolProgrammer#1920) for any help.

My DMs are always open for help.

You can also message via. forum messages for help.

1604908226_ScreenShot2021-01-28at10_32_28AM.png.2646ad6be239a9d0756a99e8e15602ab.png

Also, don't hesitate to leave a like on my post if I helped you in any way.

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now


×
×
  • Create New...