Jump to content

Creating free skripts for the community (Give me ideas)


Wynandus

Recommended Posts

Create a skript punishment GUI.

Start your Minecraft server today for as low as £0.50/weekly for up to 4 GB of RAM! (£3.50 Monthly) and be equipped for all situations with our high-performance gear keeping your servers running 24/7

Why choose Us?
• Guaranteed 99.9% Uptime
• NVMe RAID Fast Storage
• 24/7 Hosting
• Instant Setup
• 50% Discount. Use Code: 50OFF (Ends on November 11th)

We want to ensure our customers are happy with the service they received and support. We aim to provide low-costs those who cant afford a minecraft server. No extra costs, no setup fees! One-time payment and you are good to go with our instant setup feature we introduced to ensure your server is ready to go!

Planning to make a community or a project you want to work on? We got you covered! Our servers are optimized for performance and security, so you can have peace of mind and focus on your project. Our servers are also reliable and packed with features, so you can start playing right away.

We guarantee 99% uptime and 24/7 customer support, so you can always ask for help if you need it.

Links:
https://forums.valknet.org
https://billing.valknet.org
Invite: https://discord.gg/FqSRt4ZCAC

Link to comment
Share on other sites

Remake Fortnite's building system lmao.

  • Haha 1

Things to know about me

• I have 2 years of skript experience

• I work on my servers all by myself
• I like being alone

• I have insane trust issues

• I simp for alot of people (trying my best not to)

• My mental age is somewhere 8

• I dont like meeting new people

• Very toxic

 

Discord Swayl#0099

MC IGN - Swayl

(I suggest avoiding me because I get too attached to people quick)

Link to comment
Share on other sites

Make a chat skript with broadcasting. Here are some ideas:

  • You can choose what kind of broadcast you want.
  • You can (un)mute the chat.
  • You can clear the chat.
  • -s tag for when you want to be anonymous.
  • A way to reload the skript.

I hope you like the idea of this skript.

I already forked[1] something like this from another skript I found, but I won't say which one.

 

[1]: Fork: To get a project (usually open-source) and make tweaks.

Loading signature...
duh.gif.8b527aec819aa6aec1163679bc32d922.gif

Link to comment
Share on other sites

1 hour ago, NitroRayZ said:

when you tpye [item] in chat itll output the held item, or make a skript to make elytras semi work in versions prior to 1.9

on chat:
    if message contains "[item]":
        cancel event
        player is not holding air
        set {_count} to amount of player's held item in player's inventory
        if player's tool is enchanted:
            if line 1 of lore of player's tool is set:
                replace all "[item]" in message with "&8[<tooltip:&e%tool's name ? type of tool% &8(&f%{_count}%x&8)%nl%&7%tool's enchantments%%nl%%tool's lore%>&f%{_count}%x %name of tool ? type of tool%&8]&7"
            else:
                replace all "[item]" in message with "&8[<tooltip:&e%tool's name ? type of tool% &8(&f%{_count}%x&8)%nl%%tool's enchantments%%nl%&7No Lores.>&f%{_count}%x %name of tool ? type of tool%&8]&7"
        if player's tool is not enchanted:
            if line 1 of lore of player's tool is set:
                replace all "[item]" in message with "&8[<tooltip:&e%tool's name ? type of tool% &8(&f%{_count}%x&8)%nl%&7No Enchantments.%nl%%tool's lore%>&f%{_count}%x %name of tool ? type of tool%&8]&7"
            else:
                replace all "[item]" in message with "&8[<tooltip:&e%tool's name ? type of tool% &8(&f%{_count}%x&8)%nl%&7No Enchantments.%nl%&7No Lores.>&f%{_count}%x %name of tool ? type of tool%&8]&7"
        replace all "||" with "%nl%" in message

        send "%player's displayname%&f: &7%message%" to all players

It should work. I hope. It'll appear like thisimage.png.e856abf1106d348600e5e2192430224c.png

Things to know about me

