A small Reactive API with RxJava for Minecraft Paper Plugins.

Overview

GitHub GitHub issues GitHub code size in bytes

RxPaper

A small Reactive API with RxJava for Minecraft Paper Plugins.

Usage

RxPaper.io()

When you want to return something back in the Minecraft Thread

public void test(Plugin plugin) {
    Flowable.just("").subscribeOn(RxPaper.io(plugin)).subscribe();
}

RxPaper.event()

When you want to listen an Event

public void test(Plugin plugin) {
    RxPaper.event(plugin, PlayerJoinEvent.class).map(PlayerEvent::getPlayer).subscribe(player -> player.sendMessage("Hello"));
    RxPaper.event(plugin, PlayerJoinEvent.class, new EventSettings(EventPriority.MONITOR, false)).map(PlayerEvent::getPlayer).subscribe(player -> player.sendMessage("Hello later"));
}

RxPaper.command()

When you want to listen a Command

 public void test(Plugin plugin) {
    RxPaper.command(plugin, "test").subscribe(command -> command.commandSender().sendMessage("This is a command"));
}

Installation

Gradle

Kotlin

repositories {
    mavenCentral()
    maven {
        url = uri("https://maven.pkg.github.com/newspicel/rxjava")
    }
}    


dependencies {
    implementation("dev.newspicel.rxpaper:rxpaper:1.0")
}

Groovy

repositories {
    maven {
        url 'https://maven.pkg.github.com/newspicel/rxjava'
    }
}

dependencies {
    implementation 'dev.newspicel.rxpaper:rxpaper:1.0'
}

Maven

<repository>
     <id>github</id>
     <url>https://maven.pkg.github.com/newspicel/rxjava</url>
</repository>

<dependency>
    <groupId>dev.newspicel.rxpaper</groupId>
    <artifactId>rxpaper</artifactId>
    <version>1.0</version>
</dependency>
You might also like...

Backdoor injector for Bukkit/Spigot plugins.

MinePatcher Backdoor injector for Bukkit/Spigot plugins. MinePatcher was developed to test the security systems of Minecraft servers. Usage: 1. Window

Sep 18, 2022

COMMA Config API is an API allowing you to easily create complex and stylish config menu screens for Minecraft Fabric mods

COMMA Config API is an API allowing you to easily create complex and stylish config menu screens for Minecraft Fabric mods. COMMA stands for Configurable Options Menu Modding API

Jan 13, 2022

🚀Small java eventing library created to developer familiar with Bukkit,Nukkit and PowerNukkit...

FestivalKit 🇺🇸 Small event library for developers familiar with Bukkit,PowerNukkit and Nukkit 🇧🇷 Pequena libraria de eventos para desenvolvedores

Jan 2, 2022

A small game written in Java to review words.

这是一个实现网络连接的助记单词游戏 项目的具体功能: 实现多个用户通过网络连机进行游戏 通过对随机下落的六级词汇的补全,在游戏中提高用户的单词水平 记录每次游戏的成绩和情况(答对、答错、未答) 运用的技术及难点: 技术: 运用JavaSwing对游戏进行图形化开发,运用JavaSocket实现C/S

Feb 2, 2022

Just some small utilities for sandbox/modding

Testing Utilities Just some small utilities for sandbox/modding Team Changer: Change teams easilty. (Disabled in campaign) Seppuku Button: Kill yourse

Dec 12, 2022

The Minecraft Mod API

Bukkit A Minecraft Server API. Website: http://bukkit.org Bugs/Suggestions: http://leaky.bukkit.org Contributing Guidelines: CONTRIBUTING.md Compilati

Dec 31, 2022

A Minecraft plugin API

SpongeAPI A mature Minecraft plugin API (not including an implementation), licensed under the MIT License. Homepage Source Issues Documentation Commun

Dec 27, 2022

Bukkit transaction API for predicting when a server packet arrives at a client. Mainly intended for use in Minecraft anticheats.

Pledge A high performance and lightweight Bukkit packet tracking API for predicting when a server packet arrives at a client using transactions. Mainl

Dec 1, 2022

Minecraft Forge Hybrid server implementing the Spigot/Bukkit API (Cauldron for 1.18)

Minecraft Forge Hybrid server implementing the Spigot/Bukkit API (Cauldron for 1.18)

❓ About Magma is the next generation of hybrid minecraft server softwares. Magma is based on Forge and Paper, meaning it can run both Craftbukkit/Spig

Apr 18, 2022
Releases(1.0)
Owner
Julian Haag
Developer since 2015 from Germany
Julian Haag
💜 LiteSkullAPI Fast and extensive skull library for Bukkit/Spigot/Paper plugins

?? LiteSkullAPI Fast and extensive skull library for Bukkit/Spigot/Paper plugins. Helpful links: Support Discord GitHub issues Eternal Repository (Mav

Norbert Dejlich 16 Dec 2, 2022
A minecraft shop plugin for 1.17.1 paper.

shop-plugin Support server A minecraft shop plugin for 1.17.1 paper. Notes: NMS not required please dont copy the code, download the jar from releases

Empathy 4 Sep 7, 2022
DonationExecutor - плагин для Minecraft (Spigot/Paper)

DonationExecutor - плагин для Minecraft (Spigot/Paper) Плагин, который, получая информацию о новых донатах с Donation Alerts, автоматически генерирует

null 214 Dec 27, 2022
A Minecraft Paper Plugin for 1.18.2

A Minecraft Paper Plugin for 1.18.2

null 3 Dec 23, 2022
Small mod for Minecraft Forge 1.16.5 that sends messages of in-game events to a channel in your Discord server. This mod also enables cross-chatting between Minecraft and Discord.

DiscordSync Small mod for Minecraft Forge 1.16.5 that sends messages of in-game events to a channel in your Discord server. This mod also enables cros

AeonLucid 4 Dec 20, 2022
sign gui api for spigot plugins

hSignAPI public class ExampleSign extends JavaPlugin { private SignAPI signAPI; @Override public void onEnable() { this.signAPI

Hakan Kargın 4 Jan 6, 2022
particle api for spigot plugins

hParticleAPI public class ExampleParticle extends JavaPlugin { private ParticleAPI particleAPI; @Override public void onEnable() {

Hakan Kargın 4 Dec 15, 2021
Minecraft plugins with Java.

Minecraft plugins with Java.

null 2 Feb 22, 2022
Blocking the your minecraft plugins to show from server member

BSP Blocking your minecraft server plugins to show. 한국어 README Features Blocking your minecraft server plugins to show. Custom Events. Install Install

Plma75 2 Jan 22, 2022
Simple Rock Paper Scissors game

Java game Rock Paper Scissors Simple game where you play rock paper scissors against bot. Made for learning purposes. That include some of cool featur

Domagoj Ratko 1 Mar 6, 2022