Skip to content

Instantly share code, notes, and snippets.


  • Germany
Block or report user

Report or block Minecrell

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
Minecrell / jenks.css
Last active Jul 29, 2019
Jenks - A simple and clean theme for the Jenkins continous integration server. (Demo:
View jenks.css
* Jenks - A simple and clean theme for the Jenkins continous integration server.
* Copyright (c) 2014, Minecrell <>
* Licensed under the MIT License:
@import url(//|Source+Code+Pro);
body, table, form, input, td, th, p, textarea, select {
font-family: 'Open Sans', sans-serif;
Minecrell / Colorize.php
Last active Mar 22, 2019
Minecraft color parser for PHP
View Colorize.php
* Minecraft Color Parser for PHP
* Copyright (c) 2013, Minecrell
* MIT License:
function parseMinecraftColors($string) {
$string = utf8_decode(htmlspecialchars($string, ENT_QUOTES, "UTF-8"));
$string = preg_replace('/\xA7([0-9a-f])/i', '<span class="mc-color mc-$1">', $string, -1, $count) . str_repeat("</span>", $count);
Minecrell / [Bukkit]
Last active Dec 21, 2015
Get the real player damager behind an entity, for example if an entity was damaged by an arrow.
View [Bukkit]
public static Player getPlayerDamager(Entity damager) {
if (damager instanceof Player) return (Player) damager;
if (damager instanceof Projectile) {
Projectile projectile = (Projectile) damager;
Object shooter = projectile.getShooter(); // Doesn't really matter but will also make it work with pre 1.7
if (shooter != null && (shooter instanceof Player)) return (Player) shooter;
return null;
Minecrell / [Bukkit]
Last active Dec 19, 2015
Get the last entity damaged another entity.
View [Bukkit]
public static Entity getLastEntityDamager(Entity entity) {
EntityDamageEvent event = entity.getLastDamageCause();
if (event != null && !event.isCancelled() && (event instanceof EntityDamageByEntityEvent)) {
Entity damager = ((EntityDamageByEntityEvent) event).getDamager();
if (damager instanceof Projectile) {
Object shooter = ((Projectile) damager).getShooter();
if (shooter != null && (shooter instanceof Entity)) return (Entity) shooter;
// Add other special cases if necessary
Minecrell /
Last active Aug 5, 2016
API to modify some advanced Minecraft server list data.
* ServerListAPI - API to modify some advanced Minecraft server list data
* Copyright (C) 2013 Minecrell
* You are not allowed to use this API to fake online players on a production server.
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
You can’t perform that action at this time.