Merge branch 'feature/velocity-support' into dev/spigot-1.13-1.16

This commit is contained in:
Sekwah 2021-04-22 11:49:21 +01:00
commit baca2d3316
No known key found for this signature in database
GPG Key ID: C3BE2E6C861A461A
2 changed files with 6 additions and 3 deletions

View File

@ -26,13 +26,13 @@ apply plugin: 'maven-publish'
apply plugin: 'idea'
apply plugin: 'eclipse'
group = 'com.sekwah.advancedportals'
version = getPluginData("version") + '-snapshot'
def branch = System.getenv("GITHUB_REF");
def sha = System.getenv("GITHUB_SHA");
def isDevBranch = !(branch && (branch.startsWith("refs/heads/release/") || branch.startsWith("refs/tags/")));
group = 'com.sekwah.advancedportals'
version = getPluginData("version") + '-snapshot' + (isDevBranch ? '-dev' : '')
description = ""
sourceCompatibility = 1.8

View File

@ -12,6 +12,7 @@ import com.velocitypowered.api.event.proxy.ProxyInitializeEvent;
import com.velocitypowered.api.plugin.Plugin;
import com.velocitypowered.api.proxy.ProxyServer;
import com.velocitypowered.api.proxy.ServerConnection;
import com.velocitypowered.api.proxy.messages.ChannelIdentifier;
import com.velocitypowered.api.proxy.messages.LegacyChannelIdentifier;
import org.slf4j.Logger;
@ -104,6 +105,8 @@ public class AdvancedPortalsPlugin {
out.writeUTF(val[1]);
out.writeUTF(val[2]);
serverConnection.sendPluginMessage(AP_CHANNEL, out.toByteArray());
}
});
}