Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package de.jatti.plugins.commands;
- import java.util.HashMap;
- import org.bukkit.entity.Entity;
- import org.bukkit.entity.EntityType;
- import org.bukkit.entity.Player;
- public class PetCommand {
- public static HashMap<Player, Entity> press = new HashMap<>();
- public static Object pet;
- public static void getPet(Player p) {
- if(PetCommand.containsKey(p)) {
- removePet(p);
- }
- Entity e = p.getWorld().spawnEntity(p.getLocation(), EntityType.BLAZE);
- e.setCustomName(p.getName() + "ยงa Pet");
- e.setCustomNameVisible(true);
- PetCommand.put(p, e);
- }
- private static void put(Player p, Entity e) {
- }
- static boolean containsKey(Player p) {
- return false;
- }
- public static void removePet(Player p) {
- if(PetCommand.containsKey(p)) {
- PetCommand.getPet(p).remove();
- }
- }
- public static void moveToPlayer(Player p) {
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement