This file contains 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
package com.futuredev.tracker.util.msg; | |
import org.bukkit.ChatColor; | |
import org.bukkit.configuration.file.FileConfiguration; | |
import org.bukkit.configuration.file.YamlConfiguration; | |
import org.bukkit.plugin.java.JavaPlugin; | |
import java.io.File; | |
import java.io.InputStream; | |
import java.text.MessageFormat; |
This file contains 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
package com.futuredev.tracker.msg; | |
import java.util.ArrayList; | |
public class StringMath { | |
// "Multiplies" a string. | |
public static String multiply (String start, int times, String separator) { | |
String result = ""; | |
boolean first = true; |
This file contains 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
// A revamped version of the BooleanLogic class, with recursive parenthetical support. | |
package org.futuredev.tracker.util.lexers.params; | |
import org.futuredev.tracker.Tracker; | |
import org.futuredev.tracker.session.user.PlayerSession; | |
import org.futuredev.tracker.session.user.Session; | |
import org.futuredev.tracker.util.cmd.CommandProcessing; | |
import org.futuredev.tracker.util.enums.Permissions; | |
import org.futuredev.tracker.util.ex.CommandException; |
This file contains 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
// Ignore imports for our purposes | |
public class ExamplePlugin extends JavaPlugin { | |
@Override | |
public void onEnable () { | |
saveDefaultConfig(); | |
List<String> aliases = getConfig().getStringList("path.to.list"); | |
getCommand("test").setAliases(aliases); | |
} |
This file contains 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
package com.icloud.dcljr.MineCloudHardMode; | |
import java.util.Arrays; | |
import java.util.Iterator; | |
import java.util.List; | |
import java.util.Map; | |
import org.bukkit.Bukkit; | |
import org.bukkit.Location; | |
import org.bukkit.Material; |
This file contains 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.ArrayList; | |
// Changes a long into a human-readable format. | |
public class DateComparison { | |
int weeks, days, hours, minutes, seconds; | |
long time; | |
public DateComparison (long earlier, long later) { | |
this (later > earlier ? (later - earlier) : (earlier - later)); |
This file contains 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
public static String romanNumerals (int value) { | |
String[] values = { | |
"M", "CM", "D", "CD", "C", "XC", | |
"L", "XL", "X", "IX", "V", "IV", "I" | |
}; | |
int[] correspondents = { | |
1000, 900, 500, 400, 100, 90, | |
50, 40, 10, 9, 5, 4, 1 | |
} |
This file contains 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
package com.futuredev.facepalm; | |
import org.bukkit.plugin.java.JavaPlugin; | |
import org.bukkit.ChatColor; | |
import org.bukkit.command.*; | |
import org.bukkit.entity.Player; | |
/** | |
* My masterpiece, a true work of genius. | |
* Composed 2012. |
This file contains 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
"NOTE: This was written using an automated parser. Optimizations can obviously be made." | |
/tellraw @p | |
{ | |
"text": "[", | |
"color": "dark_gray", | |
"extra": [ | |
{ | |
"text": "6/3 ", | |
"color": "red", |