Make damage labels invulnerable.
This commit is contained in:
parent
6552cc9e3d
commit
7cc2b9a7e2
Binary file not shown.
@ -5841,14 +5841,14 @@ public class GenericFunctions {
|
||||
for (String key : map.keySet()) {
|
||||
List<ItemContainer> list = map.get(key);
|
||||
if (discordOutput) {
|
||||
sb.append("Items in **"+key+"**:\n\n");
|
||||
sb.append("Items in **"+key+"**:\n\n```");
|
||||
} else {
|
||||
sb.append("Items in "+ChatColor.BOLD+key+ChatColor.RESET+":\n\n");
|
||||
}
|
||||
for (int i=0;i<list.size();i++) {
|
||||
sb.append(ChatColor.GRAY+GenericFunctions.UserFriendlyMaterialName(list.get(i).getItem())+(TwosideKeeperAPI.isSetItem(list.get(i).getItem())?" (T"+TwosideKeeperAPI.getItemTier(list.get(i).getItem())+")":"")+(list.get(i).getAmount()>1?ChatColor.YELLOW+" x"+list.get(i).getAmount():"")+ChatColor.RESET+(i+1!=list.size()?", ":""));
|
||||
}
|
||||
sb.append("\n ___________________ \n");
|
||||
sb.append((discordOutput)?"```":""+"\n ___________________ \n");
|
||||
}
|
||||
if (sb.length()==0) {
|
||||
sb.append("Could not find any items!");
|
||||
|
@ -92,6 +92,7 @@ public class EntityUtils {
|
||||
aec.setCustomNameVisible(true);
|
||||
aec.setVisible(false);
|
||||
aec.setMarker(true);
|
||||
aec.setInvulnerable(true);
|
||||
//aec.setRadius(0);
|
||||
//aec.setParticle(Particle.ITEM_TAKE);
|
||||
//Bukkit.getScheduler().runTaskLater(TwosideKeeper.plugin,new CloudRunnable(aec,0.15,10),1);
|
||||
|
@ -1431,10 +1431,10 @@ public class TwosideKeeper extends JavaPlugin implements Listener {
|
||||
HashMap<String,List<ItemStack>> recyclingCenterItems = populateRecyclingCenterItems();
|
||||
if (args.length==1) {
|
||||
//Get a master list of all Recycling Center items.
|
||||
aPlugin.API.discordSendRaw("```\n"+
|
||||
aPlugin.API.discordSendRaw("\n"+
|
||||
GenericFunctions.generateItemList(
|
||||
GenericFunctions.getItemList(recyclingCenterItems)
|
||||
,null,true)+"\n```"
|
||||
,null,true)+"\n"
|
||||
);
|
||||
} else {
|
||||
//Try to use the search phrase given.
|
||||
@ -1443,11 +1443,11 @@ public class TwosideKeeper extends JavaPlugin implements Listener {
|
||||
newargs[i-1]=args[i];
|
||||
}
|
||||
args = newargs;
|
||||
aPlugin.API.discordSendRaw("```\n"+
|
||||
aPlugin.API.discordSendRaw("\n"+
|
||||
GenericFunctions.generateItemList(
|
||||
GenericFunctions.getItemList(recyclingCenterItems)
|
||||
,args, true
|
||||
)+"\n```"
|
||||
)+"\n"
|
||||
);
|
||||
}
|
||||
},"search");
|
||||
|
Loading…
x
Reference in New Issue
Block a user