Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -66,3 +66,6 @@ Icon
Network Trash Folder
Temporary Items
.apdisk
.classpath
.project
.settings/
4 changes: 2 additions & 2 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@
<dependency>
<groupId>com.github.cryptomorin</groupId>
<artifactId>XSeries</artifactId>
<version>8.0.0</version>
<version>8.2.0</version>
<scope>compile</scope>
</dependency>
<!-- SLF4J -->
Expand All @@ -202,7 +202,7 @@
<dependency>
<groupId>commons-codec</groupId>
<artifactId>commons-codec</artifactId>
<version>1.11</version>
<version>1.15</version>
<scope>compile</scope>
</dependency>
<dependency>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -89,10 +89,10 @@ public enum Base implements TranslationPack{
ITEM_PREVIOUS_DESCRIPTION("Items.Previous.Lore","&7Click to go to the previous page."),

ITEM_SEARCH_NAME("Items.Search.Name","&aSearch"),
ITEM_SEARCH_DESCRIPTION("Items.Search.Name","&7Click to search between objects."),
ITEM_SEARCH_DESCRIPTION("Items.Search.Lore","&7Click to search between objects."),

ITEM_END_SEARCH_NAME("Items.EndSearch.Name","&aEnd Search"),
ITEM_END_SEARCH_DESCRIPTION("Items.EndSearch.Name","&7Click to end with the search"),
ITEM_END_SEARCH_DESCRIPTION("Items.EndSearch.Lore","&7Click to end with the search"),
;

private final String path;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
import org.bukkit.command.CommandMap;
import org.bukkit.command.CommandSender;
import org.bukkit.command.defaults.BukkitCommand;
import org.bukkit.entity.Player;
import org.bukkit.plugin.Plugin;
import xyz.theprogramsrc.supercoreapi.SuperUtils;

Expand Down Expand Up @@ -91,7 +92,16 @@ public void registerBukkitCommand(BukkitCommand command) {
* @param message the message
*/
public void sendMessage(CommandSender sender, String message){
sender.sendMessage(color(message));
if(sender instanceof Player){
Player player = ((Player) sender);
if(this.isPlugin("PlaceholderAPI")){ // Here we apply the Placeholder API if is available
player.sendMessage(color(me.clip.placeholderapi.PlaceholderAPI.setPlaceholders(player, message)));
}else{
player.sendMessage(color(message));
}
}else{
sender.sendMessage(color(message));
}
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,13 @@ public class SkinTextureManager {
private final HashMap<String, SkinTexture> cache;
private final HashMap<String, SkinTexture> urls;
private final HashMap<String, SkinTexture> db;
public static SkinTextureManager INSTANCE;

public SkinTextureManager(){
this.cache = new HashMap<>();
this.urls = new HashMap<>();
this.db = new HashMap<>();
INSTANCE = this;
}

/**
Expand Down