I need help with Fortune and BreakBlockEvent and SuperiorSkyBlock

Discussion in 'Plugin Development' started by AlbanianHero69, May 6, 2020.

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

    AlbanianHero69

    Hello all So I am attempting to make a plugin for my small sky block server in which I have all ores Smelted the only issue though is that Fortune is to op and want fortune to be enabled for certain blocks at certain levels. So my question Is how would I be able to tell if a player is using fortune in a BlockBreakEvent and how would I be able to get the island level from SuperiorSykBlock2

    LINK TO DEV API FOR SUPERIORSKYBLOCK: https://github.com/OmerBenGera/Supe...tware/superiorskyblock/api/island/Island.java
     
  2. Offline

    timtower Administrator Administrator Moderator

  3. Offline

    AlbanianHero69

  4. Offline

    timtower Administrator Administrator Moderator

    You just call the methods...
     
  5. Offline

    AlbanianHero69

    Okay so when I call the method
    SuperiorSkyblockAPI skyblock = new SuperiorSkyblockAPI();
    I get an error by SuperiorSkyblockAPI(); saying Cannot instantiate the type SuperiorSkyblockAPI
     
  6. Offline

    timtower Administrator Administrator Moderator

    You don't need to instanciate it, you call static methods on it.
     
Thread Status:
Not open for further replies.

Share This Page