CommandOnSneak 3.1

Let the player execute a command when sneaking!

  1. JackkGC
    InformationCmdOS.jpg

    With this plugin you can let the player execute a command when start or stop sneaking!

    Its designed for usage with Wonder Hud but you can also configure all messages and perms maunally! If you want to use the plugin with Wonder Hud just set it in the config file and the plugin will do the rest!

    If you got any suggestions leave a comment in the discussion section!

    If you like this plugin please leave a rating! Would be great and supports me!

    Here is the default
    Code (Text):

    #Command on Sneak Plugin by JackkGC
    #
    #use /cmdonsneak or /commandonsneak
    #
    #use /cmdonsneak <setonsneak |command| /setnosneak |command| /reload>
    #
    #The listed points are explained by the comments
    #you can get an original version of the config file on the plugins main page
    #make sure that you check for a new config after every update
    #before you update to the new config file save your old one
    #to upadate just delete your plugin folder and restart the server or copy the whole config from the plugins main page in your current config.yml
    #if you got any suggestions contact me in the discussion section

    #do you use this plugin with wonder hud?!
    #if so set to true and you dont have to care anything just let the plugin work
    #the plugin will automaticly adapt all perms and commands from wonder hud
    #if not check this: https://www.spigotmc.org/resources/wonderhud-now-with-images.12220/
    wonderhud: false


    command:

    #The command should be executed when sneaking
      onsneak: 'say I am sneaking now!'

    #The command should be executed when stop sneaking
      nosneak: 'say I am sneaking not longer!'
    permissions:

    #give this permission to let the player execute a command on start sneaking
      onsneak: 'cmdonsneak.onsneak'

    #give this permission to let the player execute a command on stop sneaking
      nosneak: 'cmdonsneak.nosneak'

    #allowes to use /cmdonsneak setonsneak <command> to set the onsneak command
      setonsneak: 'cmdonsneak.setonsneak'

    #allowes to use /cmdonsneak setnosneak <command> to set the nosneak command
      setnosneak: 'cmdonsneak.setnosneak'

    #allowes to use /cmdonsneak reload
      reload: 'cmdsonsneak.reload'

    messages:

      noperm:

    #message sent when the player has no perm to use the command on sneak feature (start sneaking)
        onsneak: '&cYou dont have permission to do that!'

    #message sent when the player has no perm to use the command on sneak feature (stop sneaking)
        nosneak: '&cYou dont have permission to do that!'

    #message sent when the player has no perm to set the command (onsneak)
        setonsneak: '&cYou dont have permission to do that!'

    #message sent when the player has no perm to set the command (nosneak)
        setnosneak: '&cYou dont have permission to do that!'

    #message sent when the player has no perm to reload the config via command
        reload: '&cYou dont have permission to do that!'
      success:

    #message sent when the player successfully set the onsneak command
        setonsneak: '&aCommand &6<command> &aset!'

    #message sent when the player successfully set the nosneak command
        setnosneak: '&aCommand &6<command> &aset!'

    #message sent when the player successfully reloaded the config file
        reload: '&aReload completed!'
     


    CommandsCmdOS.jpg

    /cmdonsneak setonsneak - Set the command which schould be executed when start sneaking

    /cmdonsneak setnosneak - Set the command which schould be executed when stop sneaking

    /cmdonsneak reload - Reload the config

    PermissionsCmdOS.jpg

    The permissions are configurable in the config.yml but here are the defaults.


    give this permission to let the player execute a command on start sneaking
    'cmdonsneak.onsneak'

    give this permission to let the player execute a command on stop sneaking
    'cmdonsneak.nosneak'

    allowes to use /cmdonsneak setonsneak <command> to set the onsneak command
    'cmdonsneak.setonsneak'

    allowes to use /cmdonsneak setnosneak <command> to set the nosneak command
    'cmdonsneak.setnosneak'

    allowes to use /cmdonsneak reload
    'cmdsonsneak.reload'
    Kloudy likes this.

Recent Updates

  1. Some changes regarding WonderHUD
  2. Bug Fixes
  3. Wonder Hud update