• I have 2 years of skript experience

• I work on my servers all by myself
• I like being alone

• I have insane trust issues

• I simp for alot of people (trying my best not to)

• My mental age is somewhere 8

• I dont like meeting new people

• Very toxic

 

Discord Swayl#0099

MC IGN - Swayl

(I suggest avoiding me because I get too attached to people quick)

Link to comment
Share on other sites

5 hours ago, Swayl said:

on chat:
    if message contains "[item]":
        cancel event
        player is not holding air
        set {_count} to amount of player's held item in player's inventory
        if player's tool is enchanted:
            if line 1 of lore of player's tool is set:
                replace all "[item]" in message with "&8[<tooltip:&e%tool's name ? type of tool% &8(&f%{_count}%x&8)%nl%&7%tool's enchantments%%nl%%tool's lore%>&f%{_count}%x %name of tool ? type of tool%&8]&7"
            else:
                replace all "[item]" in message with "&8[<tooltip:&e%tool's name ? type of tool% &8(&f%{_count}%x&8)%nl%%tool's enchantments%%nl%&7No Lores.>&f%{_count}%x %name of tool ? type of tool%&8]&7"
        if player's tool is not enchanted:
            if line 1 of lore of player's tool is set:
                replace all "[item]" in message with "&8[<tooltip:&e%tool's name ? type of tool% &8(&f%{_count}%x&8)%nl%&7No Enchantments.%nl%%tool's lore%>&f%{_count}%x %name of tool ? type of tool%&8]&7"
            else:
                replace all "[item]" in message with "&8[<tooltip:&e%tool's name ? type of tool% &8(&f%{_count}%x&8)%nl%&7No Enchantments.%nl%&7No Lores.>&f%{_count}%x %name of tool ? type of tool%&8]&7"
        replace all "||" with "%nl%" in message

        send "%player's displayname%&f: &7%message%" to all players

It should work. I hope. It'll appear like thisimage.png.e856abf1106d348600e5e2192430224c.png

Thank you, this will help out! But, is it possible to make elytras semi work in version prior to 1.9 aka if player is wearing leather tunic or elytra, change gravity?

Message by Aseltic

Well Not-Known Skripter

Link to comment
Share on other sites

  • 1 month later...

maybe like a punishment guy so if you do /punish <offline player>:

 

that will open up a gui with mute and ban

 

if you click the mute then it will have times for how long to mute your selected player and the ban will have like the ban reasons like Xray or Fly or Speed hacks and then the time bit

Link to comment
Share on other sites

2 Ideas:
 

a broadcast skript like this

 

Broadcast:

Alert:

Notify:

(whatever prefix you like)

 

This is an example if someone didn't use color code

Broadcast I love Minehut

If someone used color codes in it:

Broadcast: Minehut is the fricken best!

 

Also make a public tempban, warn, unwarn, and mute/unmute skript.

 

Tempban Example:

command: /tempban TacticalModz 30d good person

 

 

CrazySteve79 tempbanned TactialModz for 30 days Reason: being a good skripter (any colors you want)

Warns:

command: /warn TacticalModz being a good person

command: /unwarn TacticalModz being a good person

CrazySteve79 warned TactialModz for being a good person

CrazySteve79 unawrned TactialModz for being a good person

 

Mute/Unmute/Tempmute

CrazySteve79 tempmuted TacticalModz for 30 mins Reason: swearing

CrazySteve79 permanently muted TacticalModz for swearing

CrazySteve79 unmuted TacticalModz reason: being sexy and he knows it

 

Spoiler
Spoiler
Spoiler

 

 

 

 

  • Haha 1
Link to comment
Share on other sites

  • 11 months later...

Hey man I think its really cool what you're doing, and i know this is like months late but I was wondering could you make a clan skript that meets this criteria:

-Has a limit of 5 members

-commands to kick and invite for the clan rank officer, and you can promote people to this rank with a command

