Skip to content

Instantly share code, notes, and snippets.

@xZise
xZise / configuration.txt
Created September 1, 2011 14:44
dynmap configuration files (0.22)
# All paths in this configuration file are relative to Dynmap's data-folder: minecraft_server/plugins/dynmap/
# All map templates are defined in the templates directory
# By default, the 'classic' FlatMap and KzedMap templates are used, which can be found in normal.txt, nether.txt, and skylands.txt
#
# To use the HDMap low-res map templates as world defaults (normal-lowres, nether-lowres and skylands-lowres), uncomment the following line
# The definitions of these templates are in normal-lowres.txt, nether-lowres.txt, and skylands-lowres.txt
#deftemplatesuffix: lowres
# To use the HDMap hi-res map templates (these can take a VERY long time for initial fullrender), comment the following line
# The definitions of these templates are in normal-hires.txt, nether-hires.txt, and skylands-hires.txt
@xZise
xZise / gist:1239791
Created September 24, 2011 20:05
getInteger w/ GM
private UserVariables getVariables(CommandSender sender) {
final Player player = MinecraftUtil.cast(Player.class, sender);
if (player != null) {
OverloadedWorldHolder permissions = this.groupManager.getWorldsHolder().getWorldData(player);
if (permissions != null) {
User user = permissions.getUser(player.getName());
if (user != null) {
return user.getVariables();
}
}
@xZise
xZise / gist:1240984
Created September 25, 2011 19:10
region list
r.0.0.mcr r.0.-5.mcr r.1.-2.mcr r.2.0.mcr r.-2.-2.mcr r.-3.0.mcr
r.0.1.mcr r.1.0.mcr r.-1.-2.mcr r.-2.0.mcr r.2.-3.mcr r.3.-1.mcr
r.0.-1.mcr r.-1.0.mcr r.1.-3.mcr r.2.1.mcr r.-2.-3.mcr r.-3.-1.mcr
r.0.-2.mcr r.1.1.mcr r.-1.-3.mcr r.2.-1.mcr r.2.-4.mcr r.3.-2.mcr
r.0.-3.mcr r.-1.1.mcr r.1.-4.mcr r.-2.-1.mcr r.-2.-4.mcr r.-3.-3.mcr
r.0.-4.mcr r.-1.-1.mcr r.-1.-4.mcr r.2.-2.mcr r.3.0.mcr r.3.-4.mcr
@xZise
xZise / gist:1306211
Created October 22, 2011 16:57
ConfigurationSection list
root:
- children: 1
info: None
- children: 2
info: Has one older sibling :P
- children: 3
info: is the youngest :( (?)
@xZise
xZise / AltCls.java
Created October 29, 2011 11:48
Method parser test classes
import com.tahkeh.loginmessage.methods.AliasMethod;
import com.tahkeh.loginmessage.methods.MethodParser;
import com.tahkeh.loginmessage.methods.PrintMethod;
import de.xzise.MinecraftUtil;
import de.xzise.XLogger;
public class AltCls {
private static MethodParser parser;
@xZise
xZise / example.js
Created November 16, 2011 10:53
Example methods configuration file
function name(player, event, parameters) {
return player.getName();
}
@xZise
xZise / Resolution.java
Created January 10, 2012 16:50
Resolution to Format
// Another way to handle the format related stuff
public class Resolution {
public static final Resolution FULL_HD = new Resolution(1920, 1080, "Full HD");
public static final Resolution HALF_HD = new Resolution(1280, 720, "Half HD");
public static final Resolution PAL = new Resolution( 720, 576, "PAL"); // Maybe 702?
public static final Resolution PALplus = new Resolution(1024, 576, "PALplus");
private static final RESOLUTIONS[] resolutions = new Resolution[] { FULL_HD, HALF_HD, PAL, PALplus };
@xZise
xZise / gist:2369546
Created April 12, 2012 17:42
Faster String → Long conversion
public static Long tryAndGetLong(String string, int radix) {
try {
return Long.parseLong(string, radix);
} catch (NumberFormatException e) {
return null;
}
}
private static final String DIGITS = "0123456789";
private static final String UPPER_DIGIT_MAP = "ABCDEFGHIJKLMNOPQRSTUVWXYZ";
@xZise
xZise / gist:4007885
Created November 3, 2012 16:53
LazyBones 1.0.0.0 Log
5:14:23 PM LAZYBONES FINE org.hampelratte.svdrp.Connection.<init>: VDR is running with charset UTF-8
5:14:23 PM LAZYBONES FINE org.hampelratte.svdrp.Connection.send: --> LSTC
5:14:23 PM LAZYBONES FINE org.hampelratte.svdrp.Connection.send: <-- 250 1 Das Erste HD;ARD:362000:C0M256:C:6900:6010=27:6020=deu@3,6021=mis@3;6022=deu@106:6030;6031=deu:0:11100:41985:1051:0
2 ZDF HD;ZDFvision:370000:C0M256:C:6900:6110=27:6120=deu@3,6121=mis@3,6123=mul@3;6122=deu@106:6130;6131=deu:0:11110:1:1079:0
3 SF2;Bonus:746000:C0M64:C:6900:502=2:503=deu@3,504=eng@3:506:0:22264:40984:231:0
4 TELE 5;Frei deutsch:466000:C0M256:C:6900:702=2:703=deu@3:706:0:22006:40984:216:0
5 SWR Fernsehen BW;ARD:346000:C0M256:C:6900:801=2:802=deu@3,803=mis@3;806=deu@106:804:0:28113:41985:1101:0
6 SAT 1;Pro7 & Sat.1:121000:C0M64:C:6900:202=2:203=deu@3;205=deu@106:206:0:17500:40984:1107:0
7 RTL Television,RTL;RTL:113000:C0M64:C:6900:102=2:103=deu@3;105=deu@106:106;110=deu:0:12003:40984:1089:0
8 RTL 2;RTL:113000:C0M64:C:6900:202=2:203=deu@3:206:0:12020:4
@xZise
xZise / gist:4090180
Created November 16, 2012 19:33
LazyBones 1.0.1.0 debug Log
8:31:37 PM LAZYBONES WARNING lazybones.TimerManager.getTimer: Unique program ID is null. Unable to find a timer for this program
8:31:37 PM LAZYBONES FINE org.hampelratte.svdrp.Connection.<init>: VDR is running with charset UTF-8
8:31:37 PM LAZYBONES FINE org.hampelratte.svdrp.Connection.send: --> LSTC
8:31:38 PM LAZYBONES FINE org.hampelratte.svdrp.Connection.send: <-- 250 1 Das Erste HD;ARD:362000:C0M256:C:6900:6010=27:6020=deu@3,6021=mis@3;6022=deu@106:6030;6031=deu:0:11100:41985:1051:0
2 ZDF HD;ZDFvision:370000:C0M256:C:6900:6110=27:6120=deu@3,6121=mis@3,6123=mul@3;6122=deu@106:6130;6131=deu:0:11110:1:1079:0
3 SF2;Bonus:746000:C0M64:C:6900:502=2:503=deu@3,504=eng@3:506:0:22264:40984:231:0
4 TELE 5;Frei deutsch:466000:C0M256:C:6900:702=2:703=deu@3:706:0:22006:40984:216:0
5 SWR Fernsehen BW;ARD:346000:C0M256:C:6900:801=2:802=deu@3,803=mis@3;806=deu@106:804:0:28113:41985:1101:0
6 SAT 1;Pro7 & Sat.1:121000:C0M64:C:6900:202=2:203=deu@3;205=deu@106:206:0:17500:40984:1107:0
7 RTL Television,RTL;RTL:113000:C0M64: