This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.util.Arrays; | |
import java.util.InputMismatchException; | |
import java.util.Scanner; | |
/** | |
* | |
* @author MeneXia (Xavi Ablaza) | |
* | |
*/ | |
public class TicTacToe { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 { |