Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package net.bubblecraft.rtp;
- import java.util.HashMap;
- import org.bukkit.Location;
- import org.bukkit.entity.Player;
- public class Homes {
- public HashMap<String, HashMap<String, Location>> homes = new HashMap<String, HashMap<String, Location>>();
- public void addHome(Location loc, String str, Player player) {
- String p = player.getName();
- HashMap<String, Location> map = homes.get(p);
- map.put(str, loc);
- homes.put(p, map);
- }
- public void getHome(Player p, String str, Location loc) {
- if(homes.containsKey(p)) {
- p.teleport(homes.get(p).get(str));
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment