mirror of
https://github.com/darksaid98/HuskHomes.git
synced 2026-12-04 14:38:53 +00:00
Merge remote-tracking branch 'origin/master'
This commit is contained in:
4 files changed
+36
-26
No files matched your search
@@ -71,6 +71,35 @@ subprojects {
|
|||||||
destinationDirectory.set(file("$rootDir/target"))
|
destinationDirectory.set(file("$rootDir/target"))
|
||||||
archiveClassifier.set('')
|
archiveClassifier.set('')
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// API publishing
|
||||||
|
if (['bukkit'].contains(project.name)) {
|
||||||
|
java {
|
||||||
|
withSourcesJar()
|
||||||
|
withJavadocJar()
|
||||||
|
}
|
||||||
|
sourcesJar {
|
||||||
|
destinationDirectory.set(file("$rootDir/target"))
|
||||||
|
}
|
||||||
|
javadocJar {
|
||||||
|
destinationDirectory.set(file("$rootDir/target"))
|
||||||
|
}
|
||||||
|
shadowJar.dependsOn(sourcesJar, javadocJar)
|
||||||
|
|
||||||
|
publishing {
|
||||||
|
publications {
|
||||||
|
mavenJava(MavenPublication) {
|
||||||
|
groupId = 'net.william278'
|
||||||
|
artifactId = 'huskhomes'
|
||||||
|
version = "$rootProject.version"
|
||||||
|
artifact shadowJar
|
||||||
|
artifact javadocJar
|
||||||
|
artifact sourcesJar
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
jar.dependsOn shadowJar
|
jar.dependsOn shadowJar
|
||||||
clean.delete "$rootDir/target"
|
clean.delete "$rootDir/target"
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,7 +1,3 @@
|
|||||||
plugins {
|
|
||||||
id 'maven-publish'
|
|
||||||
}
|
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
implementation project(path: ':common')
|
implementation project(path: ':common')
|
||||||
|
|
||||||
@@ -52,15 +48,3 @@ shadowJar {
|
|||||||
relocate 'io.papermc.lib', 'net.william278.huskhomes.libraries.paperlib'
|
relocate 'io.papermc.lib', 'net.william278.huskhomes.libraries.paperlib'
|
||||||
relocate 'me.lucko.commodore', 'net.william278.huskhomes.libraries.commodore'
|
relocate 'me.lucko.commodore', 'net.william278.huskhomes.libraries.commodore'
|
||||||
}
|
}
|
||||||
|
|
||||||
publishing {
|
|
||||||
publications {
|
|
||||||
mavenJava(MavenPublication) {
|
|
||||||
groupId = 'net.william278'
|
|
||||||
artifactId = 'huskhomes'
|
|
||||||
version = "$rootProject.version"
|
|
||||||
|
|
||||||
artifact jar
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -152,20 +152,16 @@ public class EditHomeCommand extends SavedPositionCommand<Home> {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
final Optional<String> privacyArg = parseStringArg(args, 1).map(String::toLowerCase);
|
|
||||||
if (privacyArg.isEmpty() || !(privacyArg.get().equals("public") || privacyArg.get().equals("private"))) {
|
|
||||||
plugin.getLocales().getLocale("error_invalid_syntax",
|
|
||||||
"/edithome " + home.getName() + " privacy <public|private>")
|
|
||||||
.ifPresent(executor::sendMessage);
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
// Check against economy
|
// Check against economy
|
||||||
if (executor instanceof OnlineUser user && !plugin.validateEconomyCheck(user, EconomyHook.Action.MAKE_HOME_PUBLIC)) {
|
if (executor instanceof OnlineUser user && !plugin.validateEconomyCheck(user, EconomyHook.Action.MAKE_HOME_PUBLIC)) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
home.setPublic(privacyArg.get().equals("public"));
|
// Set the home privacy
|
||||||
|
home.setPublic(parseStringArg(args, 1)
|
||||||
|
.map(String::toLowerCase).map("public"::equals)
|
||||||
|
.orElse(!home.isPublic()));
|
||||||
|
|
||||||
plugin.fireEvent(plugin.getHomeEditEvent(home, executor), (event) -> {
|
plugin.fireEvent(plugin.getHomeEditEvent(home, executor), (event) -> {
|
||||||
try {
|
try {
|
||||||
plugin.getManager().homes().setHomePrivacy(event.getHome(), home.isPublic());
|
plugin.getManager().homes().setHomePrivacy(event.getHome(), home.isPublic());
|
||||||
|
|||||||
@@ -143,7 +143,8 @@ public class Settings {
|
|||||||
private Map<String, String> soundEffects = Map.of(
|
private Map<String, String> soundEffects = Map.of(
|
||||||
SoundEffectAction.TELEPORTATION_COMPLETE.name().toLowerCase(), SoundEffectAction.TELEPORTATION_COMPLETE.defaultSoundEffect,
|
SoundEffectAction.TELEPORTATION_COMPLETE.name().toLowerCase(), SoundEffectAction.TELEPORTATION_COMPLETE.defaultSoundEffect,
|
||||||
SoundEffectAction.TELEPORTATION_WARMUP.name().toLowerCase(), SoundEffectAction.TELEPORTATION_WARMUP.defaultSoundEffect,
|
SoundEffectAction.TELEPORTATION_WARMUP.name().toLowerCase(), SoundEffectAction.TELEPORTATION_WARMUP.defaultSoundEffect,
|
||||||
SoundEffectAction.TELEPORTATION_CANCELLED.name().toLowerCase(), SoundEffectAction.TELEPORTATION_CANCELLED.defaultSoundEffect
|
SoundEffectAction.TELEPORTATION_CANCELLED.name().toLowerCase(), SoundEffectAction.TELEPORTATION_CANCELLED.defaultSoundEffect,
|
||||||
|
SoundEffectAction.TELEPORT_REQUEST_RECEIVED.name().toLowerCase(), SoundEffectAction.TELEPORT_REQUEST_RECEIVED.defaultSoundEffect
|
||||||
);
|
);
|
||||||
|
|
||||||
@YamlKey("general.brigadier_tab_completion")
|
@YamlKey("general.brigadier_tab_completion")
|
||||||
|
|||||||
Reference in new issue
Block a user