Add ProtocolLib to plugin dependencies
This commit is contained in:
parent
c4e6de8c52
commit
d4b337e661
2 changed files with 4 additions and 2 deletions
|
@ -127,8 +127,8 @@ object Radar: TTTItem, Buyable {
|
||||||
try {
|
try {
|
||||||
val modifiers = packet.metadata[0].value as Byte
|
val modifiers = packet.metadata[0].value as Byte
|
||||||
packet.metadata[0].value =
|
packet.metadata[0].value =
|
||||||
if (isc.get(receivingTTTPlayer)?.active == true) modifiers or 0x40
|
if (isc.get(receivingTTTPlayer)?.active == true) modifiers or 0x40.toByte()
|
||||||
else modifiers and 0xBF.toByte()
|
else modifiers and 0b10111111.toByte()
|
||||||
} catch (ignored: Exception) {
|
} catch (ignored: Exception) {
|
||||||
// Idk why this throws exceptions, but it works anyways
|
// Idk why this throws exceptions, but it works anyways
|
||||||
}
|
}
|
||||||
|
|
|
@ -3,6 +3,8 @@ version: 1.0.0
|
||||||
author: Moritz Ruth
|
author: Moritz Ruth
|
||||||
api-version: "1.15"
|
api-version: "1.15"
|
||||||
main: de.moritzruth.spigot_ttt.TTTPlugin
|
main: de.moritzruth.spigot_ttt.TTTPlugin
|
||||||
|
depend:
|
||||||
|
- ProtocolLib
|
||||||
|
|
||||||
commands:
|
commands:
|
||||||
start:
|
start:
|
||||||
|
|
Reference in a new issue