Jump to content

A first join script (with counter)


SuperOrca

Recommended Posts

I did this for rep... pls gie rep

 

# Customization

options:
    JoinResetPerm: <insert permission here>
    JoinResetPermm: <insert permission message here>

# Join event with counter

on join:
    if {joins::*} does not contain player's uuid:
        add player's uuid to {joins::*}
        broadcast "&b%player%&r joined for the first time. &8[&b##%size of {joins::*}%&8]"

# Reset join counter

command /resetJoins:
    permission: {@JoinResetPerm}
    permission message: {@JoinResetPermm}
    trigger:
        delete {joins::*}
        send "&cDeleted all unique joins."

 

 

Edited by SuperOrca
  • Like 6
  • Thanks 1

 

like.gif.653e1b24da93a6ca10eaf5b04e7f0242.gif

Likes are appreciated ❤️

 

Username: SuperOrca

Discord: Link to Profile

Rank: [VIP]

Joined Minehut: August 10, 2017

Joined Forums: June 10, 2019

 

Experienced in Python, Java (mainly spigot), Javascript (node.js, basics of react.js), and Web Development. DM on discord me if you want a custom discord bot for your server (i'm bored).

Link to comment
Share on other sites

You don't really need the quotes or percentages around "player's uuid" 

if {joins::*} does not contain "%player's uuid%"

Apart from that, nice work!

Junior Mod (01/04/2020) - Resigned 

 Discord » Koronotchi#0001 
Minecraft Username » Koronotchi 

image.png.17a385f298c8969f6b1cf03e27ee50d3.png

 

Link to comment
Share on other sites

Quote

You don't really need the quotes or percentages around "player's uuid" 

my mistake...

Edited by SuperOrca
  • Like 3

 

like.gif.653e1b24da93a6ca10eaf5b04e7f0242.gif

Likes are appreciated ❤️

 

Username: SuperOrca

Discord: Link to Profile

Rank: [VIP]

Joined Minehut: August 10, 2017

Joined Forums: June 10, 2019

 

Experienced in Python, Java (mainly spigot), Javascript (node.js, basics of react.js), and Web Development. DM on discord me if you want a custom discord bot for your server (i'm bored).

Link to comment
Share on other sites

Skript already has an expression for this. ``%all offline players%`` gets all the players that have ever joined so you can use ``%size of all offline players%`` to see the number of unique joins.

Graphic Designer - Skript Developer - Professional Builder - Content Creator

Been on Minehut since January 2018. Throughout my time here I've mastered the skills you see above. I make free logos, banners, and server art for users on Minehut. I'm a proficient Skript developer. I'm also really good at building, you can see my portfolio by clicking here. Feel free to say hi if you see me somewhere 🙂

Amethyst Studios Discord

Link to comment
Share on other sites

4 hours ago, farwl said:

Skript already has an expression for this. ``%all offline players%`` gets all the players that have ever joined so you can use ``%size of all offline players%`` to see the number of unique joins.

because i wanted to add a reseting thing for some reason

 

like.gif.653e1b24da93a6ca10eaf5b04e7f0242.gif

Likes are appreciated ❤️

 

Username: SuperOrca

Discord: Link to Profile

Rank: [VIP]

Joined Minehut: August 10, 2017

Joined Forums: June 10, 2019

 

Experienced in Python, Java (mainly spigot), Javascript (node.js, basics of react.js), and Web Development. DM on discord me if you want a custom discord bot for your server (i'm bored).

Link to comment
Share on other sites

17 hours ago, SuperOrca said:

because i wanted to add a reseting thing for some reason

Not sure if you can but you could just ``clear all offline players`` Nice skript though.

Graphic Designer - Skript Developer - Professional Builder - Content Creator

Been on Minehut since January 2018. Throughout my time here I've mastered the skills you see above. I make free logos, banners, and server art for users on Minehut. I'm a proficient Skript developer. I'm also really good at building, you can see my portfolio by clicking here. Feel free to say hi if you see me somewhere 🙂

Amethyst Studios Discord

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