Sueta

Simple Grappling Hook

1.0.0

A simple plugin that adds a grappling hook to survival.

·Plugin

Simple Grappling Hook
A simple plugin designed to add a craftable grappling hook into survival. Instead if adding a slow grapple that pulls the user towards the hook, it rapidly shoots the player towards it allowing them to easily climb mountains or close gaps.

Crafting
Basic Grappling Hook
Perm: grapplinghook.craft.basic

Unbreakable Grappling Hook
Perm: grapplinghook.craft.unbreakable

Commands
/grapple give <player> <unbreakable>
Gives the specified player a grappling hook with the option to make it unbreakable.
<player> can be omitted to give oneself the grapple.
<unbreakable> is only required if specifying "true"

/grapple reload
Reloads the configuration file.

Permissions

Permissions
"grapplinghook.craft.basic" - Permission to craft basic breakable grappling hook. Default: true unless turned off in config 
"grapplinghook.craft.unbreakable" - Permission to craft unbreakable grappling hook. Default: true unless turned off in config 
"grapplinghook.use" - Permission to use grappling hooks. Default: true unless turned off in config 
"grapplinghook.command.reload" - Permission to reload configuration. Default: op 
"grapplinghook.command.give.self" - Permission to use give command to give self grappling hook. Default: op 
"grapplinghook.command.give.others" - Permission to use give command to give others grappling hook. Default: op 
"grapplinghook.command.give.self.unbreakable" - Permission to use give command to give self unbreakable grappling hook. Default: op 
"grapplinghook.command.give.others.unbreakable" - Permission to use give command to give others unbreakable grappling hook. Default: op 
"grapplinghook.admin" - Parent permission for all command permissions. Default: op 
"grapplinghook.player" - Parent permission for all crafting and user permissions. Default: op (useless unless those permissions are changed to not default to true in config)

Config

Default Config
##Crafting section   
crafting   : 
    ##Can the breakable grappling hook be crafted   
  basic   :  true 
   ##Can the unbreakable grapplign hook be crafted   
  unbreakable   :  true 
 ##Grappling hook section   
grapple   : 
    ##Grappling hook pull strength   
  strength   :  0.2 
 ##Permission section   
permission   : 
    ##Player defaults   
  playerdefault   : 
      ##Does craftBasic permission default to true   
    craftbasic   :  true 
     ##Does craftUnbreakable permission default to true   
    craftunbreakable   :  true 
     ##Does use permission default to true   
    use   :  true 
 ##Translation section. Supports color codes using & symbol   
locale   : 
    ##No permission message   
  noperm   :  '&4You do not have permission for that!' 
   ##Invalid player message   
  invalidplayer   :  '&4That is not a valid player!' 
   ##Message sent if console attempts to give themselves a grapple   
  onlyplayers   :  '&4YOnly players can enter that command!' 
   ##Message sent to sender upon giving a player a basic grapple. %PLAYER% is replaced with the name of the player.   
  givebasic   :  '&2Gave grappling hook to  %PLAYER%!'  
   ##Message sent to sender upon giving a player an unbreakable grapple. %PLAYER% is replaced with the name of the player.   
  giveunbreakable   :  '&2Gave unbreakable grappling hook to  %PLAYER%!'  
   ##Config reloaded message   
  reload   :  '&2  [  Grappling Hook Config Reloaded  ]  '

Alternate Languages
I am unable to translate the messages into another language, but if anyone is able to translate the configuration messages into other languages I will post them here.

Terms of Service
- The source code is included in the jar, feel free to unpackage the plugin and modify or use however you wish. It would be appreciated if credit was given and people were linked back to this page but it is not required. (Do whatever the hell you want with the plugin)

Similar projects

Plugin →