Skip to content

Instantly share code, notes, and snippets.

View DenWav's full-sized avatar
☂️
Hi

Kyle Wood DenWav

☂️
Hi
View GitHub Profile
@DenWav
DenWav / error
Created September 15, 2016 23:28
Parallel execution is an incubating feature.
FAILURE: Build failed with an exception.
* Where:
Build file '/home/demonwav/IdeaProjects/test/test-forge/build.gradle' line: 18
* What went wrong:
A problem occurred evaluating project ':test-forge'.
> Failed to apply plugin [id 'org.gradle.idea']
@Nullable
@Override
public String[] getIgnoreAnnotations() {
return ImmutableList.of("org.spongepowered.api.event.Listener", "org.bukkit.event.EventHandler").toArray(new String[2]);
}
configure<IdeaModel> {
project.apply {
jdkName = "1.8"
setLanguageLevel("1.8")
}
module.apply {
excludeDirs.add(File(".sandbox"))
}
}
configure<IdeaModel> {
project(closureOf<IdeaProject> {
jdkName = "1.8"
setLanguageLevel("1.8")
})
module(closureOf<IdeaModule> {
excludeDirs.add(File(".sandbox"))
})
}
/*
* StatCraft Plugin
*
* Copyright (c) 2016 Kyle Wood (DemonWav)
* https://www.demonwav.com
*
* MIT License
*/
package com.demonwav.statcraft.listeners
/*
* StatCraft Plugin
*
* Copyright (c) 2016 Kyle Wood (DemonWav)
* https://www.demonwav.com
*
* MIT License
*/
repositories {
override fun getPlayerId(uuid: UUID) =
synchronized(this) {
if (playerMap.contains(uuid)) {
return@synchronized playerMap[uuid]!!
}
// We don't have this UUID cached, so check the database
var result: Int? = null
// byte array representation of the UUID
val array = uuid.toByte()
override fun getPlayerId(uuid: UUID) =
synchronized(this) {
if (playerMap.contains(uuid)) {
return@synchronized playerMap[uuid]!!
}
// We don't have this UUID cached, so check the database
var result: Int? = null
// byte array representation of the UUID
val array = uuid.toByte()
override fun getPlayerId(uuid: UUID): Int? {
if (playerMap.contains(uuid)) {
return playerMap[uuid]!!
}
// We don't have this UUID cached, so check the database
var result: Int? = null
synchronized(this) {
// byte array representation of the UUID
val array = uuid.toByte()
/*
* StatCraft Plugin
*
* Copyright (c) 2016 Kyle Wood (DemonWav)
* https://www.demonwav.com
*
* MIT License
*/
package com.demonwav.statcraft.sql