File tree Expand file tree Collapse file tree
example/bukkit/proto/src/main/java/com/lunarclient/apollo/example/proto/module Expand file tree Collapse file tree Original file line number Diff line number Diff line change 4141 fi
4242
4343 - name : Gradle Publish
44- if : " ${{ github.ref == 'refs/heads/master' || github.ref == 'refs/heads/feature/server-links' || startsWith(github.ref, 'refs/heads/version/') }}"
44+ if : " ${{ github.ref == 'refs/heads/master' || startsWith(github.ref, 'refs/heads/version/') }}"
4545 run : ./gradlew publish
4646
4747 - name : Gradle Release
Original file line number Diff line number Diff line change @@ -197,7 +197,9 @@ public void displayCooldownWithStyleExample(Player viewer) {
197197 DisplayCooldownMessage message = DisplayCooldownMessage . newBuilder()
198198 .setName(" book-cooldown" )
199199 .setDuration(ProtobufUtil . createDurationProto(Duration . ofSeconds(30 )))
200- .setIcon(ProtobufUtil . createItemStackIconProto(" BOOK" , 0 , 0 ))
200+ .setIcon(Icon . newBuilder()
201+ .setItemStack(ProtobufUtil . createItemStackIconProto(" BOOK" , 0 , 0 ))
202+ .build())
201203 .setStyle(CooldownStyle . newBuilder()
202204 .setCircleStartColor(ProtobufUtil . createColorProto(new Color (255 , 85 , 85 ))) // ApolloColors.RED
203205 .setCircleEndColor(ProtobufUtil . createColorProto(new Color (85 , 255 , 85 ))) // ApolloColors.GREEN
Original file line number Diff line number Diff line change @@ -55,7 +55,9 @@ public void displayCooldownWithStyleExample(Player viewer) {
5555 DisplayCooldownMessage message = DisplayCooldownMessage .newBuilder ()
5656 .setName ("book-cooldown" )
5757 .setDuration (ProtobufUtil .createDurationProto (Duration .ofSeconds (30 )))
58- .setIcon (ProtobufUtil .createItemStackIconProto ("BOOK" , 0 , 0 ))
58+ .setIcon (Icon .newBuilder ()
59+ .setItemStack (ProtobufUtil .createItemStackIconProto ("BOOK" , 0 , 0 ))
60+ .build ())
5961 .setStyle (CooldownStyle .newBuilder ()
6062 .setCircleStartColor (ProtobufUtil .createColorProto (new Color (255 , 85 , 85 ))) // ApolloColors.RED
6163 .setCircleEndColor (ProtobufUtil .createColorProto (new Color (85 , 255 , 85 ))) // ApolloColors.GREEN
You can’t perform that action at this time.
0 commit comments