Knockback customisation (path)

Discussion in 'Plugin Development' started by Insided_, Feb 15, 2019.

Thread Status:
Not open for further replies.
  1. Offline

    Insided_

    Here is the situation , im making a custom spigot and im trying to add this to it : https://gist.github.com/prplz/88058283059dd46c8208c8a918c65bb8(wich is a way to customise knockback)

    I know how to do it all except for the config.
    Since the .java is the config , some people are telling me to implement it in SpigotConfig.java .
    ( Spigot-Server\src\main\java\org\spigotmc\SpigotConfig.java )
    ( https://github.com/Insided0/spigotconfig.java/blob/master/this )

    But here is the problem : im not familliar with this so i dont know how it work.


    Question: how do I implement it ? :unsure:

    My first guess was to put it at the end of the code like that:
    Code:
    [...]
           }
       }
    }
    
    knockbackFriction = 2.0D;
    knockbackHorizontal = 0.35D;
    knockbackVertical = 0.35D;
    knockbackVerticalLimit = 0.4D;
    knockbackExtraHorizontal = 0.425D;
    knockbackExtraVertical = 0.085D;
    But im obviously wrong. :oops:

    Any help is accepted.
     
    Last edited by a moderator: Feb 15, 2019
  2. Offline

    CraftCreeper6

    @Insided_
    Maybe this is best posted in the Spigot forum.
     
Thread Status:
Not open for further replies.

Share This Page