need help

Discussion in 'Spigot Plugin Help' started by zNeXzCC, Sep 16, 2018.

  1. so i made my main and i wanna run a a other class.
    how can i do it so my Main class is Running the other class
    i wanna make it so: Main.class > enables > JumpPads.class
    what do i need to do in the main class sorry im new on dev.
  2. Uhh, I am not sure what you exactly mean but if you store a value in the JumpPads.class, for example:
    Code (Text):
    ItemStack item = new ItemStack(Material.DIAMOND);
    This will be loaded done automatic when you put this in the start of the JumpPads.class.

    If you are talking about methods, you should put the method in your onEnable in your Main.class.

    For example, your method in JumpPads.class.
    Code (Text):
    public void startChecks() {
    // Checks started.
    And you want to activate this method in the Main.class when the plugin starts up.
    Code (Text):
    // In your Main.class

    public void onEnable() {
  3. i mean i wanna start a jumppad method with a other class becuz i have command that are in my main and other stuff but idk how i can make it so the jumppads work tho i need to somehow enable the class xd thru the main
  4. and im gonna look if it helped btw thx
  5. i wanna make it so that the mains enables the jumppad class : (

Share This Page