1
0
Fork 0

Add ProtocolLib to plugin dependencies

This commit is contained in:
Moritz Ruth 2020-06-15 21:34:53 +02:00
parent c4e6de8c52
commit d4b337e661
No known key found for this signature in database
GPG key ID: AFD57E23E753841B
2 changed files with 4 additions and 2 deletions

View file

@ -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
} }

View file

@ -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: