Commit f0b2ad91 authored by kellerkindt's avatar kellerkindt
Browse files

Fix server load issues

parent c8546425
Pipeline #113 passed with stage
in 8 seconds
......@@ -129,7 +129,7 @@
<file>${project.basedir}/target/classes/plugin.yml</file>
<replacements>
<replacement>
<token>version: ([-]?[\d.]+)*</token>
<token>version: 0</token>
<value>version: ${build.number}</value>
</replacement>
......@@ -178,15 +178,9 @@
<configuration>
<artifactSet>
<includes>
<include>org.mcstats.*:*</include>
<include>org.mcstats.bukkit:*</include>
</includes>
</artifactSet>
<relocations>
<relocation>
<pattern>org.mcstats</pattern>
<shadedPattern>com.kellerkindt.scs.internals</shadedPattern>
</relocation>
</relocations>
</configuration>
<executions>
<execution>
......
......@@ -24,15 +24,19 @@ import org.bukkit.inventory.meta.ItemMeta;
/**
* @author Pasukaru from:
* @author Pasukaru from:
* http://forums.bukkit.org/threads/how-to-convert-an-item-id-into-a-normal-name.23698/#post-430168
* Updated by Sorklin.
* updated by kellerkindt 2013-02-12
*/
public class MaterialNames {
public static String getItemName(ItemStack stack){
return stack.getItemMeta().getDisplayName();
public static String getItemName(ItemStack stack) {
if (stack.getItemMeta().getDisplayName() == null || stack.getItemMeta().getDisplayName().isEmpty()) {
return stack.getType().name();
} else {
return stack.getItemMeta().getDisplayName();
}
}
}
......@@ -2,7 +2,7 @@ name: ShowCaseStandalone
main: com.kellerkindt.scs.ShowCaseStandalone
authors: [kellerkindt, sorklin, bitfreeze, Ryzko, rtainc]
version: 0
api-version: 1.13
softdepend:
- My Worlds
- Multiverse
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment