Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1,322 changes: 661 additions & 661 deletions LICENSE.txt

Large diffs are not rendered by default.

36 changes: 36 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
# CYTNoteblockRegion-BugFix
### Useful plugin, silly name

This is a fix for a plugin created by lukemango fixing the music not playing while standing in multiple regions, it adds priority support, and allows reloading the config via a command.

Original Description (modified to support the changes):
This plugin was originally made by me for my server because I couldn't find anything similar on Spigot and it was fairly easy to make, therefore here it is for you to use

https://www.youtube.com/watch?v=90DSvk1PF5A

Features
Play .nbs files in WorldGuard regions
Ability to queue multiple songs for one region
Ability to loop
Ability to shuffle
Ability to customise volume
Runs asynchronously (no server lag!)
Open source, feel free to contribute​

Requirements
WorldGuard (7.0.7 or above)
NoteBlockAPI (1.6.1 or above) (Click Here)​

Commands:
/cytnoteblockregion reload or /cyt reload for short.

Permissions: cytnoteblockregion.reload

Configuration
A default configuration can be found here.
Put songs (must be .nbs files) in the /plugins/CYTNoteblockRegion/music folder (run the plugin to generate this folder).​

Support
Please make an issue on GitHub if you find an issue or would like something added.
I can't guarantee suggestions will be added but I'll try and keep this up to date should something break as we also use it.
I've only tested this on 1.19 with the versions of plugins listed under Requirements, this may work on older versions (good luck?).​
128 changes: 64 additions & 64 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -1,64 +1,64 @@
plugins {
id 'java'
}

group = 'com.lukemango'
version = '1.0.2'

repositories {
mavenCentral()

// Spigot
maven {
name = 'spigotmc-repo'
url = 'https://hub.spigotmc.org/nexus/content/repositories/snapshots/'
}

// Sonatype
maven {
name = 'sonatype'
url = 'https://oss.sonatype.org/content/groups/public/'
}

// WorldGuard
maven {
name = 'sonatype'
url = 'https://maven.enginehub.org/repo/'
}

// NoteblockAPI
maven {
url 'https://jitpack.io'
}
}

dependencies {
compileOnly 'org.spigotmc:spigot-api:1.19.2-R0.1-SNAPSHOT'
compileOnly 'com.sk89q.worldguard:worldguard-bukkit:7.0.7'
compileOnly group: 'com.github.koca2000', name: 'NoteBlockAPI', version: '1.6.1'
}

def targetJavaVersion = 17
java {
def javaVersion = JavaVersion.toVersion(targetJavaVersion)
sourceCompatibility = javaVersion
targetCompatibility = javaVersion
if (JavaVersion.current() < javaVersion) {
toolchain.languageVersion = JavaLanguageVersion.of(targetJavaVersion)
}
}

tasks.withType(JavaCompile).configureEach {
if (targetJavaVersion >= 10 || JavaVersion.current().isJava10Compatible()) {
options.release = targetJavaVersion
}
}

processResources {
def props = [version: version]
inputs.properties props
filteringCharset 'UTF-8'
filesMatching('plugin.yml') {
expand props
}
}
plugins {
id 'java'
}
group = 'com.lukemango'
version = '1.0.3'
repositories {
mavenCentral()
// Spigot
maven {
name = 'spigotmc-repo'
url = 'https://hub.spigotmc.org/nexus/content/repositories/snapshots/'
}
// Sonatype
maven {
name = 'sonatype'
url = 'https://oss.sonatype.org/content/groups/public/'
}
// WorldGuard
maven {
name = 'sonatype'
url = 'https://maven.enginehub.org/repo/'
}
// NoteblockAPI
maven {
url 'https://jitpack.io'
}
}
dependencies {
compileOnly 'org.spigotmc:spigot-api:1.19.2-R0.1-SNAPSHOT'
compileOnly 'com.sk89q.worldguard:worldguard-bukkit:7.0.7'
compileOnly group: 'com.github.koca2000', name: 'NoteBlockAPI', version: '1.6.1'
}
def targetJavaVersion = 17
java {
def javaVersion = JavaVersion.toVersion(targetJavaVersion)
sourceCompatibility = javaVersion
targetCompatibility = javaVersion
if (JavaVersion.current() < javaVersion) {
toolchain.languageVersion = JavaLanguageVersion.of(targetJavaVersion)
}
}
tasks.withType(JavaCompile).configureEach {
if (targetJavaVersion >= 10 || JavaVersion.current().isJava10Compatible()) {
options.release = targetJavaVersion
}
}
processResources {
def props = [version: version]
inputs.properties props
filteringCharset 'UTF-8'
filesMatching('plugin.yml') {
expand props
}
}
10 changes: 5 additions & 5 deletions gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-7.3.3-bin.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-7.3.3-bin.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
Loading