Skip to content

Instantly share code, notes, and snippets.

View mdcfe's full-sized avatar

MD mdcfe

View GitHub Profile
@mdcfe
mdcfe / items.json
Last active May 31, 2019 14:39
genItemsFlat rerun on 1.14.x
This file has been truncated, but you can view the full file.
{
"acacia_boat": {
"material": "ACACIA_BOAT"
},
"acaciaboat": "acacia_boat",
"aboat": "acacia_boat",
"acacia_button": {
"material": "ACACIA_BUTTON"
},
"acaciabutton": "acacia_button",
@mdcfe
mdcfe / permSearch.js
Created January 3, 2018 18:16
EssentialsX raw permissions data
const walk = require("walk");
const fs = require("fs-extra");
const path = require("path");
const regex = /\.isAuthorized\("([a-z.-]+)"\)/g;
const essRoot = "<path to EssentialsX repo>";
const walker = walk.walk(essRoot);
const nodes = [];
@mdcfe
mdcfe / Common Issues.md
Last active August 19, 2017 09:39
EssX known issues wiki page drafting

Common issues with EssentialsX

Signs don't work

In your plugins/Essentials/config.yml file, you need to uncomment the lines under enabledSigns for each type of sign by removing the # before it:

enabledSigns:
  #- color
  - balance
  #- buy
@mdcfe
mdcfe / keybase.md
Last active November 3, 2020 19:28

Keybase proof

I hereby claim:

  • I am mdcfe on github.
  • I am md678685 (https://keybase.io/md678685) on keybase.
  • I have a public key ASB0HM7BJ7VSg0fskrepzFm3kxT0-6DRgGRVaRVuerOoeQo

To claim this, I am signing this object:

@mdcfe
mdcfe / compare.py
Last active November 5, 2017 15:33
EssentialsX translation comparison script
import os, re
base = "messages.properties"
with open(base) as baseFile:
baseKeys = re.findall(r"^([a-zA-z]+)=", baseFile.read(), re.MULTILINE)
for filename in os.listdir("."):
if filename.startswith("messages") and filename.endswith(".properties") and filename != base:
with open(filename) as compareFile:
@mdcfe
mdcfe / ISSUE_TEMPLATE.md
Last active July 1, 2017 22:57
EssX proposed issue template

EssentialsX version (/essentials):

Server software (/version):

@mdcfe
mdcfe / relay_fb-yt.sh
Created December 11, 2016 20:48
Facebook to YouTube Live relay
#! /bin/bash
sudo apt-get install vlc livestreamer jq # in case the packages aren't installed - replace with package manager of choice if not using apt
LSPORT='40106' # change this to any unused port on your machine
PATHTOFILE='http://localhost:'${LSPORT} # don't touch
STREAMID='fill-this-in12-3456' # find this on your YouTube livestreaming dashboard
FBVID='00000000000000000' # the ID of the FB video to stream, can be live or not live
STREAM=$(curl -s 'https://www.facebook.com/video/video_data/?video_id='${FBVID} | jq -r '.hd_src') # change '.hd_src' to '.sd_src' if you have a poor connection
@mdcfe
mdcfe / helloWorld.js
Created April 9, 2016 21:59
NodeMC plugin scripting POC
exports.init = function(pluginManager) {
pluginManager.on("commandSent", function(command) {
if (command == "helloworld") {
module.parent.exports.log("Hello world!");
}
});
}
@mdcfe
mdcfe / crash-2016-03-24_12.27.25-client.txt
Created March 24, 2016 14:41
Boardwalk 1.2 MC 1.9 crash
---- Minecraft Crash Report ----
// I just don't know what went wrong :(
Time: 24/03/2016 12:27
Description: Unexpected error
java.lang.NullPointerException: Attempt to read from field 'double rr.p' on a null object reference
at aht.a(SourceFile:1174)
at bng.h(SourceFile:1591)
at bng.a(SourceFile:1180)
---- Minecraft Crash Report ----
// I just don't know what went wrong :(
Time: 08/03/2016 13:10
Description: Unexpected error
java.lang.NullPointerException: Attempt to read from field 'double rr.p' on a null object reference
at aht.a(SourceFile:1174)
at bng.h(SourceFile:1591)
at bng.a(SourceFile:1180)