Skip to content

Instantly share code, notes, and snippets.

View xaviablaza-zz's full-sized avatar

Xavi Ablaza xaviablaza-zz

  • Chapman University
  • Orange, CA
View GitHub Profile
@xaviablaza-zz
xaviablaza-zz / TicTacToe.java
Created October 6, 2012 12:39
A simple Tic-Tac-Toe game.
import java.util.Arrays;
import java.util.InputMismatchException;
import java.util.Scanner;
/**
*
* @author MeneXia (Xavi Ablaza)
*
*/
public class TicTacToe {
@xaviablaza-zz
xaviablaza-zz / config.yml
Created July 12, 2012 09:23
DeathInsurance Sample configuration
# DeathInsurance Configuration File
Insurances:
# Set attributes for each individual insurance
Zombie:
Price: 100
# Specify the price to purchase the above insurance
Retrievable: true
# Set whether items should be retrievable from this type of death
Skeleton:
Price: 100
@xaviablaza-zz
xaviablaza-zz / Main.java
Created March 21, 2012 10:24
Main Plugin Method Essentials
private void checkConfig() {
String name = "config.yml";
File actual = new File(getDataFolder(), name);
if (!actual.exists()) {
getDataFolder().mkdir();
InputStream input = this.getClass().getResourceAsStream("/defaults/config.yml");
if (input != null) {
FileOutputStream output = null;
try {