Skip to content

Commit 69a79aa

Browse files
author
Francisco Solis
committed
Deprecated SimpleItem#setOwner
1 parent 15c0dcc commit 69a79aa

File tree

3 files changed

+9
-2
lines changed

3 files changed

+9
-2
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
## v5.2.3 Changelog:
2+
```
3+
* Deprecated SimpleItem#setOwner
4+
* Now javadoc is hosted on github pages
5+
```
16
## v5.2.2 Changelog:
27
```
38
* Fix to the Settings Gui
@@ -6,6 +11,7 @@
611
* Added scheduled codeql workflow
712
* Added url and description to pom.xml
813
* Deprecated Translation Downloader due to the new translation system
14+
```
915

1016
## v5.2.1 Changelog
1117
```

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
<groupId>xyz.theprogramsrc</groupId>
88
<artifactId>SuperCoreAPI</artifactId>
9-
<version>5.2.2</version>
9+
<version>5.2.3</version>
1010
<packaging>jar</packaging>
1111

1212
<name>SuperCoreAPI</name>

src/main/java/xyz/theprogramsrc/supercoreapi/spigot/items/SimpleItem.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,8 +168,9 @@ public SimpleItem setLoreLine(int index, String loreLine){
168168
*
169169
* @param name the name of the owning player
170170
* @return this SimpleItem
171+
* @deprecated use {@link #setSkin(SkinTexture)} instead
171172
*/
172-
public SimpleItem setOwner(String name){
173+
@Deprecated public SimpleItem setOwner(String name){
173174
SkullMeta meta = ((SkullMeta)this.item.getItemMeta());
174175
if(meta != null){
175176
meta.setOwner(new StringUtils(name).placeholders(this.placeholders).get());

0 commit comments

Comments
 (0)