Skip to content

Commit

Permalink
Add register method
Browse files Browse the repository at this point in the history
  • Loading branch information
max1mde committed Jun 22, 2024
1 parent d988d90 commit 088e64f
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ repositories {
}
dependencies {
compileOnly 'com.github.max1mde:HologramAPI:1.2.0'
compileOnly 'com.github.max1mde:HologramAPI:1.2.2'
}
```
**Maven installation**
Expand All @@ -42,7 +42,7 @@ dependencies {
<dependency>
<groupId>com.github.max1mde</groupId>
<artifactId>HologramAPI</artifactId>
<version>1.2.0</version>
<version>1.2.2</version>
<scope>provided</scope>
</dependency>
```
Expand Down
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ plugins {
}

group = 'com.maximde'
version = '1.2.1'
version = '1.2.2'

repositories {
mavenCentral()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,10 @@ public void spawn(TextHologram textHologram, Location location) {
this.hologramsMap.put(textHologram.getId(), textHologram);
}

public void register(TextHologram textHologram) {
this.hologramsMap.put(textHologram.getId(), textHologram);
}

public void remove(TextHologram textHologram) {
remove(textHologram.getId());
}
Expand Down

0 comments on commit 088e64f

Please sign in to comment.