Skip to content

Integration

Pelicoon edited this page Jul 12, 2018 · 1 revision

DiscordRP has a build in Plugin System. Which means it allows other mods to modify certain things in DiscordRP. Please note that DiscordRP Plugins can only add new dimensions right now.

Example

So let's say you have a mod that adds a couple dimensions you can easily add them to DiscordRP as well, this example will add integration with the Aroma1997s Dimension World mod:

import me.paulhobbel.discordrp.api.DiscordRPPlugin;
import me.paulhobbel.discordrp.api.IDiscordRPPlugin;
import me.paulhobbel.discordrp.api.IDiscordRPRegistry;
import me.paulhobbel.discordrp.api.impl.Dimension;

@DiscordRPPlugin(modid = "aroma1997sdimension")
public class AromasPlugin implements IDiscordRPPlugin {
    @Override
    public void register(IDiscordRPRegistry registry) {
        registry.registerDimension(new Dimension("miningworld", "Mining World"), "MiningWorld");
    }
}
Clone this wiki locally