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.empireminecraft.emcapi; | |
/** | |
* Credits to original version @ | |
* http://forums.bukkit.org/threads/lib-fanciful-pleasant-chat-message-formatting.195148/ | |
* | |
* Improved to use proper components to fix issues | |
* @author aikar | |
* | |
*/ |
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 formatTime(Long seconds) { | |
return formatTime(seconds, 1); | |
} | |
public static String formatTime(Long seconds, int depth) { | |
if (seconds == null || seconds < 5) { | |
return "moments"; | |
} | |
if (seconds < 60) { | |
return seconds + " seconds"; |
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
var colors = { | |
0: "\033[0;30m", /* 00 BLACK 0x30 */ | |
1: "\033[0;34m", /* 01 BLUE 0x31 */ | |
2: "\033[0;32m", /* 02 GREEN 0x32 */ | |
3: "\033[0;36m", /* 03 CYAN 0x33 */ | |
4: "\033[0;31m", /* 04 RED 0x34 */ | |
5: "\033[0;35m", /* 05 PURPLE 0x35 */ | |
6: "\033[0;33m", /* 06 GOLD 0x36 */ | |
7: "\033[0;37m", /* 07 GREY 0x37 */ | |
8: "\033[1;30m", /* 08 DGREY 0x38 */ |
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:link, | |
a:visited, | |
.secondaryContent a, | |
.discussionListItems .unread .title a { | |
color: #ED8106; | |
} |
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
#if (${PACKAGE_NAME} && ${PACKAGE_NAME} != "")package ${PACKAGE_NAME};#end | |
import org.bukkit.plugin.java.JavaPlugin; | |
#parse("File Header.java") | |
public class ${NAME} extends JavaPlugin { | |
private static ${NAME} instance; |
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 hexchat | |
__module_name__ = "SpigotBridge" | |
__module_version__ = "1.0" | |
__module_description__ = "Improves chat view for B in #spigot on Spigot" | |
def chanmessage(word, word_eol, userdata, attr): | |
message = word_eol[3][1:] | |
target = "Channel Message" |
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
---- Minecraft Crash Report ---- | |
// Sorry :( | |
Time: 11/14/15 3:29 AM | |
Description: Ticking entity | |
java.lang.StackOverflowError: Ticking entity | |
at java.util.concurrent.ConcurrentHashMap.remove(ConcurrentHashMap.java:1097) | |
at java.util.Collections$SetFromMap.remove(Collections.java:5460) | |
at lo.b(SourceFile:66) |
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
# Not 100% required, just make sure that server.sh is executable (Can be removed/omitted) | |
chmod a+x server.sh | |
# Start Child Process in Separate Screen as a Daemon Process | |
screen -dmS [screen name] ./server.sh | |
# OPTIONAL: Re-attach Screen, exit with [CTRL+A+D] | |
screen -R [screen name] |
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
/* | |
* ================================================================== | |
* Copyright Domnian Dev. (c) 2015. All Rights Reserved | |
* ================================================================== | |
* | |
* MIT License: | |
* | |
* Permission is hereby granted, free of charge, to any person obtaining a copy of | |
* this software and associated documentation files (the "Software"), to deal in | |
* the Software without restriction, including without limitation the rights to use, |
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
/** | |
* ================================================================== | |
* Copyright Domnian Dev. (c) 2016. All Rights Reserved | |
* ================================================================== | |
* | |
* MIT License: | |
* | |
* Permission is hereby granted, free of charge, to any person obtaining a copy of | |
* this software and associated documentation files (the "Software"), to deal in | |
* the Software without restriction, including without limitation the rights to use, |