HomeJavaModsMclistaPlugin
MclistaPlugin
ModsJava

MclistaPlugin

by kerpsondev · on Modrinth

Which Minecraft do you have?

Every version of the game needs its own build. Pick yours, then download — the wrong build installs fine and then does nothing in the game. This mod is built for Bukkit only.

⬇ Download for 1.21.11⬇ Download for 1.21.8⬇ Download for 1.8.9⬇ Download for 1.8.8
I don't know my version or loader
Open the Minecraft launcher and look at the profile you play on — it names both, like fabric-loader-1.21.4. The version also shows in the bottom-right corner of the game's main menu.
No loader in the profile name? Then it's plain Minecraft, and these mods won't run — you need Fabric or NeoForge installed first.

Release

Official plugin created for mclista.pl website.
Simple configuration, very fast and reliable.

⚙️ Requirements

💛 API module

Api may add to project maven/gradle
Currently supported platforms:

Maven

<repositories>
  <repository>
    <id>mclista-repository-releases</id>
    <name>Repozytorium McLista</name>
    <url>https://repository.mclista.pl/releases</url>
  </repository>
</repositories>

<dependencies>
  <dependency>
    <groupId>pl.mclista</groupId>
    <artifactId>mclista-{platform}-api</artifactId>
    <version>1.1.0-beta2</version>
  </dependency>
</dependencies>

Gradle

maven {
    name = "mclistaRepositoryReleases"
    url = uri("https://repository.mclista.pl/releases")
}

implementation("pl.mclista:mclista-{platform}-api:1.1.0-beta2")

🤖 API usage

In first order i recommend get class DeveloperService by registry.
Example for bukkit api:

RegisteredServiceProvider<DeveloperService> provider = Bukkit.getServicesManager().getRegistration(DeveloperService.class);
if (provider != null) {
  DeveloperService developerService = provider.getProvider();
}

DeveloperService returns two objects, UserService and RewardApiClient.
Every action that returns object will return DeveloperService:

  @NotNull RESULT getResult();

  @Nullable Optional<Throwable> getThrowable();

Event handling

Plugin currently has 2 events:

Event for every module has prefix {platform}, e.g.: BukkitPreRewardReceiveEvent.

UserService

Class UserService allows to operate on users, include offline users.
It gives you complete freedom in managing users.

  void addUser(@NotNull User user);

  void removeUser(@NotNull UUID uuid);

  Optional<User> getUser(@NotNull UUID uuid);

  @NotNull CompletableFuture<DeveloperAction<User>> loadUser(@NotNull UUID uuid);

  @NotNull CompletableFuture<DeveloperAction<User>> modifyUser(@NotNull UUID uuid, @NotNull Consumer<User> userConsumer);

  @NotNull CompletableFuture<DeveloperAction<Boolean>> saveUser(@NotNull User user);

  @NotNull Set<User> getUsers();

  @NotNull CompletableFuture<DeveloperAction<Set<User>>> loadUsers();

RewardApiClient

This object allows you to send a query to the API and receive a response indicating whether the player has voted on the list on our server or not.
To check whether the user has received a reward today, you need to compare the delay with the current time from the User object.
Alternatively, you can also set your own delay—the choice is yours!

💛 Project status

Alt

Quick facts

Install steps are the general flow for this file type — How to install Minecraft Java mods & modpacks walks through it step by step.

Verified by MCModsHub

These come from our own check of the pack file, not from the source page.

Explore more