Skip to content

Instantly share code, notes, and snippets.

View TheMasteredPanda's full-sized avatar

Duke Jake Morgan TheMasteredPanda

  • England, London.
View GitHub Profile
package io.pucman.server.conversation.action.block;
import org.bukkit.event.block.BlockPlaceEvent;
public abstract class BlockPlaceAction extends BlockAction<BlockPlaceEvent>
{
public BlockPlaceAction()
{
super(BlockPlaceEvent.class);
}
package org.js.faucet.script;
import lombok.Getter;
import lombok.RequiredArgsConstructor;
import org.apache.commons.io.Charsets;
import org.bukkit.Bukkit;
import org.js.faucet.FaucetJS;
import org.js.faucet.exception.TryUtils;
import javax.annotation.ParametersAreNonnullByDefault;
#/bin/bash
echo "--------------------[ Starting up the following servers ] --------------------"
echo "--> proxy - BungeeCord"
echo "--> towny - PaperSpigot Server"
echo "--> dev - PaperSpigot Server"
echo "-----------------------------------------------------------------------------"
sleep 1
cd /home
for file in ./*; do
const Bot = require('../../app.js');
let Firebase;
try {
Firebase = require('firebase');
} catch (e) {
console.log(Bot.Config.consolePrefix + " Firebase not installed, do 'npm install' to make sure all necessary packages are installed.");
}
@TheMasteredPanda
TheMasteredPanda / ReflectUtil.java
Created July 18, 2017 16:47
First rev of my ReflectUtil class
package com.themasteredpanda.library.utils.reflect;
import com.google.common.cache.CacheBuilder;
import com.google.common.cache.CacheLoader;
import com.google.common.cache.LoadingCache;
import com.google.common.collect.Lists;
import com.themasteredpanda.library.utils.UtilException;
import com.themasteredpanda.library.utils.reflect.accessors.ConstructorAccessor;
import com.themasteredpanda.library.utils.reflect.accessors.FieldAccessor;
import com.themasteredpanda.library.utils.reflect.accessors.MethodAccessor;
package com.themasteredpanda.library.bukkit.utils;
import com.themasteredpanda.library.utils.UtilException;
import org.bukkit.Bukkit;
import java.lang.reflect.Constructor;
import java.lang.reflect.Field;
import java.lang.reflect.InvocationTargetException;
import java.lang.reflect.Method;
package com.themasteredpanda.library.bungee.utils;
import com.google.common.collect.Lists;
import com.google.common.collect.Maps;
import com.themasteredpanda.library.utils.Pair;
import com.themasteredpanda.library.utils.UtilException;
import net.md_5.bungee.api.ChatColor;
import net.md_5.bungee.api.chat.BaseComponent;
import net.md_5.bungee.api.chat.TextComponent;
public class AddCommand extends MCommand
{
private Locale locale = null;
private DataManager dataManager = null;
private HCBooster instance = null;
private MainConfig config = null;
public AddCommand(HCBooster instance)
{
super(instance, "add", "hcbooster.admin", "Command to add a booster to the players", false);
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>com.hcsurvival.hcfarming</groupId>
<artifactId>HCFarming</artifactId>
<version>1.0</version>
package com.hcsurvival.hcbooster.config;
import com.themasteredpanda.library.config.yaml.BaseConfig;
import com.themasteredpanda.library.plugin.MPlugin;
import com.themasteredpanda.library.utils.Players;
import com.themasteredpanda.library.utils.TryUtils;
import java.util.List;
import java.util.UUID;