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_commit_messages.md
Last active May 28, 2024 05:10
Conventional Commit Messages

Conventional Commit Messages

See how a minor change to your commit message style can make a difference.

Tip

Have a look at git-conventional-commits , a CLI util to ensure these conventions and generate verion and changelogs

Commit Message Formats

Default

@matthewzring
matthewzring / markdown-text-101.md
Last active May 28, 2024 08:13
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 10, 2024 15:32
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 April 30, 2024 02:00
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);