Solved Where are these strings coming from?!

  • 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!

  • LOOKING FOR A VERSION OF SKRIPT?

    You can always check out skUnity Downloads for downloads and any other information about Skript!

Status
Not open for further replies.

GamingDay

Member
May 28, 2020
4
0
0
23
I have downloaded someone's PunishGUI script some time ago and I wanted to edit it.
I wanted to change this
4JjQOOF.png

To: "Ban Duration: 30 Days" (not 30.0)
So I changed it in the only 2 places I've found that string but still nothing has changed. Can someone have a look at it and tell me what I'm missing?
Code:
command /p [<offline player>] [<text>]:
    aliases: /punish
    permission: mecraft.staff
    permission message: "&c&l[Anti-Cheat] &8&l» &4You do not have access to that command."
    trigger:
        if arg-2 is not set:
            send "&c&l[Anti-Cheat] &8&l» &cUsage &8&l» &7/punish <player> <reason>"
        if arg-2 is set:
            if {%arg-1%::clear::punishchat1} is not set:
                set {%arg-1%::clear::punishclient3} to "tempban %arg-1% 30d"
                set {%arg-1%::clear::punishclientlore3} to "&fBan Duration: &e30 Days" parsed as text
                set {%arg-1%::clear::punishclient2} to "tempban %arg-1% 7d"
                set {%arg-1%::clear::punishclientlore2} to "&fBan Duration: &e7 Days" parsed as text
                set {%arg-1%::clear::punishclient1} to "tempban %arg-1% 1d"
                set {%arg-1%::clear::punishclientlore1} to "&fBan Duration: &e1 Day"
                
                set {%arg-1%::clear::punishgeneral1} to "tempban %arg-1% 30d"
                set {%arg-1%::clear::punishgenerallore1} to "&fBan Duration: &e30 Days"
                
                set {%arg-1%::clear::punishchat1} to "tempmute %arg-1% 1h"
                set {%arg-1%::clear::punishchatlore1} to "&fMute Duration: &e1 Hour"
                set {%arg-1%::clear::punishchat2} to "tempmute %arg-1% 1d"
                set {%arg-1%::clear::punishchatlore2} to "&fMute Duration: &e1 Days"
                set {%arg-1%::clear::punishchat3} to "tempmute %arg-1% 7d"
                set {%arg-1%::clear::punishchatlore3} to "&fMute Duration: &e7 Days"
            if {punish.%arg-1%.pastOffences::chat1} is not set:
                set {punish.%arg-1%.pastOffences::chat1} to 0
                set {punish.%arg-1%.pastOffences::chat2} to 0
                set {punish.%arg-1%.pastOffences::chat3} to 0
                set {punish.%arg-1%.pastOffences::general1} to 0
                set {punish.%arg-1%.pastOffences::client1} to 0
                set {punish.%arg-1%.pastOffences::client2} to 0
                set {punish.%arg-1%.pastOffences::client3} to 0
            if "{@notPunishable}" contains "%arg-1%":
                send "&c&l[Anti-Cheat] &8&l» &cYou can't punish %arg-1% (STAFF)!"
            else:
                if player has permission "mecraft.rank.moderator": #Access to only severity 1 punishments!
                    open chest with 6 rows named "Punish %arg-1%" to player
                    wait 3 tick
                    format slot 4 of player with arg-1's skull named "&a&l%arg-1%" with lore "&r%arg-2%" to be unstealable
        
                    format slot 10 of player with book and quill named "&a&lChat Offense" with lore "&7Verbal Abuse, Spam, Harrassment" to be unstealable
                    format slot 19 of player with cactus green named "&a&lSeverity 1" with lore "&fPast Offences: &e%{punish.%arg-1%.pastOffences::chat1}%||%{%arg-1%::clear::punishchatlore1}%||||&7Spam||&f   Sending the same message 5-10 times||||&7Advertising||&f   'Join this/my server: 420.69.0.2:25565'||||&7Hackusations||&f   'GamingDay has killaura!'||||&eIf player has 0 past offences tempwarn||&ehim first for 1 second" to close then run [make player execute command "%{%arg-1%::clear::punishchat1}% %arg-2%"]->[add "&ePunishment Type: &fChat Offense||&eSeverity: &f1||||&eReason: &f%arg-2%||||||&eStaff: &f%player%||||&eDate: &f%now%" to {punish.%arg-1%.history::*}]->[set {%arg-1%::clear::punishchat1} to "tempmute %arg-1% 1h"]->[set {%arg-1%::clear::punishchatlore1} to "&fMute Duration: &e1 Hour"]->[add 1 to {punish.%arg-1%.pastOffences::chat1}]->[log "%player% > Muted %arg-1% for ""%arg-2%"". [Punishment Type: Chat Offense (SEVERITY 1)]" to "punishments/%arg-1% - %UUID of arg-1%.log"]
        
                    format slot 14 of player with iron sword named "&a&lClient Mod" with lore "&7X-Ray, KillAura, Speed, Fly etc" to be unstealable
                    format slot 23 of player with cactus green named "&a&lSeverity 1" with lore "&fPast Offences: &e%{punish.%arg-1%.pastOffences::client1}%||%{%arg-1%::clear::punishclientlore1}%||||&7Light Cheats:||&f   Damage Indicators||&f   PlayerESP||&f   X-Ray" to close then run [make player execute command "%{%arg-1%::clear::punishclient1}% %arg-2%"]->[add "&ePunishment Type: &fClient Mod||&eSeverity: &f1||||&eReason: &f%arg-2%||||||&eStaff: &f%player%||||&eDate: &f%now%" to {punish.%arg-1%.history::*}]->[set {%arg-1%::clear::punishclient1} to "tempban %arg-1% 1d"]->[set {%arg-1%::clear::punishclientlore1} to "&fBan Duration: &e1 Day"]->[add 1 to {punish.%arg-1%.pastOffences::client1}]->[log "%player% > Banned %arg-1% for ""%arg-2%"" [Punishment Type: Client Mod (SEVERITY 1)]" to "punishments/%arg-1% - %UUID of arg-1%.log"]
            
                    format slot 25 of player with paper named "&a&lWarning" with lore "||&7Example Warning Input:||&f   Spam - Spam in chat||&f   Chat abuse - Disrespecting players/staff||&f   Hackusations - Accusing players of cheating" to close then run [make player execute command "tempwarn %arg-1% 1s %arg-2%"]->[add "&ePunishment Type: &fWarning||||&eReason: &f%arg-2%||||||&eStaff: &f%player%||||&eDate: &f%now%" to {punish.%arg-1%.history::*}]->[log "%player% > Warned %arg-1% for ""%arg-2%"" [Punishment Type: Warning]" to "punishments/%arg-1% - %UUID of arg-1%.log"]

                    set {_slot} to 53
                    loop {punish.%arg-1%.history::*}:
                        if "%loop-value%" contains "&ePunishment Type: &fChat Offense":
                            format slot {_slot} of player with book and quill named "&a&lChat Offense" with lore "%loop-value%" to be unstealable
                            remove 1 from {_slot}
                        if "%loop-value%" contains "&ePunishment Type: &fClient Mod":
                            format slot {_slot} of player with iron sword named "&a&lClient Mod" with lore "%loop-value%" to be unstealable
                            remove 1 from {_slot}
                        if "%loop-value%" contains "&ePunishment Type: &fGeneral Offense":
                            format slot {_slot} of player with hopper named "&a&lGeneral Offense" with lore "%loop-value%" to be unstealable
                            remove 1 from {_slot}
                        if "%loop-value%" contains "&ePunishment Type: &fWarning":
                            format slot {_slot} of player with paper named "&a&lWarning" with lore "%loop-value%" to be unstealable
                            remove 1 from {_slot}
                        if "%loop-value%" contains "&ePunishment Type: &fPermanent Mute":
                            format slot {_slot} of player with book and quill named "&a&lPermanent Mute" with lore "%loop-value%" to be unstealable
                            remove 1 from {_slot}
                        if "%loop-value%" contains "&ePunishment Type: &fPermanent Ban":
                            format slot {_slot} of player with redstone block named "&a&lPermanent Ban" with lore "%loop-value%" to be unstealable
                            remove 1 from {_slot}
                        if {_slot} = 44:
                            exit loop
                    if player has permission "mecraft.rank.admin" or "mecraft.rank.owner": #Access all punishments!
                        format slot 12 of player with hopper named "&a&lExploiting/Scamming" with lore "&7Bug abuse, exploiting, phishing, scamming" to be unstealable
                        format slot 21 of player with dandelion yellow named "&a&lSeverity 2" with lore "&rPast Offences: &e%{punish.%arg-1%.pastOffences::general1}%||%{%arg-1%::clear::punishgenerallore1}%||||&7Scamming/Phishing||&f   Phishing or scamming other players||||&7Bug abuse/Exploiting||&f   Using bugs/exploits to gain a significant||&f   advantage||||&eOnly use this punishment if provided with||&eevidence beyond a reasonable doubt" to close then run [make player execute command "%{%arg-1%::clear::punishgeneral1}% %arg-2%"]->[add "&ePunishment Type: &fExploiting/Scamming||&eSeverity: &f2||||&eReason: &f%arg-2%||||||&eStaff: &f%player%||||&eDate: &f%now%" to {punish.%arg-1%.history::*}]->[set {%arg-1%::clear::punishgeneral1} to "tempban %arg-1% 30d"]->[set {%arg-1%::clear::punishgenerallore1} to "&fBan Duration: &e30 Days"]->[add 1 to {punish.%arg-1%.pastOffences::general1}]->[log "%player% > Banned %arg-1% for ""%arg-2%"" [Punishment Type: Exploiting/Scamming]" to "punishments/%arg-1% - %UUID of arg-1%.log"]
                        format slot 30 of player with rose red named "&a&lSeverity 3" with lore "&rPast Offences: &e%{punish.%arg-1%.pastOffences::general1}%||%{%arg-1%::clear::punishgenerallore1}%||||&7Scamming/Phishing||&f   Phishing or scamming other players||||&7Bug abuse/Exploiting||&f   Using bugs/exploits to gain a significant||&f   advantage||||&eOnly use this punishment if this is %arg-1%'s||&esecond offence and if provided with evidence||&ebeyond a reasonable doubt" to close then run [make player execute command "%{%arg-1%::clear::punishgeneral1}% %arg-2%"]->[add "&ePunishment Type: &fExploiting/Scamming||&eSeverity: &f3||||&eReason: &f%arg-2%||||||&eStaff: &f%player%||||&eDate: &f%now%" to {punish.%arg-1%.history::*}]->[set {%arg-1%::clear::punishgeneral1} to "ban %arg-1%"]->[set {%arg-1%::clear::punishgenerallore1} to "&fBan Duration: &cPermanent"]->[add 1 to {punish.%arg-1%.pastOffences::general1}]->[log "%player% > Banned %arg-1% for ""%arg-2%"" [Punishment Type: Exploiting/Scamming]" to "punishments/%arg-1% - %UUID of arg-1%.log"]
                        
                        format slot 28 of player with dandelion yellow named "&a&lSeverity 2" with lore "&fPast Offences: &e%{punish.%arg-1%.pastOffences::chat2}%||%{%arg-1%::clear::punishchatlore2}%||||&7Spam||&f   Sending the same message 5-10 times||||&7Advertising||&f   'Join this/my server: 420.69.0.2:25565'||||&7Hackusations||&f   'GamingDay has killaura!'||||&eUse this punishment if player has been||&epunished with severity 1 before" to close then run [make player execute command "%{%arg-1%::clear::punishchat2}% %arg-2%"]->[add "&ePunishment Type: &fChat Offense||&eSeverity: &f2||||&eReason: &f%arg-2%||||||&eStaff: &f%player%||||&eDate: &f%now%" to {punish.%arg-1%.history::*}]->[set {%arg-1%::clear::punishchat2} to "tempmute %arg-1% 1d"]->[set {%arg-1%::clear::punishchatlore2} to "&fMute Duration: &e1 Day"]->[add 1 to {punish.%arg-1%.pastOffences::chat2}]->[log "%player% > Muted %arg-1% for ""%arg-2%"" [Punishment Type: Chat Offense (SEVERITY 2)]" to "punishments/%arg-1% - %UUID of arg-1%.log"]
                        format slot 37 of player with rose red named "&a&lSeverity 3" with lore "&fPast Offences: &e%{punish.%arg-1%.pastOffences::chat2}%||%{%arg-1%::clear::punishchatlore2}%||||&7Spam||&f   Sending the same message 5-10 times||||&7Advertising||&f   'Join this/my server: 420.69.0.2:25565'||||&7Hackusations||&f   'GamingDay has killaura!'||||&eUse this punishment if player has been||&epunished with severity 2 before" to close then run [make player execute command "%{%arg-1%::clear::punishchat3}% %arg-2%"]->[add "&ePunishment Type: &fChat Offense||&eSeverity: &f3||||&eReason: &f%arg-2%||||||&eStaff: &f%player%||||&eDate: &f%now%" to {punish.%arg-1%.history::*}]->[set {%arg-1%::clear::punishchat3} to "tempmute %arg-1% 7d"]->[set {%arg-1%::clear::punishchatlore3} to "&fMute Duration: &e7 Days"]->[add 1 to {punish.%arg-1%.pastOffences::chat3}]->[log "%player% > Muted %arg-1% for ""%arg-2%"" [Punishment Type: Chat Offense (SEVERITY 3)]" to "punishments/%arg-1% - %UUID of arg-1%.log"]

                        format slot 32 of player with dandelion yellow named "&a&lSeverity 2" with lore "&fPast Offences: &e%{punish.%arg-1%.pastOffences::client2}%||%{%arg-1%::clear::punishclientlore2}%||||&7Cheats:||   &fCombat Cheats||   &fMovement Cheats||   &fOther Cheats" to close then run [make player execute command "%{%arg-1%::clear::punishclient2}% %arg-2%"]->[add "&ePunishment Type: &fClient Mod||&eSeverity: &f2||||&eReason: &f%arg-2%||||||&eStaff: &f%player%||||&eDate: &f%now%" to {punish.%arg-1%.history::*}]->[set {%arg-1%::clear::punishclient2} to "ban %arg-1%" parsed as text]->[set {%arg-1%::clear::punishclientlore2} to "&fBan Duration: &cPermanent"]->[add 1 to {punish.%arg-1%.pastOffences::client2}]->[log "%player% > Banned %arg-1% for %arg-2% [Punishment Type: Client Mod (SEVERITY 2)]" to "punishments/%arg-1% - %UUID of arg-1%.log"]
                        format slot 41 of player with rose red named "&a&lSeverity 3" with lore "&fPast Offences: &e%{punish.%arg-1%.pastOffences::client3}%||%{%arg-1%::clear::punishclientlore3}%||||&7Cheats:||   &fCombat Cheats||   &fMovement Cheats||   &fOther Cheats||||&eUse this punishment if player has been||&epunished with severity 2 before" to close then run [make player execute command "%{%arg-1%::clear::punishclient3}% %arg-2%"]->[add "&ePunishment Type: &fClient Mod||&eSeverity: &f3||||&eReason: &f%arg-2%||||||&eStaff: &f%player%||||&eDate: &f%now%" to {punish.%arg-1%.history::*}]->[set {%arg-1%::clear::punishclient3} to "tempban %arg-1% 30d"]->[set {%arg-1%::clear::punishclientlore3} to "&fBan Duration: &e30 Days" parsed as text]->[add 1 to {punish.%arg-1%.pastOffences::client3}]->[log "%player% > Banned %arg-1% for ""%arg-2%"" [Punishment Type: Client Mod (SEVERITY 3)]" to "punishments/%arg-1% - %UUID of arg-1%.log"]
                        
                        format slot 43 of player with book and quill named "&a&lPermanent Mute" with lore "&fMute Duration: &cPermanent||||&2Must supply detailed reason for Mute." to close then run [make player execute command "mute %arg-1% %arg-2%"]->[add "&ePunishment Type: &fPermanent Mute||||&eReason: &f%arg-2%||||||&eStaff: &f%player%||||&eDate: &f%now%" to {punish.%arg-1%.history::*}]->[log "%player% > Muted %arg-1% for ""%arg-2%"" [Punishment Type: Permanent Mute (SEVERITY 4)]" to "punishments/%arg-1% - %UUID of arg-1%.log"]
                        format slot 34 of player with redstone block named "&a&lPermanent Ban" with lore "&fBan Duration: &cPermanent||||&2Must supply a detailed reason for Ban." to close then run [make player execute command "ban %arg-1% %arg-2%"]->[add "&ePunishment Type: &fPermanent Ban||||&eReason: &f%arg-2%||||||&eStaff: &f%player%||||&eDate: &f%now%" to {punish.%arg-1%.history::*}]->[log "%player% > Banned %arg-1% for ""%arg-2%"" [Punishment Type: Permanent Ban (SEVERITY 4)]" to "punishments/%arg-1% - %UUID of arg-1%.log"]
[doublepost=1596449330,1596419454][/doublepost]Nevermind, fixed it. I just had to delete the variables.csv file in the Skript folder.
 
Status
Not open for further replies.