Skip to content

Instantly share code, notes, and snippets.

Avatar
:atom:
Powered by 5 Hour Energy

Daniel Ennis aikar

:atom:
Powered by 5 Hour Energy
View GitHub Profile
View Permissions.java
/*
* Copyright (c) 2015. Starlis LLC / dba Empire Minecraft
*
* This source code is proprietary software and must not be redistributed without Starlis LLC's approval
*
*/
package com.empireminecraft.systems.perms;
import com.empireminecraft.config.EmpireServer;
View gist:b5c5237e56d6248e1608
2015-08-27T23:33:48.816-0400: 69623.600: [GC pause (G1 Evacuation Pause) (young) 9132M->7100M(10G), 0.0170914 secs]
2015-08-27T23:33:51.205-0400: 69625.989: [GC pause (G1 Evacuation Pause) (young) 9132M->7100M(10G), 0.0158718 secs]
2015-08-27T23:33:53.591-0400: 69628.375: [GC pause (G1 Evacuation Pause) (young) 9128M->7099M(10G), 0.0130365 secs]
2015-08-27T23:33:56.009-0400: 69630.793: [GC pause (G1 Evacuation Pause) (young) 9135M->7099M(10G), 0.0104178 secs]
2015-08-27T23:33:58.424-0400: 69633.208: [GC pause (G1 Evacuation Pause) (young) 9135M->7100M(10G), 0.0111653 secs]
2015-08-27T23:34:00.785-0400: 69635.569: [GC pause (G1 Evacuation Pause) (young) 9132M->7099M(10G), 0.0226399 secs]
2015-08-27T23:34:04.423-0400: 69639.207: [GC pause (G1 Evacuation Pause) (young) 9131M->7099M(10G), 0.0111666 secs]
2015-08-27T23:34:06.803-0400: 69641.587: [GC pause (G1 Evacuation Pause) (young) 9139M->7099M(10G), 0.0106886 secs]
2015-08-27T23:34:09.781-0400: 69644.565: [GC pause (G1 Evacuation Pause) (young) 9139M->7099M(10
View CustomMob.java
public static boolean attemptSpawn(Entity entity) {
Location loc = entity.getLocation();
long now = System.currentTimeMillis();
if (now - lastSpawnAttempt >= 200) {
lastSpawnAttempt = now;
final MetaApi.MetaMap worldMetaMap = MetaApi.getWorldMetaMap(entity.getWorld());
for (CustomMob customMob : spawnableList) {
String metaKey = "survivalRespawn_" + customMob.customType;
View gist:8727209
{display:{Lore:[0:"",1:"",2:"",3:"",4:"",5:"",6:"",7:"",8:"",9:"",10:"",11:"",12:"",13:"",14:"",15:"",16:"",17:"",18:"",19:"",20:"",21:"",22:"",23:"",24:"",25:"",26:"",27:"",28:"",29:"&&::SHINY",],Name:"§bShiny Arrow",},}
{ench:[],display:{Lore:[0:"",1:"",2:"",3:"",4:"",5:"",6:"",7:"",8:"",9:"",10:"",11:"",12:"",13:"",14:"",15:"",16:"",17:"",18:"",19:"",20:"",21:"",22:"",23:"",24:"",25:"",26:"",27:"",28:"",29:"&&::SHINY",],Name:"§bShiny Arrow",},}
View TaskChain.java
package com.empireminecraft.util;
import org.bukkit.Bukkit;
import java.util.concurrent.ConcurrentLinkedQueue;
public class TaskChain {
// Tells a task it will perform call back later.
public static final Object WAIT = new Object();
View TaskChain.java
package com.empireminecraft.util;
import org.bukkit.Bukkit;
import java.util.concurrent.ConcurrentLinkedQueue;
public class TaskChain {
// Tells a task it will perform call back later.
public static final Object WAIT = new Object();
View TaskChain.java
package com.empireminecraft.util;
import org.bukkit.Bukkit;
import java.util.concurrent.ConcurrentLinkedQueue;
public class TaskChain {
// Tells a task it will perform call back later.
public static final Object WAIT = new Object();
View gist:9220629
smp1:[06:43:58] [Async Chat Thread - #13/INFO]: willjfo issued server command: /res tp willjfo
smp1:[06:43:58] [Async Chat Thread - #13/ERROR]: null
smp1:org.bukkit.command.CommandException: Unhandled exception executing command 'res' in plugin Empire v1
smp1: at org.bukkit.command.PluginCommand.execute(PluginCommand.java:46) ~[minecraft_server.jar:git-Spigot-1.7.2-R0.3-48-g2dfb960]
smp1: at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:175) ~[minecraft_server.jar:git-Spigot-1.7.2-R0.3-48-g2dfb960]
smp1: at org.bukkit.craftbukkit.v1_7_R1.CraftServer.dispatchCommand(CraftServer.java:699) ~[minecraft_server.jar:git-Spigot-1.7.2-R0.3-48-g2dfb960]
smp1: at net.minecraft.server.v1_7_R1.PlayerConnection.handleCommand(PlayerConnection.java:974) [minecraft_server.jar:git-Spigot-1.7.2-R0.3-48-g2dfb960]
smp1: at net.minecraft.server.v1_7_R1.PlayerConnection.chat(PlayerConnection.java:887) [minecraft_server.jar:git-Spigot-1.7.2-R0.3-48-g2dfb960]
smp1: at org.bukkit.craftbukkit.v1_7_R1.entity.CraftPl
View PlayerSettingCommand.java
package com.empireminecraft.commands.misc;
import com.empireminecraft.commands.EmpireCommand;
import com.empireminecraft.commands.EmpireCommandAlias;
import com.empireminecraft.commands.EmpireCommandCompletion;
import com.empireminecraft.commands.EmpireSubcommand;
import com.empireminecraft.config.EmpireServer;
import com.empireminecraft.config.PlayerSettingKey;
import com.empireminecraft.data.EmpireUser;
import com.empireminecraft.util.ChatAPI;
View uuidconvert.py
import sys
import os
import math
import urllib2
import json
import time
import shutil
import uuid
from nbt import nbt # pip install nbt
You can’t perform that action at this time.