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!

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

Script ASimplePluginManager 1.1

A simple solution to enable/disable plugins on your server

  1. ShaneBee
    Supported Minecraft Versions:
    • 1.12
    [​IMG]
    Someone recently asked me if there was a way to disable plugins individually in Skript. I didn't know of one, so I decided to create one.

    A Simple Plugin Manager allows you to disable and enable plugins individually. I do not recommend this as a safe alternative to stopping your server, doing stuff with your plugins, and starting it up. But for those of you who may need to disable a plugin for whatever reason, this is a good alternative.
    I do want to caution you, I have only tested this with a handful of small plugins on my test server including (Essentials, Skript, Vault, WorldEdit, Plan) Thru this testing I did not have any issues, or see anything in the console that seemed detrimental to the server, but that does not go to say that this will effectively work with every plugin out there. You have been warned.

    I have also included a small API with a few effects and conditions you can use in your own Skript's as you see fit.

    Dependancies:
    - Skript [Tested on Bensku 2.2 Dev 37c]
    - Skript-Mirror

    Commands:
    # Special note: Plugin names are case sensitive
    - /disable <plugin/all> - Disables a plugin or all plugins (ALL is NOT recommended - can cause crashes)
    - /enable <plugin> - Enables a plugin

    Permissions:
    - pluginmanager.admin - Gives permission to the 2 commands

    Code (Skript):
    1. Effects:
    2.  
    3.     Disable plugin:
    4.         Description: Allows you to disable any plugin
    5.         Pattern:
    6.             disable plugin %string%
    7.         Examples:
    8.             disable plugin "Essentials"
    9.             disable plugin arg-1
    10.             disable plugin {_plugin}
    11.  
    12.     Enable plugin:
    13.         Description: Allows you to enable a plugin
    14.         Pattern:
    15.             enable plugin %string%
    16.         Examples:
    17.             enable plugin "Essentials"
    18.             enable plugin arg-1
    19.             enable plugin {_plugin}
    20.  
    21. Conditions:
    22.  
    23.     Plugin exists:
    24.         Description: Checks to see if a plugin exists on your server (enabled or disabled)
    25.         Pattern:
    26.             plugin %string% exists
    27.         Examples:
    28.             if plugin "Essentials" exists:
    29.                 Broadcast "Essentials DOES exists on this server"
    30.  
    31.     Plugin enabled/disabled:
    32.         Description: Checks if a plugin is enabled or disabled
    33.         Pattern:
    34.             plugin %string% is (enabled|disabled)
    35.         Examples:
    36.             if plugin "Essentials" is enabled:
    37.                 Broadcast "ENABLED"
    38.             if plugin "Essentials" is disabled:
    39.                 Broadcast "DISABLED"

    Reviews:
    Please do not use reviews for help. If you post in reviews for support you will not receive support, as I can only reply to your review, and not have a conversation back and forth.

    Terms of Service:
    You may not edit the code in this Skript. If you edit anything past the options, you will lose all support.
    You may use the API freely to your liking.
    Copying and reposting this resource on any other medium is NOT allowed. Doing so will get you reported on said website, and you risk being punished by said website.

    Support:
    Please use the discussion area for support, I will do my best to help.
    I also have a private DISCORD channel for my Skripts.
    [​IMG]
    Feel free to donate if you would like :emoji_slight_smile: Any support helps out
    [​IMG]

Recent Updates

  1. Update 1.1 [Disable All Plugins]

Recent Reviews

  1. K
    KingOfGames
    5/5,
    Version: 1.0
    Make Disable all plugins /disable all .
    1. ShaneBee
      Author's Response
      Hey. Thanks for the suggestion. I tried doing that and it wasn't working the way I had hoped. I can RETRY.... I would have to be careful to not disable Skript or Skript-Mirror or that would basically screw up this skript ;) HAHA... but I will see what I can figure out!