/** * Just send this packet to set the cinescope coverage * 0% - Disabled * 50% - Fully blind */publicvoidsendCineScope(Playerplayer,intcoveragePercent,longduration){JsonObjectobject=newJsonObject();// Cinescope height (0% - 50%)object.addProperty("coverage",coveragePercent);// Durationobject.addProperty("duration",duration);// Send to LabyMod using the APILabyModProtocol.sendLabyModMessage(player,"cinescopes",object);}
Warning
Make sure that the player has no items in the inventory.