Bukkit API Referencing Issues

Discussion in 'Bukkit Help' started by BouncySlime555, Jul 31, 2015.

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

    BouncySlime555

    Hello everybody!
    I am quite new with using bukkit, and the official plugin tutorial on the bukkit wiki is a bit confusing where it teaches you how to reference the bukkit API, and when I make a class and import the code,
    org.bukkit.plugin.java.JavaPlugin in the main class.
    What my pom.xml file looks like:
    Code:
    <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
      <modelVersion>4.0.0</modelVersion>
      <groupId>com.enjin.slimecorp</groupId>
      <artifactId>ExplosionsMod</artifactId>
      <version>0.0.1-SNAPSHOT</version>
    <build>
          <plugins>
              <plugin>
                  <groupId>org.apache.maven.plugins</groupId>
                  <artifactId>maven-compiler-plugin</artifactId>
                  <configuration>
                      <source>1.7</source>
                      <target>1.7</target>
                  </configuration>
              </plugin>
          </plugins>
       </build>
       <repositories>
           <repository>
             <id>bukkit-repo</id>
             <url>http://repo.bukkit.org/content/groups/public/</url>
           </repository>
           <dependencies>
           <dependency>
               <groupId>org.bukkit</groupId>
               <artifactId>bukkit</artifactId>
               <version>1.7.9-R0.2</version>
               <type>jar</type>
               <scope>provided</scope>
           </dependency>
       </dependencies>
       </repositories>
    
    
    
    
    </project>
    What my class file looks like:
    Code:
    package com.enjin.slimecorp.ExplosionsMod;
    import org.bukkit.plugin.java.JavaPlugin;
    EnumHeader {ExplosionsMod} extends JavaPlugin {
    }
    Please help!
    P.S. I am using Java version 8 for this
     
  2. Offline

    moe097

    @BouncySlime555
    Post this on the "Plugin Development" forum. You will find more help there.
     
Thread Status:
Not open for further replies.

Share This Page