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
package io.github.sasuke.newvalencia.core.tooling.nms.combat;
import com.comphenix.protocol.ProtocolLibrary;
import com.comphenix.protocol.events.PacketAdapter;
import com.comphenix.protocol.events.PacketContainer;
import com.comphenix.protocol.events.PacketEvent;
import com.comphenix.protocol.wrappers.EnumWrappers.EntityUseAction;
import io.github.sasuke.newvalencia.core.CorePlugin;
import io.github.sasuke.newvalencia.core.tooling.event.async.AsyncPlayerPreDamageEntityEvent;
import org.bukkit.Bukkit;
package io.github.ninjaservices.factions.faction.relation;
import com.google.common.collect.Maps;
import java.util.Map;
import java.util.UUID;
public class FactionRelationList {
private final Map<UUID , FactionRelation> relationMap;
package io.github.ninjaservices.factions.util.hologram;
import lombok.AccessLevel;
import lombok.Getter;
import net.minecraft.server.v1_8_R3.*;
import org.bukkit.Bukkit;
import org.bukkit.Location;
import org.bukkit.craftbukkit.v1_8_R3.CraftWorld;
import org.bukkit.craftbukkit.v1_8_R3.entity.CraftPlayer;
import org.bukkit.entity.Player;
package io.github.ninjaservices.factions.util.event;
import io.github.ninjaservices.factions.FactionsPlugin;
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;
package io.github.sasuked.ninjaspigot.network;
import io.netty.buffer.ByteBuf;
import io.netty.channel.ChannelHandlerContext;
import io.netty.handler.codec.ByteToMessageDecoder;
import net.minecraft.server.EnumProtocolDirection;
import net.minecraft.server.NetworkManager;
import net.minecraft.server.Packet;
import net.minecraft.server.PacketDataSerializer;
import org.apache.logging.log4j.LogManager;
package io.github.ninjaservices.factions.util.event;
import io.github.ninjaservices.factions.FactionsPlugin;
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 / EngineMenuGui.java
Created November 9, 2020 18:17
Se liga que beleza
package com.massivecraft.factions.engine;
import com.massivecraft.factions.Rel;
import com.massivecraft.factions.customclaim.CustomClaim;
import com.massivecraft.factions.engine.GuiHolder.Menu;
import com.massivecraft.factions.entity.*;
import com.massivecraft.factions.event.EventFactionsMembershipChange;
import com.massivecraft.factions.integration.vault.Eco;
import com.massivecraft.factions.util.ItemBuilder;
import com.massivecraft.massivecore.Engine;
@mtbarr
mtbarr / GitCommitEmoji.md
Created December 29, 2020 19:27 — forked from parmentf/GitCommitEmoji.md
Git Commit message Emoji
@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 / 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;
/**