Skip to content

Instantly share code, notes, and snippets.

View mtbarr's full-sized avatar
🏠
Working from home

Matheus Barreto mtbarr

🏠
Working from home
View GitHub Profile

Vilões da Saga Principal - Dragon Ball Xenoverse 2

Arco Saiyajins

  • Raditz
  • Nappa
  • Vegeta (Oozaru)

Arco Freeza

  • Dodoria
  • Zarbon
import com.comphenix.protocol.PacketType;
import com.comphenix.protocol.ProtocolLibrary;
import com.comphenix.protocol.events.PacketAdapter;
import com.comphenix.protocol.events.PacketEvent;
import org.bukkit.entity.Entity;
import org.bukkit.entity.Player;
import org.bukkit.event.Listener;
import org.bukkit.plugin.Plugin;
public class InternalPlayerPacketListener extends PacketAdapter implements Listener {
package net.draconstudios.plugins.nms.v1_8_R3;
import com.google.common.collect.Lists;
import com.google.common.collect.Sets;
import net.draconstudios.plugins.nms.RedstoneReflectionUtil;
import net.minecraft.server.v1_8_R3.*;
import org.apache.commons.lang3.ArrayUtils;
import org.bukkit.event.block.BlockRedstoneEvent;
import java.util.Iterator;
package io.github.sasuked.plugins.nametagsplugin.replacement;
import me.clip.placeholderapi.expansion.PlaceholderExpansion;
import org.bukkit.OfflinePlayer;
import org.jetbrains.annotations.NotNull;
import java.util.function.BiFunction;
public class PlaceholderBuilder {
private String author;
@mtbarr
mtbarr / StringReplacer.java
Created August 29, 2021 21:15
Chained function to replace string labels easily.
package br.com.thelegion.legioncommons.chat.replacer;
import org.bukkit.ChatColor;
import java.util.function.Function;
import java.util.function.Supplier;
/**
* <code>
* Player player = Players.getPlayer("Sasuked");
package io.github.sasuked.legionguilds.utils.cache;
import java.util.concurrent.TimeUnit;
import java.util.function.Supplier;
public class TemporaryValue<T> {
private final Supplier<T> supplier;
private T currentValue;
@mtbarr
mtbarr / EconomyWrapper.java
Created April 11, 2021 12:41
Economy implementation with less boilerplate
import net.milkbowl.vault.economy.Economy;
import net.milkbowl.vault.economy.EconomyResponse;
import org.bukkit.OfflinePlayer;
import java.util.Collections;
import java.util.List;
public abstract class EconomyWrapper implements Economy {
public boolean hasBankSupport() {
@mtbarr
mtbarr / Description.java
Last active March 6, 2021 00:35
A delegation to work item descriptions (Lore) intelligently. It will generally be necessary to make defensive copies to make customizations.
package io.github.sasuked.gear.utils.description;
import com.google.common.base.Strings;
import com.google.common.collect.ImmutableList;
import org.bukkit.ChatColor;
import java.util.List;
import java.util.function.Function;
/**
@mtbarr
mtbarr / EventAwaiter.java
Last active January 31, 2021 03:15
Await for bukkit events.
package io.github.sasuked.evento.awaiter;
import org.bukkit.Bukkit;
import org.bukkit.event.Event;
import org.bukkit.event.EventPriority;
import org.bukkit.event.HandlerList;
import org.bukkit.event.Listener;
import org.bukkit.plugin.Plugin;
import org.bukkit.plugin.RegisteredListener;
@mtbarr
mtbarr / GitCommitEmoji.md
Created December 29, 2020 19:27 — forked from parmentf/GitCommitEmoji.md
Git Commit message Emoji