-the ability to /sponsor the clan if you are staff (ill add the permission just make it say op for now) and when you sponsor it adds x amount of player slots to the clan depending on if you are admin, dev, or mod so maybe like 3 extra slots, 2 extra slots, 1 extra slot

-make it so clan members can't kill each other

everything else i should be able to skript if needed but ive only been skripting for about 5 days now so im not very good

 

I know this is a lot to ask for out of a random person on the internet but hey, it's worth a shot. If you wanna dm me on discord about it im Noah#8423

Edited by noahnime
Link to comment
Share on other sites

On 8/4/2019 at 7:41 PM, OMGPVP2 said:

2 Ideas:
 

a broadcast skript like this

 

Broadcast:

Alert:

Notify:

(whatever prefix you like)

 

This is an example if someone didn't use color code

Broadcast I love Minehut

If someone used color codes in it:

Broadcast: Minehut is the fricken best!

 

Also make a public tempban, warn, unwarn, and mute/unmute skript.

 

Tempban Example:

command: /tempban TacticalModz 30d good person

 

 

CrazySteve79 tempbanned TactialModz for 30 days Reason: being a good skripter (any colors you want)

Warns:

command: /warn TacticalModz being a good person

command: /unwarn TacticalModz being a good person

CrazySteve79 warned TactialModz for being a good person

CrazySteve79 unawrned TactialModz for being a good person

 

Mute/Unmute/Tempmute

CrazySteve79 tempmuted TacticalModz for 30 mins Reason: swearing

CrazySteve79 permanently muted TacticalModz for swearing

CrazySteve79 unmuted TacticalModz reason: being sexy and he knows it

 

  Reveal hidden contents
  Reveal hidden contents
  Reveal hidden contents

 

 

 

 

command /alert [<text>]:
    permission: aler.use
    permission message: &cInsufficient Permissions!
    trigger:
        if arg-1 is not set:
            send "&cPlease write something!"
        if arg-1 is set:
            broadcast "&c&lAlert | &f%coloured arg-1%"

This next one was made by xlr100#6932

#Made by xlr100#6932 (For any bugs)
#version: 1
#--------------------------------------------------------
#Configuration
variables:
    prefix = "&c&lPunish »" #Change the prefix in chat
options:
    error.offline: "%{prefix}% &cThe player is not online"
    usage.kick: "%{prefix}% &cCorrect Usage: &7/kick <player> <reason>"
    usage.warn: "%{prefix}% &cCorrect Usage: &7/warn <player> <reason>"
    usage.mute: "%{prefix}% &cCorrect Usage: &7/mute <player> <time> <reason>"
    usage.unmute: "%{prefix}% &cCorrect Usage: &7/unmute <player> <reason>"
    usage.ban: "%{prefix}% &cCorrect Usage: &7/ban <player> <time> <reason>"
    usage.unban: "%{prefix}% &cCorrect Usage: &7/unban <player> <reason>"
    format.time: "&cThe time needs to be in the following format: <amount><sec/min/hour/day> (For example 10min)"
    usage.logs: "%{prefix}% &cCorrect Usage: &7/logs <player> &cor &7&7/logs server"
    command.cooldown: 5 seconds #Change the cooldown for the command

#--------------------------------------------------------

on load:
    wait 1 tick
    Time_Register()
    PunishTime_Register()
    PunishColor_Register()
    PunishShow_Register()


function Time_Register():
    clear {time.types::*}
    set {time.types::second} to "sec"
    set {time.types::minute} to "min"
    set {time.types::hour} to "hour"
    set {time.types::day} to "day"
    clear {letters::*}
    set {_str} to "a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z,/,!,@,##,$,%%,^,*,(,),{,},[,],"",|,;,',`,?"
    set {letters::*} to {_str} split at ","

