Skip to content

tejashah88/Skins

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

64 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Build Status license issues support

Skins

Plugin created by MrIvanPlays

Supports 1.12.x, 1.13.2, 1.14.x, 1.15.x

Spigot page: click here

Development builds

Usually development builds are not recommended for a big server as they may contain a bunch of bugs. It is better to use a stable build which you can find at spigot

Retrieving a development build can be easily done by cloning the repository, then cd into the base directory, then run mvn package, retrieving jar from plugin/bootstrap/target or downloading jar from CI located here

Developer API

Installation:

NOTE: For older versions that 1.1.6-SNAPSHOT, you should use the old bintray repo url (https://dl.bintray.com/mrivanplaysbg/mrivanplays/) in order to achieve download.

Maven:

<repositories>
     <repository>
         <id>ivan</id>
         <url>https://repo.mrivanplays.com/repository/ivan/</url>
     </repository>
</repositories>

<dependencies>
    <dependency>
      <groupId>com.mrivanplays</groupId>
      <artifactId>skins-api</artifactId>
      <version>1.1.7</version>
      <scope>provided</scope>
    </dependency>
</dependencies>

Gradle:

repositories {
  maven {
    url "https://repo.mrivanplays.com/repository/ivan/"
  }
}

dependencies {
  compileOnly 'com.mrivanplays:skins-api:1.1.7'
}

Obtaining api instance

public class MyMainClass extends JavaPlugin {

    private SkinsApi skins;

    @Override
    public void onEnable() {
        setupSkinsApi();
        if (!getServer().getPluginManager().isPluginEnabled(this)) {
            return;
        }
        // other code
    }

    private void setupSkinsApi() {
        if (getServer().getPluginManager().getPlugin("Skins") == null) {
            getLogger().severe("Skins plugin required, disabling!");
            getServer().getPluginManager().disablePlugin(this);
            return;
        }
        RegisteredServiceProvider<SkinsApi> provider = 
                getServer().getServicesManager().getRegistration(SkinsApi.class);
        this.skins = provider.getProvider();
    }
}

Releases

No releases published

Packages

No packages published

Languages

  • Java 100.0%