Skip to content

Instantly share code, notes, and snippets.

View iGabyTM's full-sized avatar
🖥️
https://gabytm.me/

Gabriel Dumitru iGabyTM

🖥️
https://gabytm.me/
View GitHub Profile
// licensed CC0 (except for iterator class, and Bukkit is GPL, so, IANAL, do what you want)
package xyz.jpenilla.gist;
import it.unimi.dsi.fastutil.ints.IntIntPair;
import java.util.Iterator;
import java.util.function.Consumer;
import net.kyori.adventure.key.Key;
import org.bukkit.World;
import org.bukkit.event.EventHandler;
import org.bukkit.event.Listener;
@YoungOG
YoungOG / .java
Created December 30, 2018 07:44
Here's the god damn "magic" kohi knockback, maybe people can stop believing in magic some day and just play the fucking game. Credit to OCN's SportBukkit for the relog fix
knockbackFriction = 2.0D;
knockbackHorizontal = 0.35D;
knockbackVertical = 0.35D;
knockbackVerticalLimit = 0.4D;
knockbackExtraHorizontal = 0.425D;
knockbackExtraVertical = 0.085D;
@qoomon
qoomon / conventional-commits-cheatsheet.md
Last active July 11, 2025 14:43
Conventional Commits Cheatsheet
@matthewzring
matthewzring / markdown-text-101.md
Last active July 5, 2025 18:19
A guide to Markdown on Discord.

Markdown Text 101

Want to inject some flavor into your everyday text chat? You're in luck! Discord uses Markdown, a simple plain text formatting system that'll help you make your sentences stand out. Here's how to do it! Just add a few characters before & after your desired text to change your text! I'll show you some examples...

What this guide covers:

@Jikoo
Jikoo / Experience.java
Last active May 16, 2025 15:34
A utility for managing experience with Bukkit.
package com.github.jikoo.planarwrappers.util;
import org.bukkit.entity.Player;
/**
* A utility for managing player experience.
*/
public final class Experience {
/**
@graywolf336
graywolf336 / BukkitSerialization.java
Last active May 15, 2025 11:29
Serialize and deserialize the player's inventory, including armor and content.
/**
* Converts the player inventory to a String array of Base64 strings. First string is the content and second string is the armor.
*
* @param playerInventory to turn into an array of strings.
* @return Array of strings: [ main content, armor content ]
* @throws IllegalStateException
*/
public static String[] playerInventoryToBase64(PlayerInventory playerInventory) throws IllegalStateException {
//get the main content part, this doesn't return the armor
String content = toBase64(playerInventory);