mirror of
https://github.com/essentials/Essentials.git
synced 2025-08-17 20:11:21 +02:00
@@ -186,6 +186,11 @@ public class Kit
|
|||||||
|
|
||||||
final String[] parts = kitItem.split(" +");
|
final String[] parts = kitItem.split(" +");
|
||||||
final ItemStack parseStack = ess.getItemDb().get(parts[0], parts.length > 1 ? Integer.parseInt(parts[1]) : 1);
|
final ItemStack parseStack = ess.getItemDb().get(parts[0], parts.length > 1 ? Integer.parseInt(parts[1]) : 1);
|
||||||
|
|
||||||
|
if (parseStack.getTypeId() == 0) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
final MetaItemStack metaStack = new MetaItemStack(parseStack);
|
final MetaItemStack metaStack = new MetaItemStack(parseStack);
|
||||||
|
|
||||||
if (parts.length > 2)
|
if (parts.length > 2)
|
||||||
|
@@ -150,6 +150,10 @@ public abstract class UserData extends PlayerExtension implements IConf
|
|||||||
{
|
{
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
|
if (getHomes().isEmpty())
|
||||||
|
{
|
||||||
|
return null;
|
||||||
|
}
|
||||||
Location loc;
|
Location loc;
|
||||||
for (String home : getHomes())
|
for (String home : getHomes())
|
||||||
{
|
{
|
||||||
@@ -476,7 +480,6 @@ public abstract class UserData extends PlayerExtension implements IConf
|
|||||||
config.setProperty("teleportenabled", set);
|
config.setProperty("teleportenabled", set);
|
||||||
config.save();
|
config.save();
|
||||||
}
|
}
|
||||||
|
|
||||||
private List<String> ignoredPlayers;
|
private List<String> ignoredPlayers;
|
||||||
|
|
||||||
public List<String> _getIgnoredPlayers()
|
public List<String> _getIgnoredPlayers()
|
||||||
|
@@ -94,7 +94,7 @@ public final class InventoryWorkaround
|
|||||||
for (int i = 0; i < combined.length; i++)
|
for (int i = 0; i < combined.length; i++)
|
||||||
{
|
{
|
||||||
final ItemStack item = combined[i];
|
final ItemStack item = combined[i];
|
||||||
if (item == null)
|
if (item == null || item.getTypeId() == 0)
|
||||||
{
|
{
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user