Jump to content

Need help with a scoreboard


Skray

Recommended Posts

Need help how to make a scoreboard, also what plugins do I need?

Design:

&6Server Name

Name: <player's name>

Rank: <rank> (For ranks I am using Permission Ex)

Kills: <kills>

Deaths: <Deaths>

Blocks mined: <blocks mined>

 

Playtime: <Hours played>

Ip: &2Skray.minehut.gg

I also need help with this: They doesn't work.

on break:
	add 1 to {player's::blocks}
	add 1 to {server's::blocks}

loop forever:
	wait 1 hour
	add 1 to {playtime}

on kill:
	add 1 to {player's::kills}

on death:
	add 1 to {player's::death}

 

Link to comment
Share on other sites

loop forever is... a weird way of doing it.

There is currently already an existing code-like thing which shows how long a player has played on the server:

%time played of player%

You can use this like the following:

command /playtime [<offline player>]:
  trigger:
    if arg-1 is set:
      send "&2%arg-1%&2's &bplaytime is &a%time played of arg-1%"
    
    if arg-1 is not set:
      send "&bYour playtime is &a%time played of player%"

Hope this helps you out a bit!

  • Thanks 1

If I have helped you out in your post or you liked what I posted, please upvote and react to my post! It helps me a lot!

Some Minehut Links:

Server Rules • Staff Applications • News & Updates • Reports • Appeals


Minehut: VIP (07/04/2021 --> Current)
Elestra/Versa Realms: Manager (12/04/2021 --> Current)

If you have any questions contact me!
My Discord: BanditEagle#2481
My Spigot Profile: https://www.spigotmc.org/members/banditeagle.935281/
My IGN: BanditEagle

Link to comment
Share on other sites

47 minutes ago, BanditEagle said:

loop forever is... a weird way of doing it.

There is currently already an existing code-like thing which shows how long a player has played on the server:


%time played of player%

You can use this like the following:


command /playtime [<offline player>]:
  trigger:
    if arg-1 is set:
      send "&2%arg-1%&2's &bplaytime is &a%time played of arg-1%"
    
    if arg-1 is not set:
      send "&bYour playtime is &a%time played of player%"

Hope this helps you out a bit!

Can I use it in a scoreboard? (%time played of player%)

Link to comment
Share on other sites

3 minutes ago, Skray said:

Can I use it in a scoreboard? (%time played of player%)

without the brackets, yes.

  • Thanks 1

If I have helped you out in your post or you liked what I posted, please upvote and react to my post! It helps me a lot!

Some Minehut Links:

Server Rules • Staff Applications • News & Updates • Reports • Appeals


Minehut: VIP (07/04/2021 --> Current)
Elestra/Versa Realms: Manager (12/04/2021 --> Current)

If you have any questions contact me!
My Discord: BanditEagle#2481
My Spigot Profile: https://www.spigotmc.org/members/banditeagle.935281/
My IGN: BanditEagle

Link to comment
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...