Jump to content

Edb

Member
  • Posts

    40
  • Joined

  • Last visited

  • Days Won

    1

Posts posted by Edb

  1. Info Books introduces a simple command [ /info ] that allows players to get information from a book GUI.

    HOW TO INSTALL:

    Spoiler

    To set up, make sure you have the prerequisites installed.

    • Spigot/Paper Server (Tested with 1.18.2)
    • Skript (Tested with 2.6.2)
    • SkBee* (Tested with 1.16.3)

    Restart your server if you installed anything new. Now, place info.sk inside the /plugins/Skript/scripts/ folder. After that, type /sk reload info into the chat and Info Books will be installed on the server.

    Once you've installed the script, create your books using the in-game editor or an online one. Make sure you're holding the book and type in chat /info <name> set. This will make a new info topic that can be instantly opened with /info <name>. If you wish to get the written book back in its original form, type /info <name> get. If you no longer wish to have an info topic, type /info <name> del. THIS WILL DELETE YOUR INFO TOPIC PERMANENTLY and you will not give you a copy of the book.

    COMMANDS / PERMISSIONS:

    Spoiler
    • /info <name> - No Permission
      • View the book as a GUI.
    • /info <name> get - info.get.<name>
      • Get the book as an in-game item.
    • /info <name> set - info.set.<name>
      • Set the information of the book using an in-game written book.
    • /info <name> del - info.del.<name>
      • Delete an information book permanently and irrevocably.

    info.sk

    • Like 1
  2. Utilians is a Skript file that adds simple commands and has an extensive config. The script adds the following:

    • Gamemode Swapper (/gm, /gmc, /gms, /gma, /gmsp)
    • Broadcasting (/broadcast, with anonymous sending!)
    • System Messages (Join, Leave, Death, First Join)
    • Join MOTD + News

    ℹ️ To edit the script config, open the script and scroll down to the "CONFIG" marker. Items marked with "opts." are options for the given module, "lang." is for text, and "perm." is for permissions.

    Utilians is licensed under the MIT License.

    Quote

    Copyright © 2021 Slymeball

    Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

    The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

    THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

    Go to the Spigot page. It won't make a difference.

    utilians.sk

  3. Hello, everyone! Today, I'm releasing my new bot script which I'm just calling SMCD (Simple Minecraft -> Discord). With this bot, you can set up a link between your server's chat and a channel on your Discord server. To set it up, put it in your server's scripts and open it. You'll see the options section, where you can modify things like:

    • Bot Token
    • Channel ID
    • Server IP (for Server Up messages)
    • Embed Emojis
    • ...and more!

    To download this skript, either get the download from below (which will not be updated) or get the latest version from my site (coming soon)!
    bot-censored.sk

    Images:

    An example of the script in Discord

    Spoiler

    /* oops, guess who forgot to remove the server references... me! welp, now you know that i'm making something. */

    An example of the script in Minecraft

     

    - Slymeball

  4. Hello, Team MH! I'm here to suggest that the plugin Slabbo [ https://www.spigotmc.org/resources/81368/ ] (created by Mackan90096) be added to the server plugin list.

    Slabbo is a shop plugin that allows players to turn their slabs (or upside down stairs) into shops that everyone can use. Along with having regular shop support, admins can also make shops with infinite supply (or, if the admin is feeling fancy, a shop with limited stock that restocks itself). Hey, they can even add commands to their shops. The plugin is lightweight and efficient and has GUI support for easier setup.

    I hope you consider this post and, ya'know, add it to the plugin list.

    - Slymeball

  5. On 5/3/2021 at 11:47 AM, Tarnerd said:

    you can just do this to format the glass panes easier 

    
    format gui slots (integers between 0 and 21) of player with red stained glass pane named "&4&l"

    This will set all slots in the gui to a glass pane. Then any other formats at the end will replace the glass pane on that slot.

    You can also use a function to just do the border. Here's something I made for a navigator.

    Spoiler
    
    function generateBorders(p: player , r: integer):
        set {_i} to -1
        loop 9 times:
            add 1 to {_i}
            add {_i} to {_border::*}
        loop ({_r} - 2) times:
            add 1 to {_i}
            add {_i} to {_border::*}
            add 8 to {_i}
            add {_i} to {_border::*}
        loop 9 times:
            add 1 to {_i}
            add {_i} to {_border::*}
        format gui slot {_border::*} of {_p} with black glass pane named "&7"

    Copy the code above and add it to the top of the script.

    You just throw in the player and amount of rows and the function will take care of it for you. Here's an example:

    Spoiler
    
    # something goes up here.
    open virtual chest with size 3 named "&cExample GUI" to player
    generateBorders(player, 3)
    format gui slot 13 of player with paper named "&cExample Item"
    # something will usually go down here.

    This is just an example. Please don't paste this into a script and expect it to work first-try.

     

  6. And? He's everywhere in the lobby, I've probably seen him about ten-twenty times. Sure, seeing a YT rank on MH is a pretty cool thing the first time around, but it's way too easy to locate someone to make it a novelty.

  7. 9 hours ago, TacticalModz said:
    Spoiler

     

    The only bad part about this is the messages do not send to "arg 1" but send to the player who executes the command.

    
    
    #--------------#-------------------------#
    # /-\ |\/| /-\ # No options!             #
    # | - |  | \-\ # Edit the commands below #
    # \-/ |  | \-/ # if you're brave enough. #
    #--------------#-------------------------#
    command /gmc [<offlineplayer>]:
        trigger:
            if player has permission "gamemode.creative":
                if arg-1 is not set:
                    set player's gamemode to creative
                    send "&2Set your gamemode to &aCreative&2."
                else if arg-1 is set:
                    if arg-1 is online:
                        set arg-1's gamemode to creative
                        send "&2Set &a%arg-1%&2's gamemode to &aCreative&2."
                        send "&2Your gamemode has been set to &aCreative&2."
                    else:
                        send "&cThis player is not online!"
            else:
                send "&cYou don't have the required permission!"
    
    command /gms [<offlineplayer>]:
        trigger:
            if player has permission "gamemode.survival":
                if arg-1 is not set:
                    set player's gamemode to survival
                    send "&2Set your gamemode to &aSurvival&2."
                else if arg-1 is set:
                    if arg-1 is online:
                        set arg-1's gamemode to survival
                        send "&2Set &a%arg-1%&2's gamemode to &aSurvival&2."
                        send "&2Your gamemode has been set to &aSurvival&2."
                    else:
                        send "&cThis player is not online!"
            else:
                send "&cYou don't have the required permission!"
    
    command /gma [<offlineplayer>]:
        trigger:
            if player has permission "gamemode.adventure":
                if arg-1 is not set:
                    set player's gamemode to adventure
                    send "&2Set your gamemode to &aAdventure&2."
                else if arg-1 is set:
                    if arg-1 is online:
                        set arg-1's gamemode to adventure
                        send "&2Set &a%arg-1%&2's gamemode to &aAdventure&2."
                        send "&2Your gamemode has been set to &aAdventure&2."
                    else:
                        send "&cThis player is not online!"
            else:
                send "&cYou don't have the required permission!"
    
    command /gmsp [<offlineplayer>]:
        trigger:
            if player has permission "gamemode.spectator":
                if arg-1 is not set:
                    set player's gamemode to spectator
                    send "&2Set your gamemode to &aSpectator&2."
                else if arg-1 is set:
                    if arg-1 is online:
                        set arg-1's gamemode to spectator
                        send "&2Set &a%arg-1%&2's gamemode to &aSpectator&2."
                        send "&2Your gamemode has been set to &aSpectator&2."
                    else:
                        send "&cThis player is not online!"
            else:
                send "&cYou don't have the required permission!"
    
    #-----------------#-----------------------------#
    #     --- |-\ |-\ #                             #
    #     |-  | | |-< # End of file.                #
    # --- --- |-/ |-/ #                             #
    #-----------------#-----------------------------#

    Should look like this:

    
    
    #--------------#-------------------------#
    # /-\ |\/| /-\ # No options!             #
    # | - |  | \-\ # Edit the commands below #
    # \-/ |  | \-/ # if you're brave enough. #
    #--------------#-------------------------#
    command /gmc [<offlineplayer>]:
        trigger:
            if player has permission "gamemode.creative":
                if arg-1 is not set:
                    set player's gamemode to creative
                    send "&2Set your gamemode to &aCreative&2."
                else if arg-1 is set:
                    if arg-1 is online:
                        set arg-1's gamemode to creative
                        send "&2Set &a%arg-1%&2's gamemode to &aCreative&2." to arg 1
                        send "&2Your gamemode has been set to &aCreative&2." to player
                    else:
                        send "&cThis player is not online!"
            else:
                send "&cYou don't have the required permission!"
    
    command /gms [<offlineplayer>]:
        trigger:
            if player has permission "gamemode.survival":
                if arg-1 is not set:
                    set player's gamemode to survival
                    send "&2Set your gamemode to &aSurvival&2."
                else if arg-1 is set:
                    if arg-1 is online:
                        set arg-1's gamemode to survival
                        send "&2Set &a%arg-1%&2's gamemode to &aSurvival&2." to arg 1
                        send "&2Your gamemode has been set to &aSurvival&2." to player
                    else:
                        send "&cThis player is not online!"
            else:
                send "&cYou don't have the required permission!"
    
    command /gma [<offlineplayer>]:
        trigger:
            if player has permission "gamemode.adventure":
                if arg-1 is not set:
                    set player's gamemode to adventure
                    send "&2Set your gamemode to &aAdventure&2."
                else if arg-1 is set:
                    if arg-1 is online:
                        set arg-1's gamemode to adventure
                        send "&2Set &a%arg-1%&2's gamemode to &aAdventure&2." to arg 1
                        send "&2Your gamemode has been set to &aAdventure&2." to player
                    else:
                        send "&cThis player is not online!"
            else:
                send "&cYou don't have the required permission!"
    
    command /gmsp [<offlineplayer>]:
        trigger:
            if player has permission "gamemode.spectator":
                if arg-1 is not set:
                    set player's gamemode to spectator
                    send "&2Set your gamemode to &aSpectator&2."
                else if arg-1 is set:
                    if arg-1 is online:
                        set arg-1's gamemode to spectator
                        send "&2Set &a%arg-1%&2's gamemode to &aSpectator&2." to arg 1
                        send "&2Your gamemode has been set to &aSpectator&2." to player
                    else:
                        send "&cThis player is not online!"
            else:
                send "&cYou don't have the required permission!"
    
    #-----------------#-----------------------------#
    #     --- |-\ |-\ #                             #
    #     |-  | | |-< # End of file.                #
    # --- --- |-/ |-/ #                             #
    #-----------------#-----------------------------#

    Now the messages are sending to "arg 1" and not just constantly spamming the player who executes the command.

     

     

    You are absolutely correct, but the first message was ment to be sent to command-sender, confirming that the gamemode of arg-1 has been set to the gamemode they specified in the command. The second send was for arg-1, as it was to say to the player specified, "Hey, your gamemode was switched!" I will open VSC, edit this, then fix the online version. Thanks for pointing this out, @TacticalModz!

    • Like 1
  8. +1

    This plugin looks interesting, and supports 1.14! However, it is a paid plugin, so the chances of the author allowing SL to use it for free servers is lowered.

  9. Gamemode Switcher

    This skript ain't your average command executer.

     

    Source Code

    To get a hold of the skript's code, download it (gamemode-switcher.sk), or copy the code below. Feel free to fork if you'd like!

    Spoiler
    
    #--------------#--------------------------------#
    # /-\ |\/| /-\ # No options!                    #
    # | - |  | \-\ # Edit the commands below if     #
    # \-/ |  | \-/ # you're brave enough.           #
    #--------------#--------------------------------#
    command /gmc [<offlineplayer>]:
        trigger:
            if player has permission "gamemode.creative":
                if arg-1 is not set:
                    set player's gamemode to creative
                    send "&2Set your gamemode to &aCreative&2."
                else if arg-1 is set:
                    if arg-1 is online:
                        set arg-1's gamemode to creative
                        send "&2Set &a%arg-1%&2's gamemode to &aCreative&2."
                        send "&2Your gamemode has been set to &aCreative&2." to arg-1
                    else:
                        send "&cThis player is not online!"
            else:
                send "&cYou don't have the required permission!"
    
    command /gms [<offlineplayer>]:
        trigger:
            if player has permission "gamemode.survival":
                if arg-1 is not set:
                    set player's gamemode to survival
                    send "&2Set your gamemode to &aSurvival&2."
                else if arg-1 is set:
                    if arg-1 is online:
                        set arg-1's gamemode to survival
                        send "&2Set &a%arg-1%&2's gamemode to &aSurvival&2."
                        send "&2Your gamemode has been set to &aSurvival&2." to arg-1
                    else:
                        send "&cThis player is not online!"
            else:
                send "&cYou don't have the required permission!"
    
    command /gma [<offlineplayer>]:
        trigger:
            if player has permission "gamemode.adventure":
                if arg-1 is not set:
                    set player's gamemode to adventure
                    send "&2Set your gamemode to &aAdventure&2."
                else if arg-1 is set:
                    if arg-1 is online:
                        set arg-1's gamemode to adventure
                        send "&2Set &a%arg-1%&2's gamemode to &aAdventure&2."
                        send "&2Your gamemode has been set to &aAdventure&2." to arg-1
                    else:
                        send "&cThis player is not online!"
            else:
                send "&cYou don't have the required permission!"
    
    command /gmsp [<offlineplayer>]:
        trigger:
            if player has permission "gamemode.spectator":
                if arg-1 is not set:
                    set player's gamemode to spectator
                    send "&2Set your gamemode to &aSpectator&2."
                else if arg-1 is set:
                    if arg-1 is online:
                        set arg-1's gamemode to spectator
                        send "&2Set &a%arg-1%&2's gamemode to &aSpectator&2."
                        send "&2Your gamemode has been set to &aSpectator&2." to arg-1
                    else:
                        send "&cThis player is not online!"
            else:
                send "&cYou don't have the required permission!"
    
    #-----------------#-----------------------------#
    #     --- |-\ |-\ #                             #
    #     |-  | | |-< # End of file.                #
    # --- --- |-/ |-/ #                             #
    #-----------------#-----------------------------#

     

    Forking does not mean you're allowed to steal the file and claim it as your own. Make sure to at least keep the "End of file" footnote.

     

    Download

    Instant Download:

    --> gamemode-switcher.sk <--

    Mediafire Download:

    --> Click here! <--

    Spigot Page:

    Coming Soon!

    gamemode-switcher.sk

  10. Free Skripting Service!

    I will be making skripts for free. Just suggest me something, and I'll put it here. The current skripts that I have made (public) are on the next pages.

    (Oh, by the way, this is my first usage of pages. They're kinda hard to understand at first try.)

                                                                                                                                                                                                                                                                               

    bca.png.ed9c7cd060a2a3cd8d6fed9ea417fd96.png

    Sure, I made the skript by myself, nobody asking for it, but I feel like it deserves to be here anyway.

    actionbar_broadcast.sk

                                                                                                                                                                                                                                                                               

    ReItem

    Sure, I made it just because Trent wanted reloring from a skript, sure I needed help, but It can still go here. I want a long post, anyway.

    ReItem.sk

                                                                                                                                                                                                                                                                               

    GrayGrayCowKicker

    This is the first of many skripts I'm making for the community. It's a simple skript that just kicks GrayGrayCow (the requester) from the server on join, essentially banning the player. It also has a little addition of the message "Congrats, you're not GrayGrayCow."

    GrayGrayCowKicker.sk

                                                                                                                                                                                                                                                                               

    Your Skript Here.

    Ok, now it's time for your skripts. You haven't posted an idea for a skript yet, so go ahead, give one!

                                                                                                                                                                                                                                                                               

    Downloads

    The full list of skripts are below.

    actionbar_broadcast.sk

    ReItem.sk

    GrayGrayCowKicker.sk

×
×
  • Create New...