how to hook placeholderapi

Discussion in 'Plugin Development' started by dlndcrdso, Jul 14, 2019.

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

    dlndcrdso

    can someone please tell me why my plugin isnt hooking to papi
    heres the main and holder classes:
    main: https://pastebin.com/FsL9KtMT
    holder: https://pastebin.com/PT8izLJ1
    error says:
    "Unresolved compilation problems:
    The constructor Holder() is undefined
    The method register() is undefined for the type Holder"
     
  2. Offline

    Kars

    We need more than code to help you. Did you import the library?
     
  3. Offline

    timtower Administrator Administrator Moderator

    @dlndcrdso
    Code:
    new Holder().register();
    Code:
    public Holder(Main plugin)
    You are missing the plugin parameter.
     
Thread Status:
Not open for further replies.

Share This Page