Skip to content

Instantly share code, notes, and snippets.

View willies952002's full-sized avatar
💻
Working on Code

willies952002 willies952002

💻
Working on Code
View GitHub Profile
@willies952002
willies952002 / AsyncDbQueue.java
Created June 4, 2017 19:01 — forked from aikar/AsyncDbQueue.java
Empire Minecraft DB Wrapper - EmpireDb - Released as MIT
package com.empireminecraft.systems.db;
import com.empireminecraft.util.Util;
import java.sql.SQLException;
import java.util.Queue;
import java.util.concurrent.ConcurrentLinkedQueue;
import java.util.concurrent.locks.Lock;
@willies952002
willies952002 / TaskChainedJavaPlugin.java
Last active April 2, 2017 05:58
Wrapper for Bukkit's JavaPlugin to include TaskChain methods - Requires TaskChain: https://taskchain.emc.gs
/*
* Copyright (c) 2017 willies952002 <admin@domnian.com>
*
* 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, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building commands 1.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
Downloading: http://ci.emc.gs/nexus/content/groups/aikar/com/destroystokyo/paper/paper-api/1.10-R0.1-SNAPSHOT/maven-metadata.xml
Downloading: https://repo.destroystokyo.com/repository/maven-public/com/destroystokyo/paper/paper-api/1.10-R0.1-SNAPSHOT/maven-metadata.xml
Downloading: http://ci.emc.gs/nexus/content/groups/aikar/com/destroystokyo/paper/paper-api/1.10-R0.1-SNAPSHOT/paper-api-1.10-R0.1-SNAPSHOT.pom
Downloading: https://repo.destroystokyo.com/repository/maven-public/com/destroystokyo/paper/paper-api/1.10-R0.1-SNAPSHOT/paper-api-1.10-R0.1-SNAPSHOT.pom
[WARNING] The POM for com.destroystokyo.paper:paper-api:jar:1.10-R0.1-SNAPSHOT is missing, no dependency information available
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building commands 1.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[WARNING] The POM for com.destroystokyo.paper:paper-api:jar:1.10-R0.1-SNAPSHOT is missing, no dependency information available
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 0.795 s
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building commands 1.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[WARNING] The POM for com.destroystokyo.paper:paper-api:jar:1.10-R0.1-SNAPSHOT is missing, no dependency information available
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 0.743 s
diff --git a/.idea/compiler.xml b/.idea/compiler.xml
index 8a0e6a6..e47bfc0 100644
--- a/.idea/compiler.xml
+++ b/.idea/compiler.xml
@@ -6,11 +6,11 @@
<sourceOutputDir name="target/generated-sources/annotations" />
<sourceTestOutputDir name="target/generated-test-sources/test-annotations" />
<outputRelativeToContentRoot value="true" />
- <module name="commands" />
+ <module name="command" />
diff --git a/.idea/compiler.xml b/.idea/compiler.xml
index 8a0e6a6..e47bfc0 100644
--- a/.idea/compiler.xml
+++ b/.idea/compiler.xml
@@ -6,11 +6,11 @@
<sourceOutputDir name="target/generated-sources/annotations" />
<sourceTestOutputDir name="target/generated-test-sources/test-annotations" />
<outputRelativeToContentRoot value="true" />
- <module name="commands" />
+ <module name="command" />
static final RemovalListener<Object, EmpireUser> USER_REMOVAL_LISTENER = notification -> {
final EmpireUser user = notification.getValue();
switch (notification.getCause()) {
case EXPIRED:
case SIZE:
if (user != null && user.getPlayer() != null && user.getPlayer().isOnline()) {
user.refreshCaches();
}
}
@willies952002
willies952002 / DB.php
Created August 17, 2016 10:11 — forked from aikar/DB.php
<?php
function DB($query, $args = NULL, $return = false) {
$stmt = DB::prepare($query);
if ($args !== NULL && !is_array($args) && func_num_args() == 2) {
//support DB(query,return)
$return = $args;
$args = array();
}
if (!is_null($args) && is_array($args)) {
@willies952002
willies952002 / btccheck.php
Last active August 13, 2016 08:33
BTC Exchange Rate Checker - A simple script that is used to check the current exchange rate of Bitcoins (BTC)
<?php
/*
* Copyright (c) 2016 William Surgeon (willies952002) <admin@domnian.com>
*
* 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,