mirror of
https://github.com/sekwah41/Advanced-Portals.git
synced 2024-12-28 11:59:27 +01:00
Fixed up velocity packets
This commit is contained in:
parent
afe4e41b14
commit
2040ea08a8
@ -31,7 +31,7 @@ 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' : ''
|
||||
version = getPluginData("version") + '-snapshot' + (isDevBranch ? '-dev' : '')
|
||||
|
||||
description = ""
|
||||
|
||||
|
@ -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());
|
||||
|
||||
}
|
||||
});
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user