Skip to content

Instantly share code, notes, and snippets.

View sainttx's full-sized avatar

Matthew Steglinski sainttx

View GitHub Profile
@sainttx
sainttx / config.yml
Created March 12, 2015 22:00
TCore configuration
# TCore by SainttX
modules:
death-chest: true
enderpearl-cooldown: true
enderpearl-actionbar: true
apple-cooldown: true
apple-actionbar: true
combat-region: true
tnt-defuse: true
@sainttx
sainttx / config.yml
Created March 9, 2015 00:52
hClicker configuration for HydraPvP
# ClickTest by SainttX
# Valid materials for the item can be found here: https://hub.spigotmc.org/javadocs/spigot/org/bukkit/Material.html
test-length-seconds: 5
item:
material: COOKIE
name: "&dClicking Speed Test"
lore:
- "&7Right-click to test your clicking speed!"
@sainttx
sainttx / config.yml
Last active August 29, 2015 14:16
hEnchantments configuration for HydraPVP
# EnchantmentLimiter plugin by SainttX
# Define limited enchantments here by adding new entries
# entries are to be define by Enchantment: Max Level
# ie. DAMAGE_ALL: 4 (Sharpness IV would be the max level)
# Find enchantments here: https://hub.spigotmc.org/javadocs/spigot/org/bukkit/enchantments/Enchantment.html
limited:
DAMAGE_ALL: 4
ARROW_DAMAGE: 1
@sainttx
sainttx / config.yml
Last active August 29, 2015 14:16
Crates plugin configuration for evopvp.net
# Crates for evopvp.net by SainttX
gui:
title: "Crates"
right-click-message: "&6Head over to &ehttp://store.evopvp.net/ &6to purchase more keys!"
crates:
minor:
menu-index: 12
icon:
@sainttx
sainttx / config.yml
Created March 6, 2015 15:04
Moderation configuration for EvoPVP
# SQL data is to be input here
sql:
host: 'localhost'
port: 3306
username: 'root'
password: ""
db: 'Moderation'
table: 'moderation'
# Here is where you can define your warnings
@sainttx
sainttx / Database.java
Created February 28, 2015 07:48
Database class
package pckg;
import org.bukkit.configuration.Configuration;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.SQLException;
import java.util.logging.Level;
/**
@sainttx
sainttx / config.yml
Last active August 29, 2015 14:16
ShopGUI Configuration
# ShopGUI by SainttX
# This section allows you to configure various parts of the
# shops appearance/messages
gui:
# The title of the main menu
title: "Shop: MENU"
# The following three options allow you to format the lore
# of every individual items price descriptions
buy-text: "Buy: ${0} (Amount: {1})"
@sainttx
sainttx / Reflection.java
Created February 24, 2015 03:31
A reflection utility class
package net.evopvp.moderation.util;
import org.bukkit.Bukkit;
import org.bukkit.entity.Player;
import java.lang.reflect.Constructor;
import java.lang.reflect.Field;
import java.lang.reflect.Method;
import java.util.HashMap;
import java.util.Map;
@sainttx
sainttx / Test.java
Created February 23, 2015 21:51
Sending serialized objects over the BungeeCord messaging channels tests
// WRITING
Object o = someObject; // A serializable object
byte[] serialized = o.serialize();
ByteArrayDataOutput out = ByteStreams.newDataOutput();
out.writeUTF("Forward");
out.writeUTF("ALL");
out.writeUTF("subchannel");
@sainttx
sainttx / config.yml
Created February 22, 2015 22:53
VpCollect Configuration
# Collect by SainttX
# A list that allows you to configure the material types that fortune applies to
# Get valid types here: https://hub.spigotmc.org/javadocs/spigot/org/bukkit/Material.html
allow-fortune-for:
- EMERALD
- DIAMOND
- REDSTONE
- COAL
- QUARTZ