Add protocol version getter
This commit is contained in:
parent
19e21b1594
commit
a67785b1d7
1 changed files with 4 additions and 0 deletions
4
util/getProtocolVersion.js
Normal file
4
util/getProtocolVersion.js
Normal file
|
@ -0,0 +1,4 @@
|
||||||
|
const mcd=require("minecraft-data")
|
||||||
|
module.exports = function (ver) {
|
||||||
|
return require("minecraft-data").versionsByMinecraftVersion.pc[ver].version
|
||||||
|
}
|
Loading…
Reference in a new issue