mirror of
https://github.com/libraryaddict/LibsDisguises.git
synced 2024-11-04 08:59:47 +01:00
Updated timings for runnable task
Updated version for 8.6.5
This commit is contained in:
parent
a4a965d450
commit
05effaa82c
36
build.gradle
36
build.gradle
@ -1,11 +1,7 @@
|
|||||||
|
|
||||||
import java.nio.file.*
|
|
||||||
import java.nio.file.Path
|
|
||||||
|
|
||||||
plugins {
|
plugins {
|
||||||
id 'java'
|
id 'java'
|
||||||
id 'maven-publish'
|
id 'maven-publish'
|
||||||
id "com.jfrog.artifactory" version "3.1.1"
|
id "com.jfrog.artifactory" version "3.1.1"
|
||||||
}
|
}
|
||||||
|
|
||||||
println 'Compiling LibsDisguises via Gradle ver. ' + gradle.gradleVersion
|
println 'Compiling LibsDisguises via Gradle ver. ' + gradle.gradleVersion
|
||||||
@ -13,7 +9,7 @@ println 'Compiling LibsDisguises via Gradle ver. ' + gradle.gradleVersion
|
|||||||
sourceCompatibility = '1.7'
|
sourceCompatibility = '1.7'
|
||||||
ext.spigotVersion = '1.8.8-R0.1-SNAPSHOT'
|
ext.spigotVersion = '1.8.8-R0.1-SNAPSHOT'
|
||||||
|
|
||||||
ext.disguisesVersion = '8.6.4'
|
ext.disguisesVersion = '8.6.5'
|
||||||
|
|
||||||
[compileJava, compileTestJava]*.options*.encoding = 'UTF-8'
|
[compileJava, compileTestJava]*.options*.encoding = 'UTF-8'
|
||||||
|
|
||||||
@ -37,12 +33,12 @@ repositories {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
task sourceJar (type : Jar, dependsOn: classes) {
|
task sourceJar(type: Jar, dependsOn: classes) {
|
||||||
classifier = 'sources'
|
classifier = 'sources'
|
||||||
from sourceSets.main.allSource
|
from sourceSets.main.allSource
|
||||||
}
|
}
|
||||||
|
|
||||||
task javadocJar (type: Jar, dependsOn: javadoc) {
|
task javadocJar(type: Jar, dependsOn: javadoc) {
|
||||||
classifier = 'javadoc'
|
classifier = 'javadoc'
|
||||||
from javadoc.destinationDir
|
from javadoc.destinationDir
|
||||||
}
|
}
|
||||||
@ -79,17 +75,17 @@ artifactoryPublish.skip = false
|
|||||||
artifactory {
|
artifactory {
|
||||||
contextUrl = 'http://localhost:8081/artifactory'
|
contextUrl = 'http://localhost:8081/artifactory'
|
||||||
publish {
|
publish {
|
||||||
repository {
|
repository {
|
||||||
repoKey = 'libs-snapshot-local'
|
repoKey = 'libs-snapshot-local'
|
||||||
username = '${artifactory_user}'
|
username = '${artifactory_user}'
|
||||||
password = '${artifactory_password}'
|
password = '${artifactory_password}'
|
||||||
}
|
}
|
||||||
defaults {
|
defaults {
|
||||||
publications('mavenJava')
|
publications('mavenJava')
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
resolve {
|
resolve {
|
||||||
repoKey = 'repo'
|
repoKey = 'repo'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -102,7 +98,7 @@ dependencies {
|
|||||||
compile 'org.bukkit:bukkit:' + project.ext.spigotVersion
|
compile 'org.bukkit:bukkit:' + project.ext.spigotVersion
|
||||||
compile 'com.comphenix.protocol:ProtocolLib:3.6.5-SNAPSHOT'
|
compile 'com.comphenix.protocol:ProtocolLib:3.6.5-SNAPSHOT'
|
||||||
compile files(
|
compile files(
|
||||||
'libs/spigot.jar'
|
'libs/spigot.jar'
|
||||||
)
|
)
|
||||||
testCompile group: 'junit', name: 'junit', version: '4.10'
|
testCompile group: 'junit', name: 'junit', version: '4.10'
|
||||||
}
|
}
|
||||||
|
@ -367,14 +367,16 @@ public class DisguiseListener implements Listener {
|
|||||||
} else {
|
} else {
|
||||||
//Stupid hack to fix worldswitch invisibility bug
|
//Stupid hack to fix worldswitch invisibility bug
|
||||||
final boolean viewSelfToggled = DisguiseAPI.isViewSelfToggled(event.getPlayer());
|
final boolean viewSelfToggled = DisguiseAPI.isViewSelfToggled(event.getPlayer());
|
||||||
final Disguise disguise = DisguiseAPI.getDisguise(event.getPlayer());
|
if (viewSelfToggled) {
|
||||||
disguise.setViewSelfDisguise(!viewSelfToggled);
|
final Disguise disguise = DisguiseAPI.getDisguise(event.getPlayer());
|
||||||
Bukkit.getScheduler().runTaskLater(plugin, new Runnable() {
|
disguise.setViewSelfDisguise(false);
|
||||||
@Override
|
Bukkit.getScheduler().runTaskLater(plugin, new Runnable() {
|
||||||
public void run() {
|
@Override
|
||||||
disguise.setViewSelfDisguise(viewSelfToggled);
|
public void run() {
|
||||||
}
|
disguise.setViewSelfDisguise(true);
|
||||||
}, 4L); //I wish I could use lambdas here, so badly
|
}
|
||||||
|
}, 20L); //I wish I could use lambdas here, so badly
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
name: LibsDisguises
|
name: LibsDisguises
|
||||||
main: me.libraryaddict.disguise.LibsDisguises
|
main: me.libraryaddict.disguise.LibsDisguises
|
||||||
version: 8.6.4
|
version: 8.6.5
|
||||||
author: libraryaddict
|
author: libraryaddict
|
||||||
authors: [Byteflux, Navid K.]
|
authors: [Byteflux, Navid K.]
|
||||||
depend: [ProtocolLib]
|
depend: [ProtocolLib]
|
||||||
|
Loading…
Reference in New Issue
Block a user