File tree Expand file tree Collapse file tree 5 files changed +20
-5
lines changed
src/main/java/xyz/theprogramsrc/supercoreapi Expand file tree Collapse file tree 5 files changed +20
-5
lines changed Original file line number Diff line number Diff line change 66
66
Network Trash Folder
67
67
Temporary Items
68
68
.apdisk
69
+ .classpath
70
+ .project
71
+ .settings /
Original file line number Diff line number Diff line change 182
182
<dependency >
183
183
<groupId >com.github.cryptomorin</groupId >
184
184
<artifactId >XSeries</artifactId >
185
- <version >8.0 .0</version >
185
+ <version >8.2 .0</version >
186
186
<scope >compile</scope >
187
187
</dependency >
188
188
<!-- SLF4J -->
202
202
<dependency >
203
203
<groupId >commons-codec</groupId >
204
204
<artifactId >commons-codec</artifactId >
205
- <version >1.11 </version >
205
+ <version >1.15 </version >
206
206
<scope >compile</scope >
207
207
</dependency >
208
208
<dependency >
Original file line number Diff line number Diff line change @@ -89,10 +89,10 @@ public enum Base implements TranslationPack{
89
89
ITEM_PREVIOUS_DESCRIPTION ("Items.Previous.Lore" ,"&7Click to go to the previous page." ),
90
90
91
91
ITEM_SEARCH_NAME ("Items.Search.Name" ,"&aSearch" ),
92
- ITEM_SEARCH_DESCRIPTION ("Items.Search.Name " ,"&7Click to search between objects." ),
92
+ ITEM_SEARCH_DESCRIPTION ("Items.Search.Lore " ,"&7Click to search between objects." ),
93
93
94
94
ITEM_END_SEARCH_NAME ("Items.EndSearch.Name" ,"&aEnd Search" ),
95
- ITEM_END_SEARCH_DESCRIPTION ("Items.EndSearch.Name " ,"&7Click to end with the search" ),
95
+ ITEM_END_SEARCH_DESCRIPTION ("Items.EndSearch.Lore " ,"&7Click to end with the search" ),
96
96
;
97
97
98
98
private final String path ;
Original file line number Diff line number Diff line change 6
6
import org .bukkit .command .CommandMap ;
7
7
import org .bukkit .command .CommandSender ;
8
8
import org .bukkit .command .defaults .BukkitCommand ;
9
+ import org .bukkit .entity .Player ;
9
10
import org .bukkit .plugin .Plugin ;
10
11
import xyz .theprogramsrc .supercoreapi .SuperUtils ;
11
12
@@ -91,7 +92,16 @@ public void registerBukkitCommand(BukkitCommand command) {
91
92
* @param message the message
92
93
*/
93
94
public void sendMessage (CommandSender sender , String message ){
94
- sender .sendMessage (color (message ));
95
+ if (sender instanceof Player ){
96
+ Player player = ((Player ) sender );
97
+ if (this .isPlugin ("PlaceholderAPI" )){ // Here we apply the Placeholder API if is available
98
+ player .sendMessage (color (me .clip .placeholderapi .PlaceholderAPI .setPlaceholders (player , message )));
99
+ }else {
100
+ player .sendMessage (color (message ));
101
+ }
102
+ }else {
103
+ sender .sendMessage (color (message ));
104
+ }
95
105
}
96
106
97
107
/**
Original file line number Diff line number Diff line change @@ -13,11 +13,13 @@ public class SkinTextureManager {
13
13
private final HashMap <String , SkinTexture > cache ;
14
14
private final HashMap <String , SkinTexture > urls ;
15
15
private final HashMap <String , SkinTexture > db ;
16
+ public static SkinTextureManager INSTANCE ;
16
17
17
18
public SkinTextureManager (){
18
19
this .cache = new HashMap <>();
19
20
this .urls = new HashMap <>();
20
21
this .db = new HashMap <>();
22
+ INSTANCE = this ;
21
23
}
22
24
23
25
/**
You can’t perform that action at this time.
0 commit comments