mirror of
https://github.com/sekwah41/Advanced-Portals.git
synced 2025-02-27 01:31:21 +01:00
Merge branch 'feature/velocity-support' into dev/spigot-1.13-1.16
This commit is contained in:
commit
baca2d3316
@ -26,13 +26,13 @@ apply plugin: 'maven-publish'
|
|||||||
apply plugin: 'idea'
|
apply plugin: 'idea'
|
||||||
apply plugin: 'eclipse'
|
apply plugin: 'eclipse'
|
||||||
|
|
||||||
group = 'com.sekwah.advancedportals'
|
|
||||||
version = getPluginData("version") + '-snapshot'
|
|
||||||
|
|
||||||
def branch = System.getenv("GITHUB_REF");
|
def branch = System.getenv("GITHUB_REF");
|
||||||
def sha = System.getenv("GITHUB_SHA");
|
def sha = System.getenv("GITHUB_SHA");
|
||||||
def isDevBranch = !(branch && (branch.startsWith("refs/heads/release/") || branch.startsWith("refs/tags/")));
|
def isDevBranch = !(branch && (branch.startsWith("refs/heads/release/") || branch.startsWith("refs/tags/")));
|
||||||
|
|
||||||
|
group = 'com.sekwah.advancedportals'
|
||||||
|
version = getPluginData("version") + '-snapshot' + (isDevBranch ? '-dev' : '')
|
||||||
|
|
||||||
description = ""
|
description = ""
|
||||||
|
|
||||||
sourceCompatibility = 1.8
|
sourceCompatibility = 1.8
|
||||||
|
@ -12,6 +12,7 @@ import com.velocitypowered.api.event.proxy.ProxyInitializeEvent;
|
|||||||
import com.velocitypowered.api.plugin.Plugin;
|
import com.velocitypowered.api.plugin.Plugin;
|
||||||
import com.velocitypowered.api.proxy.ProxyServer;
|
import com.velocitypowered.api.proxy.ProxyServer;
|
||||||
import com.velocitypowered.api.proxy.ServerConnection;
|
import com.velocitypowered.api.proxy.ServerConnection;
|
||||||
|
import com.velocitypowered.api.proxy.messages.ChannelIdentifier;
|
||||||
import com.velocitypowered.api.proxy.messages.LegacyChannelIdentifier;
|
import com.velocitypowered.api.proxy.messages.LegacyChannelIdentifier;
|
||||||
import org.slf4j.Logger;
|
import org.slf4j.Logger;
|
||||||
|
|
||||||
@ -104,6 +105,8 @@ public class AdvancedPortalsPlugin {
|
|||||||
out.writeUTF(val[1]);
|
out.writeUTF(val[1]);
|
||||||
out.writeUTF(val[2]);
|
out.writeUTF(val[2]);
|
||||||
|
|
||||||
|
serverConnection.sendPluginMessage(AP_CHANNEL, out.toByteArray());
|
||||||
|
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user