1.0.2b SNAPSHOT-HOTFIX
Fix on respawn
This commit is contained in:
1 parent
db70651bb6
commit
05fbf78034
3 files changed
+2
-3
No files matched your search
@@ -42,14 +42,12 @@ import me.redtea.nodropx.service.storage.impl.StorageServiceImpl;
|
||||
import me.redtea.nodropx.util.UpdateChecker;
|
||||
import org.bukkit.Bukkit;
|
||||
import org.bukkit.ChatColor;
|
||||
import org.bukkit.Material;
|
||||
import org.bukkit.configuration.file.YamlConfiguration;
|
||||
import org.bukkit.inventory.ItemStack;
|
||||
import org.bukkit.plugin.ServicePriority;
|
||||
import org.bukkit.plugin.java.JavaPlugin;
|
||||
|
||||
import java.io.File;
|
||||
import java.util.Arrays;
|
||||
import java.util.List;
|
||||
import java.util.UUID;
|
||||
import java.util.stream.Collectors;
|
||||
|
||||
@@ -25,6 +25,7 @@ public class RespawnServiceImpl implements RespawnService {
|
||||
if(toRespawn.containsKey(player.getName())) {
|
||||
Pair[] pairs = toRespawn.get(player.getName());
|
||||
for(Pair pair : pairs) player.getInventory().setItem(pair.slot, pair.item);
|
||||
toRespawn.remove(player.getName());
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user