1. Welcome to skUnity!

    Welcome to skUnity! This is a forum where members of the Skript community can communicate and interact. Skript Resource Creators can post their Resources for all to see and use.

    If you haven't done so already, feel free to join our official Discord server to expand your level of interaction with the comminuty!

    Now, what are you waiting for? Join the community now!

  2. LOOKING FOR A VERSION OF SKRIPT??:

    You can always check our our Wiki for downloads and any other information about Skript!

Dismiss Notice
This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Badlion Client users get crate key for using blc

Discussion in 'Skript' started by Goose, Dec 12, 2019.

  1. Goose

    Goose Well-Known Member

    Joined:
    Nov 23, 2019
    Messages:
    184
    Likes Received:
    7
    Hey y'all, so a week a two ago somebody found a Skript server that awards people for using Labymod, and I was curious how I would be able to do this with Badlion Client users? Your help will be appreciated!
    --- Double Post Merged, Dec 13, 2019, Original Post Date: Dec 12, 2019 ---
    Bump
     
  2. ZeyKra_

    ZeyKra_ Active Member

    Joined:
    Dec 12, 2019
    Messages:
    29
    Likes Received:
    1
  3. Goose

    Goose Well-Known Member

    Joined:
    Nov 23, 2019
    Messages:
    184
    Likes Received:
    7
    I know the server used packages to detect whether or not a player is using Labymod
     
  4. ZeyKra_

    ZeyKra_ Active Member

    Joined:
    Dec 12, 2019
    Messages:
    29
    Likes Received:
    1
    i saw that with labymod

    Code (Text):
    1. import:
    2.     net.labymod.serverapi.bukkit.event.LabyModPlayerJoinEvent
    3.  
    4.  
    5. on LabyModPlayerJoinEvent:
    6.     set {_p} to event.getPlayer()
    7.     set {_uuid} to {_p}'s uuid
    8.     set {LabyMod.Use::%{_uuid}%} to true
    9.     {_p}.sendMessage("&7Thank you for using &bLabyMod&8!")    
    So i'm almost sure u can do almost the same thing with BAC
     
  5. Goose

    Goose Well-Known Member

    Joined:
    Nov 23, 2019
    Messages:
    184
    Likes Received:
    7
    There is a part of the code that says import: and then there is a package on the next line "net.labymod.serverapi.bukkit.event.LabyModPlayerJoinEvent", do I just change that package to "net.badlionclient.serverapi.bukkit.event.BadlionClientPlayerJoinEvent" or is it more complicated?
     
  6. ZeyKra_

    ZeyKra_ Active Member

    Joined:
    Dec 12, 2019
    Messages:
    29
    Likes Received:
    1
  7. Goose

    Goose Well-Known Member

    Joined:
    Nov 23, 2019
    Messages:
    184
    Likes Received:
    7
    Oof, github. Can't access Github on my school chromebook cause it is blocked. I'll check it out when I get on my home computer. Thanks for all the help.
     
  8. ZeyKra_

    ZeyKra_ Active Member

    Joined:
    Dec 12, 2019
    Messages:
    29
    Likes Received:
    1
    ok np
     
Loading...