Modifying SkyWarsPlugin?

Discussion in 'Plugin Development' started by Silus Games, Jul 2, 2014.

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

    Silus Games

    Basically i want to make a SUPER simple addition to SkyWars using my plugin, or just recompiling it in eclipse.

    What i wanted to add: If there are 7 (Instead of 8) players in a game, a timer for 60 seconds start. If there still remains 7 players, the game will automatically start. (Simple Right?)

    My First option was simple. Get the Jar and hook it in my plugin and check the number of players everytime a player joins an arena/game. After searching over the internet, i was VERY confused. You have the SkyWars API and SkyWarsPlugin. Both provide the same options, but there is no way i can get the OnPlayerJoined Event from the API.

    After more thought, i assumed i could get the SOURCE code and re-build the project with my functionality hardcoded in the jar. When i imported it in Eclipse (I do have Maven and the M2E plugin) i got an error inside the pom.xml. For some reason the SkyWars Plugin needs the SkyWars API 1.4.5 jar to compile and it was not included?

    Here is the Error i get inside eclipse
    [​IMG]

    Another Error has come up saying that the Artifact SkyWars1.4.5 API Jar could not be found. 2 Errors, but this one is showing up now.

    How can I add this simple functionality to SkyWars? Has anyone else gotten their Source to compile?

    Finalized Question: How can i add that functionality to SkyWars? (Compiling a new Jar or using a custom plugin?) Thanks!
     
  2. Offline

    daboross

    For recompiling the plugin, maven should download SkyWars-API automatically when you build it.

    When using plain maven, without an IDE, this is as simple as using `mvn clean package`.

    I do not know how to do this with M2E, though you most likely just need to build it once, and that will download the required artifacts.
     
Thread Status:
Not open for further replies.

Share This Page