Skip to content

Commit

Permalink
4.2.1 - colors supported & gradle instead of maven
Browse files Browse the repository at this point in the history
  • Loading branch information
unldenis committed Nov 3, 2024
1 parent 64c37b4 commit 970a9eb
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ dependencies {
}

group = "org.holoeasy"
version = "4.2.0"
version = "4.2.1"
java.sourceCompatibility = JavaVersion.VERSION_1_8

publishing {
Expand Down
13 changes: 13 additions & 0 deletions docs/changelog/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,19 @@

<h1 class="uk-h1"> Changelog </h1>

<h2 class="uk-h2 uk-margin-medium" id="v421">v4.2.1</h2>
<p class="uk-paragraph"><strong>November 4, 2024</strong></p>
<p class="uk-paragraph"><strong>Major non-breaking changes:</strong></p>
<ul class="uk-margin uk-list uk-list-bullet">
<li>Project uses Gradle instead of Maven.</li>
</ul>
<p class="uk-paragraph"><strong>Minor non-breaking changes:</strong></p>
<ul class="uk-margin uk-list uk-list-bullet">
<li>PacketEvents hologram lines now support <strong>colors</strong>.</li>
</ul>

<hr class="uk-divider-icon" />

<h2 class="uk-h2 uk-margin-medium" id="v420">v4.2.0</h2>
<p class="uk-paragraph"><strong>November 3, 2024</strong></p>

Expand Down
4 changes: 2 additions & 2 deletions docs/installation/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ <h2 class="uk-h2 uk-margin-medium">Installation via Maven</h2>
<pre><code class="language-xml">&lt;dependency&gt;
&lt;groupId&gt;com.github.unldenis.holoeasy&lt;/groupId&gt;
&lt;artifactId&gt;holoeasy-core&lt;/artifactId&gt;
&lt;version&gt;4.2.0&lt;/version&gt;
&lt;version&gt;4.2.1&lt;/version&gt;
&lt;/dependency&gt;</code></pre>
</div>

Expand Down Expand Up @@ -225,7 +225,7 @@ <h2 class="uk-h2 uk-margin-medium">Installation via Gradle</h2>
</p>

<div class="uk-paragraph">
<pre><code class="language-groovy">implementation 'com.github.unldenis.holoeasy:holoeasy-core:4.2.0'</code></pre>
<pre><code class="language-groovy">implementation 'com.github.unldenis.holoeasy:holoeasy-core:4.2.1'</code></pre>
</div>


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
import com.github.retrooper.packetevents.PacketEvents;
import io.github.retrooper.packetevents.factory.spigot.SpigotPacketEventsBuilder;
import org.bukkit.Bukkit;
import org.bukkit.ChatColor;
import org.bukkit.Location;
import org.bukkit.Material;
import org.bukkit.entity.Player;
Expand All @@ -20,7 +21,6 @@
import org.jetbrains.annotations.NotNull;



public class ExamplePlugin extends JavaPlugin {

@Override
Expand Down Expand Up @@ -79,9 +79,9 @@ public static class MyHolo extends Hologram {

private final MutableState<Integer> clickCount = mutableStateOf(0); // can be any type

public ITextLine counter = textLine("Clicked {} times", new TextLineModifiers()
.args(clickCount)
.clickable(player -> clickCount.update(it -> it + 1)));
public ITextLine counter = textLine(ChatColor.translateAlternateColorCodes('&', "&7Clicked {} times"), new TextLineModifiers()
.args(clickCount)
.clickable(player -> clickCount.update(it -> it + 1)));
public ILine<ItemStack> status = blockLine(new ItemStack(Material.RED_DYE));

public MyHolo(@NotNull Location location) {
Expand All @@ -91,5 +91,4 @@ public MyHolo(@NotNull Location location) {
}



}

0 comments on commit 970a9eb

Please sign in to comment.