Sueta

VortexSidebars [API]

1.1.0

Customizable sidebars for every purpose

·Plugin

About
VortexSidebars was made to make it easy for anyone to make sidebars for anything.
It supports hex codes, animated text, lambdas, and more!

Example
Code:

public final class Main extends JavaPlugin implements Listener {
    Sidebar sidebar;

    @Override
    public void onEnable() {
        Bukkit.getPluginManager().registerEvents(this, this);

        AnimatedText animatedText = new AnimatedText(this, List.of(
                TextColor.PURPLE + TextColor.BOLD + "CoolKid Network",
                TextColor.fromHex("D84797") + TextColor.BOLD + "CoolKid Network"
        ), 20);
        sidebar = new Sidebar(this, animatedText);
        List<Text> lines = List.of(
                new Text(TextColor.GRAY + "play.example.com"),
                new Text(TextColor.AQUA + "-----------------"),
                new Text(TextColor.GREEN + "Dev Status: " + TextColor.RED + "Procrastinating"),
                new FunctionText(() -> "" + Bukkit.getOnlinePlayers().size(), new Text(TextColor.GREEN + "Players: " + TextColor.YELLOW), new Text("/64")),
                new Text(TextColor.AQUA + "----------------- ")
        );
        for (Text line : lines) sidebar.addLine(line);
    }

    @EventHandler
    public void onJoin(PlayerJoinEvent event) {
        if (!sidebar.getPlayers().contains(event.getPlayer())) sidebar.addPlayer(event.getPlayer());
    }
}

Result:
YouTube

Usage
JavaDocs
Installation:
Maven:

<project>
    <repositories>
        <repository>
            <id>codemc-releases</id>
            <url>https://repo.codemc.io/repository/maven-releases/</url>
        </repository>
    </repositories>
 
    <dependencies>
        <dependency>
            <groupId>us.teaminceptus</groupId>
            <artifactId>vortexsidebars</artifactId>
            <version>[VERSION]</version>
            <scope>compile</scope>
        </dependency>
    </dependencies>
</project>

Gradle (Groovy):

repositories {
   maven { url 'https://repo.codemc.io/repository/maven-releases/' }
}

dependencies {
   implementation 'us.teaminceptus:vortexsidebars:[VERSION]'
}

Gradle (Kotlin DSL):

repositories {
   maven(url = "https://repo.codemc.io/repository/maven-releases/")
}

dependencies {
   implementation('us.teaminceptus:vortexsidebars:[VERSION]')
}

Contributors
- @DraginCraft (creator)
- @GamerCoder215

Similar projects

Plugin →