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 {
|
||||
val modifiers = packet.metadata[0].value as Byte
|
||||
packet.metadata[0].value =
|
||||
if (isc.get(receivingTTTPlayer)?.active == true) modifiers or 0x40
|
||||
else modifiers and 0xBF.toByte()
|
||||
if (isc.get(receivingTTTPlayer)?.active == true) modifiers or 0x40.toByte()
|
||||
else modifiers and 0b10111111.toByte()
|
||||
} catch (ignored: Exception) {
|
||||
// Idk why this throws exceptions, but it works anyways
|
||||
}
|
||||
|
|
|
@ -3,6 +3,8 @@ version: 1.0.0
|
|||
author: Moritz Ruth
|
||||
api-version: "1.15"
|
||||
main: de.moritzruth.spigot_ttt.TTTPlugin
|
||||
depend:
|
||||
- ProtocolLib
|
||||
|
||||
commands:
|
||||
start:
|
||||
|
|
Reference in a new issue