Fixed up velocity packets

This commit is contained in:
Sekwah 2021-04-22 11:49:10 +01:00
parent afe4e41b14
commit 2040ea08a8
No known key found for this signature in database
GPG Key ID: C3BE2E6C861A461A
2 changed files with 4 additions and 1 deletions

View File

@ -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 = ""

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());
}
});
}