Skip to content

Commit 5044951

Browse files
committed
Added compatibility with TAB v2.7.6
1 parent abbc9be commit 5044951

4 files changed

Lines changed: 4 additions & 15 deletions

File tree

pom.xml

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

77
<groupId>pl.workonfire</groupId>
88
<artifactId>BucikTitles</artifactId>
9-
<version>1.1.0</version>
9+
<version>1.1.1</version>
1010
<packaging>jar</packaging>
1111

1212
<name>BucikTitles</name>

src/main/java/pl/workonfire/buciktitles/Main.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,12 @@
99
/**
1010
* A very simple plugin for showing titles on chat above players heads that depends on TAB.
1111
* @author workonfire, aka Buty935
12-
* @version 1.1.0
12+
* @version 1.1.1
1313
*/
1414

1515
public final class Main extends JavaPlugin {
1616
public static Main plugin;
17-
public static final String version = "1.1.0";
17+
public static final String version = "1.1.1";
1818

1919
@Override
2020
public void onEnable() {

src/main/java/pl/workonfire/buciktitles/data/Functions.java

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
import de.tr7zw.changeme.nbtapi.NBTListCompound;
66
import me.neznamy.tab.api.EnumProperty;
77
import me.neznamy.tab.api.TABAPI;
8-
import me.neznamy.tab.shared.placeholders.Placeholders;
98
import org.bukkit.Bukkit;
109
import org.bukkit.ChatColor;
1110
import org.bukkit.Sound;
@@ -15,7 +14,6 @@
1514

1615
import java.io.PrintWriter;
1716
import java.io.StringWriter;
18-
import java.util.List;
1917
import java.util.Set;
2018

2119
import static java.lang.String.format;
@@ -105,15 +103,6 @@ public static void setTitle(Player player, String titleID, int page) {
105103
Sound sound;
106104
player.closeInventory();
107105
if (!getCurrentUserTitle(player).equals(title.getFormattedValue())) {
108-
// This piece of code below is just temporary. It'll stay there
109-
// until NEZNAMY updates TAB.
110-
List<String> placeholders = Placeholders.detectAll(title.getRawValue());
111-
if (!placeholders.isEmpty())
112-
for (String placeholder : placeholders) {
113-
Placeholders.allUsedPlaceholders.add(placeholder);
114-
Placeholders.categorizeUsedPlaceholder(placeholder);
115-
}
116-
// End of temporary code
117106
TABAPI.setValuePermanently(player.getUniqueId(), getHeadTitlePosition(), title.getRawValue());
118107
player.sendMessage(getPrefixedLanguageVariable("title-set"));
119108
sound = Sound.ENTITY_LLAMA_SWAG;

src/main/resources/plugin.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name: BucikTitles
2-
version: 1.1.0
2+
version: 1.1.1
33
main: pl.workonfire.buciktitles.Main
44
api-version: 1.14
55
depend: [TAB]

0 commit comments

Comments
 (0)