Jump to content

xX__Strqfe__Xx

Member
  • Posts

    39
  • Joined

  • Last visited

  • Days Won

    3

Posts posted by xX__Strqfe__Xx

  1. on join:
    	if {totaljoins::*} does not contain player:
    		
    		
    	
    		
    	
    	add 1 to {totaljoins::*} 
    	broadcast "&2&l(SERVER NAME) &8» &a%player% &7has joined the server for the first time! &8{totaljoins::*}"

    It looks odd because I used skunity parser https://parser.skunity.com/ and I used the "smartfix" for the empty configuration section

  2. On 6/11/2019 at 3:46 AM, Swayl said:
    • Better Reports - Every report is logged in a GUI. Which can be cleared easily. This script is easy to edit.
    • 48 lines of script. So I'd say it's very light weight, Shouldn't lag your server.
    • Permissions
    1. staff - This player will be alerted when a report is made. Basically my permission node for the staff team.

     

    • Pictures

     image.png.60a1916d6c28377d9e255f8e8e98a31e.png      

    • These ar e the messages sent to players and the player with the permission "staff"

     

    image.png.aa5435ebac947a2e31f730717684896a.png

    • Once you execute the command /reports (Only players with the permission "staff" has access). This will show up, and once you hover it, It'll show the player who reported the player, and it's reason.

     

    image.png.82bb88dbfaf5eefa7562947eb3564a5c.png

    • On the bottom-right corner, You'll see an empty map called Clear Reports... It's pretty much self-explanatory but, Once you click it, It'll delete all the reports and refresh the GUI.

     

     

    image.png.d0a39d963dd7bca08125a57a229b6f69.png

    • Everytime the GUI is empty, this will show up. This will also show up once you've cleared all the reports.

     

     

    Script (48 lines):

    
    options:
        prefix: &3[Reports]
        staff: staff
        no-perm: &cNo permission.
        gui-name: &3Reports &lGUI
    
    command /report [<offline player>] [<text>]:
        trigger:
            if arg 1 is set:
                if arg 2 is set:
                    add arg-1 to {reports::players::*}
                    set {reports::reason::%arg-1%} to arg 2
                    set {reports::reporter::%arg-1%} to player
                    send "{@prefix} &7Sucessfully reported &e%arg-1% &7for &e%arg-2%&7."
                    send "{@prefix} &7A new file has been made against &e%arg-1%&7. Check /reports." to all players where [input has permission "staff"]
                else:
                    send "{@prefix} &7Please provide a reason."
            else:
                send "{@prefix} &7Please provide a player."
    
    command /reports [<text>]:
        permission: {@staff}
        permission message: {@no-perm}
        trigger:
            send "{@prefix} &7Opening the report gui..."
            wait 1 tick
            reports(player)
    
    function reports(p: player):
        open virtual chest inventory with size 6 named "{@gui-name}" to {_p}
        set {_n} to 0
        if {reports::players::*} is set:
            loop {reports::players::*}:
                format gui slot {_n} of {_p} with ("%loop-value%" parsed as offline player)'s skull with no nbt named "&3%loop-value%" with lore "&7Reason&8: &3%{reports::reason::%loop-value%}%" and "&7Reporter&8: &3%{reports::reporter::%loop-value%}%"
                add 1 to {_n}
                if {_n} = 53:
                    stop loop
        else:
            format gui slot 0 of {_p} with paper with no nbt named "&7None." with lore "&7Currently no reports." to do nothing
    		
        format gui slot 53 of {_p} with empty map with no nbt named "&6Clear Reports" to run:
            close player's inventory
            loop {reports::players::*}:
                delete {reports::reason::%loop-value%}
                delete {reports::reporter::%loop-value%}
            wait 1 tick
            clear {reports::players::*}
            reports({_p})

     

    ENJOY! Thank you for reading! ♥️😘

      Reveal hidden contents

    alzo is fat.. shh, if you see this. say "alzo is fat" in the comments ❤️

     

     

    +rep for the effort

  3. On 1/30/2020 at 12:22 PM, Koroonotchii said:

    Firstly, you don't actually need "of player" at the end of the event, you can just do "on join" and "on first join". Secondly, you haven't called the arguments correctly, you need to use percentages.
     

    
    on join:
      broadcast " [Server Name Here] >> &cWelcome %player% to the server!"
    on first join:
      broadcast "&c&oSPECIAL ANNOUNCEMENT >> [Server Name Here] >> %player% has joined for the first time!"

     

    Ok Thank you! I will fix it.

    • Like 1
  4. I decided to make a simple Welcome Announcement. Here it is.

    on join:
      broadcast "[Server Name Here] >> &cWelcome %player% to the server!"
    on first join:
      broadcast "&c&oSPECIAL ANNOUNCEMENT >> [Server Name Here] >> %player% has joined for the first time!"

     

  5. 36 minutes ago, Koroonotchii said:

    Make sure that you have skQuery

    Also for the OP, I would recommend using TuSKe GUIs instead of skQuery GUIs because they are more reliable and efficient. If you would like a tutorial on how to use TuSKe GUIs then I would recommend watching this tutorial

     

    Ok thank you.

    • Like 1
  6. People can bypass a mute with /me or /minecraft:me. So I created a /me blocker that ACTUALLY works, unlike Ezekia's. (not tryna start drama Ezekia!)

    here it is.

    command /me:
      trigger:
        send "no" 
    command /minecraft:me:
      trigger:
        send "no" 

    you can change what message you send to the player that tries to bypass the mute.

  7. "Command Event cannot be Canceled" or something like that, that is a error I recieve.

    Edit: I made my own, if you need the skript, here it is.

    command /me:
      trigger:
        send "no" 
    command /minecraft:me:
      trigger:
        send "no" 

     

  8. People have to make their own /spawn command. So I made my own just for y'all! (Note: I am very bad at skript.)

     

    command /setspawn:
      permission: op
      trigger:
        set {spawn} to location of block at location of player
        send "Set Spawn Location to %{spawn}%"
    command /spawn:
     trigger:
      teleport player to {spawn}
      send to player "&c&oYou have been teleported to spawn."

     

    • Like 4
    • Thanks 1
    • Confused 1
×
×
  • Create New...