API & Dependencies - RockinChaos/FakeCreative GitHub Wiki

If you have any questions about anything feel free to contact me through spigot or join our discord!
All plugins listed below are optional and are NOT required, FakeCreative has absolutely no required dependencies and can run independently.


FakeCreative 's Custom API?

FakeCreative does in-fact allow other plugins to hook into it if needed. All API options are located under me.RockinChaos.fakecreative.api.FakeCreativeAPI.

Example of the API usage;

me.RockinChaos.fakecreative.api.FakeCreativeAPI.isCreativeMode(player, true) - You can as a plugin developer, check if a player is in fake creative mode.

There are A LOT of available API methods and more are constantly being added. You can see all available methods here; Available Methods.

There are also several events/listeners you can register in your plugin to detect the player entering creative, exiting creative, cloning items, auto crafting, etc. You can see all available methods here; Available Methods.

These events can be imported and called directly. Example;

import me.RockinChaos.fakecreative.api.events.PlayerEnterCreativeEvent;
@EventHandler()
private void onCreative(final PlayerEnterCreativeEvent event) {
	System.out.println(event.getPlayer().getName() + " has entered creative!");
}

If you wish to see a method added feel free to submit a request on GitHub!

If you are using FakeCreative 's API, you first have to import it into your project.

To import FakeCreative, simply add the following code to your pom.xml Replace {VERSION} with the version with the current release or snapshot version. This should look like 1.0.1-SNAPSHOT or 1.0.2-SNAPSHOT as an example. Never use RELEASE as the release version is not available for public access. The latest snapshot or snapshot corresponding after the release version such as the v1.0.0 release you should use the v1.0.1-SNAPSHOT.

    <repositories>
    <!--CraftationGaming Repository-->
        <repository>
            <id>CraftationGaming</id>
            <url>https://raw.githubusercontent.com/RockinChaos/repository/maven-public/</url>
        </repository>
    </repositories>
    <dependencies>
    <!--FakeCreative API-->
        <dependency>
            <groupId>me.RockinChaos.fakecreative</groupId>
            <artifactId>FakeCreative</artifactId>
            <version>{VERSION}</version>
            <scope>provided</scope>
        </dependency>
    </dependencies>

How does PlaceholderAPI work?

How do Placeholders work? FakeCreative supports PlaceholderAPI, meaning it can hook into the plugin and use those placeholders! You can use ANY of these placeholders, in all parts of FakeCreative. Such as the lang.yml and more! Placeholders will be supported by all parts of FakeCreative!!

How does ProtocolLib work?

There is nothing here that the user needs to configure, this should automatically fix any issues with handling the creative tabs. I highly suggest using ProtocolLib as it may resolve any issues you experience with the creative tabs!

How does SkinRestorer work?

There is nothing here that the user needs to configure, this should automatically fix and player heads given by FakeCreative.

How does BetterNick work?

There is nothing here that the user needs to configure. This allows FakeCreative to easily find your original player name and UUID if you are nicknamed using BetterNick.

⚠️ **GitHub.com Fallback** ⚠️