Solved Paper with NMS using Maven

Discussion in 'Spigot Plugin Help' started by Enecildn, Aug 13, 2018 at 3:19 AM.

  1. Code (Text):
        <repositories>
            <repository>
                <id>destroystokyo-repo</id>
                <url>https://repo.destroystokyo.com/repository/maven-public/</url>
            </repository>
            <repository>
                <id>sonatype</id>
                <url>https://oss.sonatype.org/content/groups/public/</url>
            </repository>
        </repositories>

        <dependencies>
            <dependency>
                <groupId>com.destroystokyo.paper</groupId>
                <artifactId>paper-api</artifactId>
                <version>1.13-R0.1-SNAPSHOT</version>
                <scope>provided</scope>
            </dependency>
        </dependencies>
    In my pom.xml, I have these repositories and dependencies but it seems like there is no nms coming with paper-api. Is there another paper artifact that has nms in it like spitgot or do I just have to use spigot if I want to use nms?
     
  2. No idea about paper, I use spigot.
     
  3. Thank you. You are the most helpful person I have ever met.
     
  4. Thank you for the vouch, .. it's nice to help with spigot when the question is about paper.
     
  5. You need to import the Spigot API for nms. Here my pom for reference.

    Code (Text):
           
    <repositories>
        <repository>
            <id>spigot-repo</id>
            <url>https://hub.spigotmc.org/nexus/content/repositories/snapshots/</url>
        </repository>
        <repository>
            <id>destroystokyo-repo</id>
            <url>https://repo.destroystokyo.com/repository/maven-public//</url>
        </repository>
    </repositories>

    ------------------------------------------------------------------------------------------

    <!--Paperclip API -->
            <dependency>
                <groupId>com.destroystokyo.paper</groupId>
                <artifactId>paper-api</artifactId>
                <version>1.12.2-R0.1-SNAPSHOT</version>
                <scope>provided</scope>
            </dependency>

            <!--Bukkit API -->
            <dependency>
                <groupId>org.bukkit</groupId>
                <artifactId>bukkit</artifactId>
                <version>1.12.2-R0.1-SNAPSHOT</version>
                <scope>provided</scope>
            </dependency>

            <!--Spigot API and NMS -->
            <dependency>
                <groupId>org.spigotmc</groupId>
                <artifactId>spigot</artifactId>
                <version>1.12.2-R0.1-SNAPSHOT</version>
                <scope>provided</scope>
            </dependency>
     
  6. Sorry OP, i am stupid.
    I for some reason completely misinterpreted what you meant with your thread.

    -- watch me walk out of here admitting that it's late and the sun is up and i need sleep. #sorry
     
  7. @Parozzz Thank you.

    @mrfloris I am also sorry for being sarcastic. I did not know you misinterpreted my question. Next time, I will make sure to post a question more clearly.
     
    • Friendly Friendly x 2

Share This Page