Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @EventHandler
- public void BedPlaced(BlockPlaceEvent event)
- {
- Player player = event.getPlayer();
- Block bed = event.getBlock();
- if (bed.getType().equals(Material.BED_BLOCK))
- {
- player.setBedSpawnLocation(bed.getLocation());
- locations.add(bed.getLocation());
- getConfig().set(player.getUniqueId() + ".locations", locations);
- getConfig().getList(player.getUniqueId() + ".locations");
- this.saveConfig();
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement