Skip to content

Instantly share code, notes, and snippets.

View Phoenix616's full-sized avatar
🔥
👀

Max Lee Phoenix616

🔥
👀
View GitHub Profile
package com.empireminecraft.systems.db;
import com.empireminecraft.util.Util;
import java.sql.SQLException;
import java.util.Queue;
import java.util.concurrent.ConcurrentLinkedQueue;
import java.util.concurrent.locks.Lock;
import java.util.concurrent.locks.ReentrantLock;
@zachbr
zachbr / paper.md
Last active January 22, 2016 00:17
PaperSpigot paper.yml temporary "wiki" (air quotes) : Please use https://paper.readthedocs.org/
package com.brohoof.minelittlepony.model;
import com.brohoof.minelittlepony.renderer.PlaneRenderer;
import net.minecraft.client.model.ModelBox;
import net.minecraft.client.model.PositionTextureVertex;
import net.minecraft.client.model.TexturedQuad;
import net.minecraft.client.renderer.VertexBuffer;
public class ModelPlane extends ModelBox {
@SupaHam
SupaHam / RainbowSky.java
Created December 4, 2014 23:54
Create a colourful sky. The SkyColors are best rendered during day. These colors were the best I could find without repeating them. This triggers a rain effect (on the client side), so it would be wise to cover their heads with blocks, especially far above so they don't hear the rain sounds. I'd recommend Barrier blocks at level 256 in adjacent …
package com.supaham.bukkittesting.protolib;
import com.comphenix.protocol.PacketType;
import com.comphenix.protocol.ProtocolManager;
import com.comphenix.protocol.events.PacketContainer;
import com.supaham.bukkittesting.BukkitTesting;
import org.bukkit.entity.Player;
import org.bukkit.event.EventHandler;
import org.bukkit.event.block.Action;
import net.minecraft.server.v1_10_R1.Block;
import net.minecraft.server.v1_10_R1.BlockPosition;
import net.minecraft.server.v1_10_R1.Blocks;
import net.minecraft.server.v1_10_R1.ChunkCoordIntPair;
import net.minecraft.server.v1_10_R1.DefinedStructure;
import net.minecraft.server.v1_10_R1.DefinedStructureInfo;
import net.minecraft.server.v1_10_R1.DefinedStructureManager;
import net.minecraft.server.v1_10_R1.EnumBlockMirror;
import net.minecraft.server.v1_10_R1.EnumBlockRotation;
import net.minecraft.server.v1_10_R1.MinecraftKey;
@SagaciousZed
SagaciousZed / ConfigAccessor.java
Last active May 1, 2021 14:13
Utility to access yaml files in bukkit
/*
* Copyright (C) 2012
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
@MiniDigger
MiniDigger / StructureUtil.java
Last active May 27, 2021 09:07
Small util to load and save structures, using nms and reflection
import java.lang.reflect.Constructor;
import java.lang.reflect.InvocationTargetException;
import java.lang.reflect.Method;
import org.bukkit.Bukkit;
import org.bukkit.Location;
import org.bukkit.util.Vector;
/**
* Small util to load and save structures<br>
@mikroskeem
mikroskeem / fw.sh
Last active July 8, 2023 21:48
Allow only TCPShield IPs to connect to your server, using iptables & ipset
#!/bin/sh
iptables -A INPUT -m set --match-set tcpshield-ips src -p tcp --dport 32767 -j ACCEPT
iptables -A INPUT -p tcp --dport 32767 -j DROP
@Owen1212055
Owen1212055 / custom-player-entity-names.md
Last active October 18, 2023 23:38
Custom Player Entity Names

Custom Player Names

alt text

This is meant as a resource to mimic setting player names whilst ensuring that it is positioned in the same way as an actual nametag.

The current issue

Currently, player entities ignore the custom DATA_CUSTOM_NAME EntityDataAccessor, which sadly means that we cannot just easily change the name of the player entity. Hopefully in the future this functionality will be provided so we do not have to apply such hacky methods.

My implementation (simplified)

Objective

The goal is being able to mix your microphone and desktop audio into a single track, while leaving Discord out of the equation. This allows you to stream your desktop audio and talk while in a call, without your partners hearing themselves.

Voicemeeter Setup

Download Voicemeeter

Voicemeeter Banana