function PunishTime_Register():
    #Mutes
    set {punish.time::mute::1} to "5 Minutes" 
    set {punish.time::mute::2} to "30 Minutes" 
    set {punish.time::mute::3} to "1 Hour" 
    set {punish.time::mute::4} to "1 Day"
    #Bans
    set {punish.time::ban::1} to "1 Hour" 
    set {punish.time::ban::2} to "12 Hours" 
    set {punish.time::ban::3} to "1 Day" 
    set {punish.time::ban::4} to "30 Days"

function PunishColor_Register():
    clear {punish.color::*}
    set {punish.color::warns} to "&e"
    set {punish.color::kicks} to "&f"
    set {punish.color::mutes} to "&8"
    set {punish.color::bans} to "&c"

function PunishShow_Register():
    clear {punish.show::*}
    set {punish.show::warns} to "Warn"
    set {punish.show::kicks} to "Kick"
    set {punish.show::mutes} to "Mute"
    set {punish.show::bans} to "Ban"

function Time_Check(time: string, c: boolean = true) :: boolean:
    loop {letters::*}:
        {_num} contains loop-value-2:
            set {_c} to false
            exit loop
    return {_c}

                
on inventory close:
    delete {inventory::%player's uuid%}

command /logs [<offline player>] [<text>] [<number>]:
    permission: skript.logs
    trigger:
        if arg-1 is set:
            if "%arg-1%" is "clear":
                player is op
                clear {%arg-2%::*}
                send "%{prefix}% &aCleared all %arg-2%"
            else if arg-2 isn't set:
                set {_menu} to chest inventory with 5 rows named "Logs %arg-1%"
                set slot (integers from 0 to 8) of {_menu} to black glass pane named " "
                set slot (integers from 37 to 45) of {_menu} to black glass pane named " "
                set slot 36 of {_menu} to barrier named "&cClose"
                set slot 19 of {_menu} to yellow concrete named "&e&lWarns"
                set slot 21 of {_menu} to white concrete named "&f&lKicks"
                set slot 23 of {_menu} to gray concrete named "&8&lMutes"
                set slot 25 of {_menu} to red concrete named "&c&lBans"
                open {_menu} to player
                set {inventory::%player's uuid%} to "logs.main/%arg-1%"
            else if arg-2 is "warns" or "kicks" or "mutes" or "bans":
                set {_menu} to chest inventory with 6 rows named "Logs %arg-1% - %{punish.show::%arg-2%}%"
                set slot (integers from 0 to 8) of {_menu} to black glass pane named " "
                set slot (integers from 46 to 53) of {_menu} to black glass pane named " "
                set slot 45 of {_menu} to barrier named "&cBack"
                set {_color} to {punish.color::%arg-2%}
                set {_slot} to 9
                if arg-1 isn't "server":
                    loop {punish::%arg-1's uuid%::%arg-2%::*}:
                        set {_id} to loop-value
                        if {%arg-2%::%{_id}%::staff} is set:
                            if arg-2 is "warns" or "kicks":
                                set slot {_slot} of {_menu} to paper named "%{_color}%%{punish.show::%arg-2%}% ##%{_id}%" with lore "&7Staff: %{_color}%%{%arg-2%::%{_id}%::staff}%", "&7Reason: %{_color}%%{%arg-2%::%{_id}%::reason}%" and "&7Date: %{_color}%%{%arg-2%::%{_id}%::when}%"               
                            else:
                                if {%arg-2%::%{_id}%::time} isn't "perm":
                                    set {_time} to {%arg-2%::%{_id}%::time} parsed as timespan
                                else:
                                    set {_time} to {%arg-2%::%{_id}%::time}
                                if {%arg-2%::%{_id}%::undo.staff} is set:
                                    set slot {_slot} of {_menu} to paper named "%{_color}%%{punish.show::%arg-2%}% ##%{_id}%" with lore "&7Staff: %{_color}%%{%arg-2%::%{_id}%::staff}%", "&7Reason: %{_color}%%{%arg-2%::%{_id}%::reason}%", "&7Date: %{_color}%%{%arg-2%::%{_id}%::when}%", "&7Length: %{_color}%%{_time}%", "&7Canceled By: %{_color}%%{%arg-2%::%{_id}%::undo.staff}%" and "&7Reason For Cancel: %{_color}%%{%arg-2%::%{_id}%::undo.reason}%"
                                else:
                                    set slot {_slot} of {_menu} to paper named "%{_color}%%{punish.show::%arg-2%}% ##%{_id}%" with lore "&7Staff: %{_color}%%{%arg-2%::%{_id}%::staff}%", "&7Reason: %{_color}%%{%arg-2%::%{_id}%::reason}%", "&7Date: %{_color}%%{%arg-2%::%{_id}%::when}%" and "&7Length: %{_color}%%{_time}%" 
                            add 1 to {_slot}
                            if {_slot} >= 45:
                                set slot 54 of {_menu} to arrow named "&eNext Page"
                                exit loop
                        else:
                            remove {_id} from {punish::%arg-1's uuid%::%arg-2%::*}
                else:
                    if arg-3 isn't set:
                        set {_c} to true
                    else:
                        set slot 45 of {_menu} to arrow named "&ePrevious Page"
                    set {_need} to arg-3
                    loop all indices of {%arg-2%::*}:
                        if {_c} isn't true:
                            add 1 to {_num}
                            if {_num} >= {_need} - 1:
                                set {_c} to true
                        else:
                            set {_id} to loop-value
                            if arg-2 is "warns" or "kicks":
                                set slot {_slot} of {_menu} to paper named "%{_color}%%{punish.show::%arg-2%}% ##%{_id}%" with lore "&7Player: %{_color}%%{%arg-2%::%{_id}%::player}%", "&7Staff: %{_color}%%{%arg-2%::%{_id}%::staff}%", "&7Reason: %{_color}%%{%arg-2%::%{_id}%::reason}%" and "&7Date: %{_color}%%{%arg-2%::%{_id}%::when}%"               
                            else:
                                if {%arg-2%::%{_id}%::time} isn't "perm":
                                    set {_time} to {%arg-2%::%{_id}%::time} parsed as timespan
                                else:
                                    set {_time} to {%arg-2%::%{_id}%::time}
                                if {%arg-2%::%{_id}%::undo.staff} is set:
                                    set slot {_slot} of {_menu} to paper named "%{_color}%%{punish.show::%arg-2%}% ##%{_id}%" with lore "&7Player: %{_color}%%{%arg-2%::%{_id}%::player}%", "&7Staff: %{_color}%%{%arg-2%::%{_id}%::staff}%", "&7Reason: %{_color}%%{%arg-2%::%{_id}%::reason}%", "&7Date: %{_color}%%{%arg-2%::%{_id}%::when}%", "&7Length: %{_color}%%{_time}%", "&7Canceled By: %{_color}%%{%arg-2%::%{_id}%::undo.staff}%" and "&7Reason For Cancel: %{_color}%%{%arg-2%::%{_id}%::undo.reason}%"
                                else:
                                    set slot {_slot} of {_menu} to paper named "%{_color}%%{punish.show::%arg-2%}% ##%{_id}%" with lore "&7Player: %{_color}%%{%arg-2%::%{_id}%::player}%", "&7Staff: %{_color}%%{%arg-2%::%{_id}%::staff}%", "&7Reason: %{_color}%%{%arg-2%::%{_id}%::reason}%", "&7Date: %{_color}%%{%arg-2%::%{_id}%::when}%" and "&7Length: %{_color}%%{_time}%" 
                            add 1 to {_slot}
                            if {_slot} >= 45:
                                set slot 53 of {_menu} to arrow named "&eNext Page"
                                set {_last} to (loop-value parsed as integer) + 1
                                exit loop
                open {_menu} to player
                if {_last} is set:
                    set {inventory::%player's uuid%} to "logs.%arg-2%/%arg-1%/%{_last}%"
                else:
                    set {inventory::%player's uuid%} to "logs.%arg-2%/%arg-1%"
        else:
            send {@usage.logs}

                
on inventory click:
    if {inventory::%player's uuid%} contains "logs":
        cancel event
        if {inventory::%player's uuid%} contains "main":
            if event-slot is concrete:
                set {_temp::*} to {inventory::%player's uuid%} split at "/"
                make player execute command "/logs %{_temp::2}% %uncolored name of event-slot in lower case%"
            else if event-slot is barrier:
                close player's inventory
        else:
            if event-slot is barrier:
                set {_temp::*} to {inventory::%player's uuid%} split at "/"
                make player execute command "/logs %{_temp::2}%"
            else if event-slot is arrow:
                set {_temp::*} to {inventory::%player's uuid%} split at "/"
                set {_type} to {_temp::1}
                replace all "logs." in {_type} with ""
                if uncolored name of event-slot contains "Next":
                    set {_num} to {_temp::3}
                else:
                    set {_num} to ("%{_temp::3}%" parsed as integer) - 36
                    if {_num} <= 1:
                        make player execute command "/logs %{_temp::2}% %{_type}%"
                        stop
                make player execute command "/logs %{_temp::2}% %{_type}% %{_num}%"

command /warn [<player>] [<text>]:
    permission: skript.warn
    trigger:
        if arg-1 is set:
            if arg-1 is online:
                if arg-2 is set:
                    add 1 to {warn.count}
                    set {warns::%{warn.count}%::player} to arg-1
                    set {warns::%{warn.count}%::staff} to player
                    set {warns::%{warn.count}%::reason} to arg-2
                    set {warns::%{warn.count}%::when} to now
                    add {warn.count} to {punish::%arg-1's uuid%::warns::*}
                    broadcast "&e&lWarns » &e%arg-1% &7has been warned by &e%player% &7for &c%arg-2% &7(ID: %{warn.count}%)"
                else:
                    send {@usage.warn}
            else:
                send {@error.offline}
        else:
            send {@usage.warn}

command /kick [<player>] [<text>]:
    permission: skript.kick
    trigger:
        if arg-1 is set:
            if arg-1 is online:
                if arg-2 is set:
                    add 1 to {kick.count}
                    set {kicks::%{kick.count}%::player} to arg-1
                    set {kicks::%{kick.count}%::staff} to player
                    set {kicks::%{kick.count}%::reason} to arg-2
                    set {kicks::%{kick.count}%::when} to now
                    add {kick.count} to {punish::%arg-1's uuid%::kicks::*}
                    kick arg-1 due to "&fYou were kicked by %player% for %arg-2% (ID: %{kick.count}%)"
                else:
                    send {@usage.kick}
            else:
                send {@error.offline}
        else:
            send {@usage.kick}


command /mute [<offline player>] [<text>] [<text>]:
    permission: skript.mute
    trigger:
        if arg-1 is set:
            if arg-2 is set:
                if arg-3 is set:
                    set {_time} to arg-2 in lower case
                    if {_time} isn't "perm":
                        loop {time.types::*}:
                            if {_time} contains loop-value:
                                set {_num} to {_time} 
                                replace all loop-value in {_num} with ""
                                if Time_Check({_num}) is true:
                                    set {_length} to "%{_num}% %loop-index%"
                                exit loop
                    else:
                        set {_length} to {_time}
                    if {_length} is set:
                        add 1 to {mute.count}
                        set {mutes::%{mute.count}%::player} to arg-1
                        set {mutes::%{mute.count}%::staff} to player
                        set {mutes::%{mute.count}%::reason} to arg-3
                        set {mutes::%{mute.count}%::time} to {_length}
                        set {mutes::%{mute.count}%::when} to now
                        add {mute.count} to {punish::%arg-1's uuid%::mutes::*}
                        set {mute::%arg-1's uuid%} to {mute.count}
                        broadcast "%{prefix}% &e%arg-1% &7has been muted by &e%player% &7for &c%arg-3% &7(ID: %{mute.count}%)"
                    else:
                        send "&cThe time needs to be in the following format: <amount><sec/min/hour/day> (For example 10min)"
                else:
                    send {@usage.mute}
            else:
                send {@usage.mute}
        else:
            send {@usage.mute}

command /unmute [<offline player>] [<text>]:
    permission: skript.mute
    trigger:
        if arg-1 and arg-2 is set:
            if {mute::%arg-1's uuid%} is set:
                set {_id} to {mute::%arg-1's uuid%}
                if {mutes::%{_id}%::time} isn't "perm":
                    set {_wait} to difference between {mutes::%{_id}%::when} and now
                    if {_wait} < {mutes::%{_id}%::time} parsed as timespan:
                        set {_c} to true
                    else:
                        delete {mute::%arg-1's uuid%}
                else:
                    set {_c} to true
                if {_c} is true:
                    set {_id} to {mute::%arg-1's uuid%}
                    set {mutes::%{_id}%::undo.staff} to player
                    set {mutes::%{_id}%::undo.reason} to arg-2
                    set {mutes::%{_id}%::undo.when} to now
                    delete {mute::%arg-1's uuid%}
                    broadcast "%{prefix}% &e%arg-1% &7has been unmuted by &e%player% &7for &c%arg-2%"
                else:
                    send "%{prefix}% &cThis player isn't muted"
            else:
                send "%{prefix}% &cThis player isn't muted"
        else:
            send {@usage.unmute}

on chat:
    if {mute::%player's uuid%} is set:
        set {_id} to {mute::%player's uuid%}
        if {mutes::%{_id}%::time} isn't "perm":
            set {_wait} to difference between {mutes::%{_id}%::when} and now
            set {_need} to {mutes::%{_id}%::time} parsed as timespan
            if {_wait} >= {_need}:
                delete {mute::%player's uuid%}
            else:
                cancel event
                send colored "%{prefix}% &cYou can't talk while being muted (time remaining %difference between {_wait} and {_need}%)"
        else:
            cancel event
            send colored "%{prefix}% &cYou can't talk while being muted (Perm muted)"


command /ban [<offline player>] [<text>] [<text>]:
    permission: skript.ban
    trigger:
        if arg-1 is set:
            if arg-2 is set:
                if arg-3 is set:
                    set {_time} to arg-2 in lower case
                    if {_time} isn't "perm":
                        loop {time.types::*}:
                            if {_time} contains loop-value:
                                set {_num} to {_time} 
                                replace all loop-value in {_num} with ""
                                if Time_Check({_num}) is true:
                                    set {_length} to "%{_num}% %loop-index%"
                                exit loop
                    else:
                        set {_length} to {_time}
                    if {_length} is set:
                        add 1 to {ban.count}
                        set {bans::%{ban.count}%::player} to arg-1
                        set {bans::%{ban.count}%::staff} to player
                        set {bans::%{ban.count}%::reason} to arg-3
                        set {bans::%{ban.count}%::time} to {_length}
                        set {bans::%{ban.count}%::when} to now
                        add {ban.count} to {punish::%arg-1's uuid%::bans::*}
                        set {ban::%arg-1's uuid%} to {ban.count}
                        if {_length} isn't "perm":
                            kick arg-1 due to "&cYou are banned! You can rejoin in %{_length} parsed as timespan% &7Staff: &b%{bans::%{ban.count}%::staff}% &7Reason: &b%{bans::%{ban.count}%::reason}%"
                        else:
                            kick arg-1 due to "&cYou are perm banned! &7Staff: &b%{bans::%{ban.count}%::staff}% &7Reason: &b%{bans::%{ban.count}%::reason}%"
                        broadcast "%{prefix}% &e%arg-1% &7has been banned by &e%player% &7for &c%arg-3% &7(ID: %{ban.count}%)"
                    else:
                        send {@format.time}
                else:
                    send {@usage.ban}
            else:
                send {@usage.ban}
        else:
            send {@usage.ban}

command /unban [<offline player>] [<text>]:
    permission: skript.ban
    trigger:
        if arg-1 is set:
            if arg-2 is set:
                if {ban::%arg-1's uuid%} is set:
                    set {_id} to {ban::%arg-1's uuid%}
                    if {bans::%{_id}%::time} isn't "perm":
                        set {_wait} to difference between {bans::%{_id}%::when} and now
                        if {_wait} < {bans::%{_id}%::time} parsed as timespan:
                            set {_c} to true
                        else:
                            delete {ban::%arg-1's uuid%}
                    else:
                        set {_c} to true
                    if {_c} is true:
                        set {_id} to {ban::%arg-1's uuid%}
                        set {bans::%{_id}%::undo.staff} to player
                        set {bans::%{_id}%::undo.reason} to arg-2
                        set {bans::%{_id}%::undo.when} to now
                        delete {ban::%arg-1's uuid%}
                        broadcast "%{prefix}% &e%arg-1% &7has been unbanned by &e%player% &7for &c%arg-2%"
                    else:
                        send "%{prefix}% &cThis player isn't banned"
                else:
                    send "%{prefix}% &cThis player isn't banned"
            else:
                send {@usage.unban}
        else:
            send {@usage.unban}

on connect:
    if {ban::%player's uuid%} is set:
        set {_id} to {ban::%player's uuid%}
        if {bans::%{_id}%::time} isn't "perm":
            set {_wait} to difference between {bans::%{_id}%::when} and now
            set {_need} to {bans::%{_id}%::time} parsed as timespan
            if {_wait} >= {_need}:
                delete {ban::%player's uuid%}
            else:
                kick player due to "&cYou are banned! You can rejoin in %difference between {_wait} and {_need}% &7Since: &b%{bans::%{_id}%::when}% &7Staff: &b%{bans::%{_id}%::staff}% &7Reason: &b%{bans::%{_id}%::reason}%"
        else:
            kick player due to "&cYou are perm banned! &7Since: &b%{bans::%{_id}%::when}% &7Staff: &b%{bans::%{_id}%::staff}% &7Reason: &b%{bans::%{_id}%::reason}%"
No definition found.
Search the web for "xlr100#6932" »

 

⭢ Founder Of Website 

The Website is men't to help you with all the skript you need to start your server. Soon we will have tutorials on how to use certain things, but for now you should go to Minehut.xyz for tutorials. Again, The Website is men't for skript help and skript requests.

Link to comment
Share on other sites

  • 2 weeks later...
On 6/10/2019 at 11:27 PM, Wynandus said:

Hello there,

I'm creating free skripts for the minehut community, reply to this thread with a skript that you want me to make

once i've completed the skript i will post it in the Skript Releases folder.

 

(Please provide sufficient information about the skript you want)

umm whats your discord bc i want a free skript 🙂

 

Link to comment
Share on other sites

  • 4 weeks later...
On 8/3/2020 at 8:32 PM, noahnime said:

Hey man I think its really cool what you're doing, and i know this is like months late but I was wondering could you make a clan skript that meets this criteria:

-Has a limit of 5 members

-commands to kick and invite for the clan rank officer, and you can promote people to this rank with a command

-the ability to /sponsor the clan if you are staff (ill add the permission just make it say op for now) and when you sponsor it adds x amount of player slots to the clan depending on if you are admin, dev, or mod so maybe like 3 extra slots, 2 extra slots, 1 extra slot

-make it so clan members can't kill each other

everything else i should be able to skript if needed but ive only been skripting for about 5 days now so im not very good

 

I know this is a lot to ask for out of a random person on the internet but hey, it's worth a shot. If you wanna dm me on discord about it im Noah#8423

Please do not reply to posts with over 1 month of inactivity

Locked 🔒

Default: Feb 6 2018

VIP: April 14 2019

Jr. Mod: September 12 2020

Mod: Jan 11 2021

 

Am a person

Hello

image.png.bd769c496f267e5b4b56b5b53145033f.png

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...