Skip to content

Instantly share code, notes, and snippets.

@jamietech
jamietech / letters.java
Created May 31, 2017 07:21
Add reactions to JDA messages with letters
package emoji;
import net.dv8tion.jda.core.entities.Message;
public class letters {
private final String[] letters = new String[] { "\uD83C\uDDE6", "\uD83C\uDDE7", "\uD83C\uDDE8", "\uD83C\uDDE9", "\uD83C\uDDEA", "\uD83C\uDDEB", "\uD83C\uDDEC", "\uD83C\uDDED", "\uD83C\uDDEE", "\uD83C\uDDEF", "\uD83C\uDDF0", "\uD83C\uDDF1", "\uD83C\uDDF2", "\uD83C\uDDF3", "\uD83C\uDDF4", "\uD83C\uDDF5", "\uD83C\uDDF6", "\uD83C\uDDF7", "\uD83C\uDDF8", "\uD83C\uDDF9", "\uD83C\uDDFA", "\uD83C\uDDFB", "\uD83C\uDDFC", "\uD83C\uDDFD", "\uD83C\uDDFE", "\uD83C\uDDFF" };
public void react(Message message, String reaction) {
for (final char c : reaction.toUpperCase().toCharArray()) {
@noobmobile
noobmobile / Scroller.java
Last active May 31, 2021 17:16
Crie inventários com páginas infinitas, utilizando o pattern builder
package com.dont.testes.utils;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collection;
import java.util.HashMap;
import java.util.List;
import java.util.function.BiConsumer;
import java.util.function.Consumer;
@Braayy
Braayy / SimpleScoreboard.java
Created April 14, 2020 04:07
A simple and lightweight but powerful one class scoreboard lib
package braayy.simplescoreboard;
import org.bukkit.Bukkit;
import org.bukkit.ChatColor;
import org.bukkit.entity.Player;
import java.lang.reflect.Field;
import java.lang.reflect.Method;
import java.util.List;