diff --git a/src/fr/moribus/ImageOnMap/ImageOnMap.java b/src/fr/moribus/ImageOnMap/ImageOnMap.java index 12d9e80..40c0906 100644 --- a/src/fr/moribus/ImageOnMap/ImageOnMap.java +++ b/src/fr/moribus/ImageOnMap/ImageOnMap.java @@ -82,7 +82,7 @@ public final class ImageOnMap extends JavaPlugin getCommand("maptool").setExecutor(new MapToolCommand(this)); getServer().getPluginManager().registerEvents(new SendMapOnFrameEvent(this), this); getServer().getPluginManager().registerEvents(new SendMapOnInvEvent(this), this); - getServer().getPluginManager().registerEvents(new PlayerListener(this), this); + //getServer().getPluginManager().registerEvents(new PlayerListener(this), this); this.saveDefaultConfig(); //ChargerMap(); } diff --git a/src/fr/moribus/ImageOnMap/ImgPlayer.java b/src/fr/moribus/ImageOnMap/ImgPlayer.java new file mode 100644 index 0000000..cfe7148 --- /dev/null +++ b/src/fr/moribus/ImageOnMap/ImgPlayer.java @@ -0,0 +1,1532 @@ +package fr.moribus.ImageOnMap; + +import java.net.InetSocketAddress; +import java.util.Collection; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Set; +import java.util.UUID; + +import org.bukkit.Achievement; +import org.bukkit.Effect; +import org.bukkit.EntityEffect; +import org.bukkit.GameMode; +import org.bukkit.Instrument; +import org.bukkit.Location; +import org.bukkit.Material; +import org.bukkit.Note; +import org.bukkit.Server; +import org.bukkit.Sound; +import org.bukkit.Statistic; +import org.bukkit.WeatherType; +import org.bukkit.World; +import org.bukkit.block.Block; +import org.bukkit.conversations.Conversation; +import org.bukkit.conversations.ConversationAbandonedEvent; +import org.bukkit.entity.Arrow; +import org.bukkit.entity.Egg; +import org.bukkit.entity.Entity; +import org.bukkit.entity.EntityType; +import org.bukkit.entity.Player; +import org.bukkit.entity.Projectile; +import org.bukkit.entity.Snowball; +import org.bukkit.event.entity.EntityDamageEvent; +import org.bukkit.event.player.PlayerTeleportEvent.TeleportCause; +import org.bukkit.inventory.EntityEquipment; +import org.bukkit.inventory.Inventory; +import org.bukkit.inventory.InventoryView; +import org.bukkit.inventory.InventoryView.Property; +import org.bukkit.inventory.meta.ItemMeta; +import org.bukkit.inventory.ItemStack; +import org.bukkit.inventory.PlayerInventory; +import org.bukkit.map.MapView; +import org.bukkit.metadata.MetadataValue; +import org.bukkit.permissions.Permission; +import org.bukkit.permissions.PermissionAttachment; +import org.bukkit.permissions.PermissionAttachmentInfo; +import org.bukkit.plugin.Plugin; +import org.bukkit.potion.PotionEffect; +import org.bukkit.potion.PotionEffectType; +import org.bukkit.scoreboard.Scoreboard; +import org.bukkit.util.Vector; + +public class ImgPlayer implements Player { + + private Player joueur; + + public ImgPlayer(Player joueur) + { + this.joueur = joueur; + } + @Override + public void closeInventory() { + // TODO Auto-generated method stub + + } + + @Override + public Inventory getEnderChest() { + // TODO Auto-generated method stub + return null; + } + + @Override + public int getExpToLevel() { + // TODO Auto-generated method stub + return 0; + } + + @Override + public GameMode getGameMode() { + // TODO Auto-generated method stub + return null; + } + + @Override + public PlayerInventory getInventory() { + return joueur.getInventory(); + } + + @Override + public ItemStack getItemInHand() { + return joueur.getItemInHand(); + } + + @Override + public ItemStack getItemOnCursor() { + // TODO Auto-generated method stub + return null; + } + + @Override + public String getName() { + return joueur.getName(); + } + + @Override + public InventoryView getOpenInventory() { + // TODO Auto-generated method stub + return null; + } + + @Override + public int getSleepTicks() { + // TODO Auto-generated method stub + return 0; + } + + @Override + public boolean isBlocking() { + // TODO Auto-generated method stub + return false; + } + + @Override + public boolean isSleeping() { + // TODO Auto-generated method stub + return false; + } + + @Override + public InventoryView openEnchanting(Location arg0, boolean arg1) { + // TODO Auto-generated method stub + return null; + } + + @Override + public InventoryView openInventory(Inventory arg0) { + // TODO Auto-generated method stub + return null; + } + + @Override + public void openInventory(InventoryView arg0) { + // TODO Auto-generated method stub + + } + + @Override + public InventoryView openWorkbench(Location arg0, boolean arg1) { + // TODO Auto-generated method stub + return null; + } + + @Override + public void setGameMode(GameMode arg0) { + // TODO Auto-generated method stub + + } + + @Override + public void setItemInHand(ItemStack arg0) + { + ItemMeta meta = arg0.getItemMeta(); + meta.setDisplayName("Coucou, je suis un décorateur !"); + arg0.setItemMeta(meta); + joueur.setItemInHand(arg0); + } + + @Override + public void setItemOnCursor(ItemStack arg0) { + // TODO Auto-generated method stub + + } + + @Override + public boolean setWindowProperty(Property arg0, int arg1) { + // TODO Auto-generated method stub + return false; + } + + @Override + public int _INVALID_getLastDamage() { + // TODO Auto-generated method stub + return 0; + } + + @Override + public void _INVALID_setLastDamage(int arg0) { + // TODO Auto-generated method stub + + } + + @Override + public boolean addPotionEffect(PotionEffect arg0) { + // TODO Auto-generated method stub + return false; + } + + @Override + public boolean addPotionEffect(PotionEffect arg0, boolean arg1) { + // TODO Auto-generated method stub + return false; + } + + @Override + public boolean addPotionEffects(Collection arg0) { + // TODO Auto-generated method stub + return false; + } + + @Override + public Collection getActivePotionEffects() { + // TODO Auto-generated method stub + return null; + } + + @Override + public boolean getCanPickupItems() { + // TODO Auto-generated method stub + return false; + } + + @Override + public String getCustomName() { + // TODO Auto-generated method stub + return null; + } + + @Override + public EntityEquipment getEquipment() { + // TODO Auto-generated method stub + return null; + } + + @Override + public double getEyeHeight() { + // TODO Auto-generated method stub + return 0; + } + + @Override + public double getEyeHeight(boolean arg0) { + // TODO Auto-generated method stub + return 0; + } + + @Override + public Location getEyeLocation() { + // TODO Auto-generated method stub + return null; + } + + @Override + public Player getKiller() { + // TODO Auto-generated method stub + return null; + } + + @Override + public double getLastDamage() { + // TODO Auto-generated method stub + return 0; + } + + @Override + public List getLastTwoTargetBlocks(HashSet arg0, int arg1) { + // TODO Auto-generated method stub + return null; + } + + @Override + public Entity getLeashHolder() throws IllegalStateException { + // TODO Auto-generated method stub + return null; + } + + @Override + public List getLineOfSight(HashSet arg0, int arg1) { + // TODO Auto-generated method stub + return null; + } + + @Override + public int getMaximumAir() { + // TODO Auto-generated method stub + return 0; + } + + @Override + public int getMaximumNoDamageTicks() { + // TODO Auto-generated method stub + return 0; + } + + @Override + public int getNoDamageTicks() { + // TODO Auto-generated method stub + return 0; + } + + @Override + public int getRemainingAir() { + // TODO Auto-generated method stub + return 0; + } + + @Override + public boolean getRemoveWhenFarAway() { + // TODO Auto-generated method stub + return false; + } + + @Override + public Block getTargetBlock(HashSet arg0, int arg1) { + // TODO Auto-generated method stub + return null; + } + + @Override + public boolean hasLineOfSight(Entity arg0) { + // TODO Auto-generated method stub + return false; + } + + @Override + public boolean hasPotionEffect(PotionEffectType arg0) { + // TODO Auto-generated method stub + return false; + } + + @Override + public boolean isCustomNameVisible() { + // TODO Auto-generated method stub + return false; + } + + @Override + public boolean isLeashed() { + // TODO Auto-generated method stub + return false; + } + + @Override + public void removePotionEffect(PotionEffectType arg0) { + // TODO Auto-generated method stub + + } + + @Override + public void setCanPickupItems(boolean arg0) { + // TODO Auto-generated method stub + + } + + @Override + public void setCustomName(String arg0) { + // TODO Auto-generated method stub + + } + + @Override + public void setCustomNameVisible(boolean arg0) { + // TODO Auto-generated method stub + + } + + @Override + public void setLastDamage(double arg0) { + // TODO Auto-generated method stub + + } + + @Override + public boolean setLeashHolder(Entity arg0) { + // TODO Auto-generated method stub + return false; + } + + @Override + public void setMaximumAir(int arg0) { + // TODO Auto-generated method stub + + } + + @Override + public void setMaximumNoDamageTicks(int arg0) { + // TODO Auto-generated method stub + + } + + @Override + public void setNoDamageTicks(int arg0) { + // TODO Auto-generated method stub + + } + + @Override + public void setRemainingAir(int arg0) { + // TODO Auto-generated method stub + + } + + @Override + public void setRemoveWhenFarAway(boolean arg0) { + // TODO Auto-generated method stub + + } + + @Override + public Arrow shootArrow() { + // TODO Auto-generated method stub + return null; + } + + @Override + public Egg throwEgg() { + // TODO Auto-generated method stub + return null; + } + + @Override + public Snowball throwSnowball() { + // TODO Auto-generated method stub + return null; + } + + @Override + public boolean eject() { + // TODO Auto-generated method stub + return false; + } + + @Override + public int getEntityId() { + // TODO Auto-generated method stub + return 0; + } + + @Override + public float getFallDistance() { + // TODO Auto-generated method stub + return 0; + } + + @Override + public int getFireTicks() { + // TODO Auto-generated method stub + return 0; + } + + @Override + public EntityDamageEvent getLastDamageCause() { + // TODO Auto-generated method stub + return null; + } + + @Override + public Location getLocation() { + // TODO Auto-generated method stub + return null; + } + + @Override + public Location getLocation(Location arg0) { + // TODO Auto-generated method stub + return null; + } + + @Override + public int getMaxFireTicks() { + // TODO Auto-generated method stub + return 0; + } + + @Override + public List getNearbyEntities(double arg0, double arg1, double arg2) { + // TODO Auto-generated method stub + return null; + } + + @Override + public Entity getPassenger() { + // TODO Auto-generated method stub + return null; + } + + @Override + public Server getServer() { + // TODO Auto-generated method stub + return null; + } + + @Override + public int getTicksLived() { + // TODO Auto-generated method stub + return 0; + } + + @Override + public EntityType getType() { + // TODO Auto-generated method stub + return null; + } + + @Override + public UUID getUniqueId() { + // TODO Auto-generated method stub + return null; + } + + @Override + public Entity getVehicle() { + // TODO Auto-generated method stub + return null; + } + + @Override + public Vector getVelocity() { + // TODO Auto-generated method stub + return null; + } + + @Override + public World getWorld() { + return joueur.getWorld(); + } + + @Override + public boolean isDead() { + // TODO Auto-generated method stub + return false; + } + + @Override + public boolean isEmpty() { + // TODO Auto-generated method stub + return false; + } + + @Override + public boolean isInsideVehicle() { + // TODO Auto-generated method stub + return false; + } + + @Override + public boolean isValid() { + // TODO Auto-generated method stub + return false; + } + + @Override + public boolean leaveVehicle() { + // TODO Auto-generated method stub + return false; + } + + @Override + public void playEffect(EntityEffect arg0) { + // TODO Auto-generated method stub + + } + + @Override + public void remove() { + // TODO Auto-generated method stub + + } + + @Override + public void setFallDistance(float arg0) { + // TODO Auto-generated method stub + + } + + @Override + public void setFireTicks(int arg0) { + // TODO Auto-generated method stub + + } + + @Override + public void setLastDamageCause(EntityDamageEvent arg0) { + // TODO Auto-generated method stub + + } + + @Override + public boolean setPassenger(Entity arg0) { + // TODO Auto-generated method stub + return false; + } + + @Override + public void setTicksLived(int arg0) { + // TODO Auto-generated method stub + + } + + @Override + public void setVelocity(Vector arg0) { + // TODO Auto-generated method stub + + } + + @Override + public boolean teleport(Location arg0) { + // TODO Auto-generated method stub + return false; + } + + @Override + public boolean teleport(Entity arg0) { + // TODO Auto-generated method stub + return false; + } + + @Override + public boolean teleport(Location arg0, TeleportCause arg1) { + // TODO Auto-generated method stub + return false; + } + + @Override + public boolean teleport(Entity arg0, TeleportCause arg1) { + // TODO Auto-generated method stub + return false; + } + + @Override + public List getMetadata(String arg0) { + // TODO Auto-generated method stub + return null; + } + + @Override + public boolean hasMetadata(String arg0) { + // TODO Auto-generated method stub + return false; + } + + @Override + public void removeMetadata(String arg0, Plugin arg1) { + // TODO Auto-generated method stub + + } + + @Override + public void setMetadata(String arg0, MetadataValue arg1) { + // TODO Auto-generated method stub + + } + + @Override + public void _INVALID_damage(int arg0) { + // TODO Auto-generated method stub + + } + + @Override + public void _INVALID_damage(int arg0, Entity arg1) { + // TODO Auto-generated method stub + + } + + @Override + public int _INVALID_getHealth() { + // TODO Auto-generated method stub + return 0; + } + + @Override + public int _INVALID_getMaxHealth() { + // TODO Auto-generated method stub + return 0; + } + + @Override + public void _INVALID_setHealth(int arg0) { + // TODO Auto-generated method stub + + } + + @Override + public void _INVALID_setMaxHealth(int arg0) { + // TODO Auto-generated method stub + + } + + @Override + public void damage(double arg0) { + // TODO Auto-generated method stub + + } + + @Override + public void damage(double arg0, Entity arg1) { + // TODO Auto-generated method stub + + } + + @Override + public double getHealth() { + // TODO Auto-generated method stub + return 0; + } + + @Override + public double getMaxHealth() { + // TODO Auto-generated method stub + return 0; + } + + @Override + public void resetMaxHealth() { + // TODO Auto-generated method stub + + } + + @Override + public void setHealth(double arg0) { + // TODO Auto-generated method stub + + } + + @Override + public void setMaxHealth(double arg0) { + // TODO Auto-generated method stub + + } + + @Override + public T launchProjectile(Class arg0) { + // TODO Auto-generated method stub + return null; + } + + @Override + public T launchProjectile(Class arg0, + Vector arg1) { + // TODO Auto-generated method stub + return null; + } + + @Override + public PermissionAttachment addAttachment(Plugin arg0) { + // TODO Auto-generated method stub + return null; + } + + @Override + public PermissionAttachment addAttachment(Plugin arg0, int arg1) { + // TODO Auto-generated method stub + return null; + } + + @Override + public PermissionAttachment addAttachment(Plugin arg0, String arg1, + boolean arg2) { + // TODO Auto-generated method stub + return null; + } + + @Override + public PermissionAttachment addAttachment(Plugin arg0, String arg1, + boolean arg2, int arg3) { + // TODO Auto-generated method stub + return null; + } + + @Override + public Set getEffectivePermissions() { + // TODO Auto-generated method stub + return null; + } + + @Override + public boolean hasPermission(String arg0) { + return joueur.hasPermission(arg0); + } + + @Override + public boolean hasPermission(Permission arg0) { + // TODO Auto-generated method stub + return false; + } + + @Override + public boolean isPermissionSet(String arg0) { + // TODO Auto-generated method stub + return false; + } + + @Override + public boolean isPermissionSet(Permission arg0) { + // TODO Auto-generated method stub + return false; + } + + @Override + public void recalculatePermissions() { + // TODO Auto-generated method stub + + } + + @Override + public void removeAttachment(PermissionAttachment arg0) { + // TODO Auto-generated method stub + + } + + @Override + public boolean isOp() { + // TODO Auto-generated method stub + return false; + } + + @Override + public void setOp(boolean arg0) { + // TODO Auto-generated method stub + + } + + @Override + public void abandonConversation(Conversation arg0) { + // TODO Auto-generated method stub + + } + + @Override + public void abandonConversation(Conversation arg0, + ConversationAbandonedEvent arg1) { + // TODO Auto-generated method stub + + } + + @Override + public void acceptConversationInput(String arg0) { + // TODO Auto-generated method stub + + } + + @Override + public boolean beginConversation(Conversation arg0) { + // TODO Auto-generated method stub + return false; + } + + @Override + public boolean isConversing() { + // TODO Auto-generated method stub + return false; + } + + @Override + public void sendMessage(String arg0) { + joueur.sendMessage(arg0); + } + + @Override + public void sendMessage(String[] arg0) { + // TODO Auto-generated method stub + + } + + @Override + public long getFirstPlayed() { + // TODO Auto-generated method stub + return 0; + } + + @Override + public long getLastPlayed() { + // TODO Auto-generated method stub + return 0; + } + + @Override + public Player getPlayer() { + // TODO Auto-generated method stub + return null; + } + + @Override + public boolean hasPlayedBefore() { + // TODO Auto-generated method stub + return false; + } + + @Override + public boolean isBanned() { + // TODO Auto-generated method stub + return false; + } + + @Override + public boolean isOnline() { + // TODO Auto-generated method stub + return false; + } + + @Override + public boolean isWhitelisted() { + // TODO Auto-generated method stub + return false; + } + + @Override + public void setBanned(boolean arg0) { + // TODO Auto-generated method stub + + } + + @Override + public void setWhitelisted(boolean arg0) { + // TODO Auto-generated method stub + + } + + @Override + public Map serialize() { + // TODO Auto-generated method stub + return null; + } + + @Override + public Set getListeningPluginChannels() { + // TODO Auto-generated method stub + return null; + } + + @Override + public void sendPluginMessage(Plugin arg0, String arg1, byte[] arg2) { + // TODO Auto-generated method stub + + } + + @Override + public void awardAchievement(Achievement arg0) { + // TODO Auto-generated method stub + + } + + @Override + public boolean canSee(Player arg0) { + // TODO Auto-generated method stub + return false; + } + + @Override + public void chat(String arg0) { + // TODO Auto-generated method stub + + } + + @Override + public void decrementStatistic(Statistic arg0) + throws IllegalArgumentException { + // TODO Auto-generated method stub + + } + + @Override + public void decrementStatistic(Statistic arg0, int arg1) + throws IllegalArgumentException { + // TODO Auto-generated method stub + + } + + @Override + public void decrementStatistic(Statistic arg0, Material arg1) + throws IllegalArgumentException { + // TODO Auto-generated method stub + + } + + @Override + public void decrementStatistic(Statistic arg0, EntityType arg1) + throws IllegalArgumentException { + // TODO Auto-generated method stub + + } + + @Override + public void decrementStatistic(Statistic arg0, Material arg1, int arg2) + throws IllegalArgumentException { + // TODO Auto-generated method stub + + } + + @Override + public void decrementStatistic(Statistic arg0, EntityType arg1, int arg2) { + // TODO Auto-generated method stub + + } + + @Override + public InetSocketAddress getAddress() { + // TODO Auto-generated method stub + return null; + } + + @Override + public boolean getAllowFlight() { + // TODO Auto-generated method stub + return false; + } + + @Override + public Location getBedSpawnLocation() { + // TODO Auto-generated method stub + return null; + } + + @Override + public Location getCompassTarget() { + // TODO Auto-generated method stub + return null; + } + + @Override + public String getDisplayName() { + // TODO Auto-generated method stub + return null; + } + + @Override + public float getExhaustion() { + // TODO Auto-generated method stub + return 0; + } + + @Override + public float getExp() { + // TODO Auto-generated method stub + return 0; + } + + @Override + public float getFlySpeed() { + // TODO Auto-generated method stub + return 0; + } + + @Override + public int getFoodLevel() { + // TODO Auto-generated method stub + return 0; + } + + @Override + public double getHealthScale() { + // TODO Auto-generated method stub + return 0; + } + + @Override + public int getLevel() { + // TODO Auto-generated method stub + return 0; + } + + @Override + public String getPlayerListName() { + // TODO Auto-generated method stub + return null; + } + + @Override + public long getPlayerTime() { + // TODO Auto-generated method stub + return 0; + } + + @Override + public long getPlayerTimeOffset() { + // TODO Auto-generated method stub + return 0; + } + + @Override + public WeatherType getPlayerWeather() { + // TODO Auto-generated method stub + return null; + } + + @Override + public float getSaturation() { + // TODO Auto-generated method stub + return 0; + } + + @Override + public Scoreboard getScoreboard() { + // TODO Auto-generated method stub + return null; + } + + @Override + public int getStatistic(Statistic arg0) throws IllegalArgumentException { + // TODO Auto-generated method stub + return 0; + } + + @Override + public int getStatistic(Statistic arg0, Material arg1) + throws IllegalArgumentException { + // TODO Auto-generated method stub + return 0; + } + + @Override + public int getStatistic(Statistic arg0, EntityType arg1) + throws IllegalArgumentException { + // TODO Auto-generated method stub + return 0; + } + + @Override + public int getTotalExperience() { + // TODO Auto-generated method stub + return 0; + } + + @Override + public float getWalkSpeed() { + // TODO Auto-generated method stub + return 0; + } + + @Override + public void giveExp(int arg0) { + // TODO Auto-generated method stub + + } + + @Override + public void giveExpLevels(int arg0) { + // TODO Auto-generated method stub + + } + + @Override + public boolean hasAchievement(Achievement arg0) { + // TODO Auto-generated method stub + return false; + } + + @Override + public void hidePlayer(Player arg0) { + // TODO Auto-generated method stub + + } + + @Override + public void incrementStatistic(Statistic arg0) + throws IllegalArgumentException { + // TODO Auto-generated method stub + + } + + @Override + public void incrementStatistic(Statistic arg0, int arg1) + throws IllegalArgumentException { + // TODO Auto-generated method stub + + } + + @Override + public void incrementStatistic(Statistic arg0, Material arg1) + throws IllegalArgumentException { + // TODO Auto-generated method stub + + } + + @Override + public void incrementStatistic(Statistic arg0, EntityType arg1) + throws IllegalArgumentException { + // TODO Auto-generated method stub + + } + + @Override + public void incrementStatistic(Statistic arg0, Material arg1, int arg2) + throws IllegalArgumentException { + // TODO Auto-generated method stub + + } + + @Override + public void incrementStatistic(Statistic arg0, EntityType arg1, int arg2) + throws IllegalArgumentException { + // TODO Auto-generated method stub + + } + + @Override + public boolean isFlying() { + // TODO Auto-generated method stub + return false; + } + + @Override + public boolean isHealthScaled() { + // TODO Auto-generated method stub + return false; + } + + @Override + public boolean isOnGround() { + // TODO Auto-generated method stub + return false; + } + + @Override + public boolean isPlayerTimeRelative() { + // TODO Auto-generated method stub + return false; + } + + @Override + public boolean isSleepingIgnored() { + // TODO Auto-generated method stub + return false; + } + + @Override + public boolean isSneaking() { + // TODO Auto-generated method stub + return false; + } + + @Override + public boolean isSprinting() { + // TODO Auto-generated method stub + return false; + } + + @Override + public void kickPlayer(String arg0) { + // TODO Auto-generated method stub + + } + + @Override + public void loadData() { + // TODO Auto-generated method stub + + } + + @Override + public boolean performCommand(String arg0) { + // TODO Auto-generated method stub + return false; + } + + @Override + public void playEffect(Location arg0, Effect arg1, int arg2) { + // TODO Auto-generated method stub + + } + + @Override + public void playEffect(Location arg0, Effect arg1, T arg2) { + // TODO Auto-generated method stub + + } + + @Override + public void playNote(Location arg0, byte arg1, byte arg2) { + // TODO Auto-generated method stub + + } + + @Override + public void playNote(Location arg0, Instrument arg1, Note arg2) { + // TODO Auto-generated method stub + + } + + @Override + public void playSound(Location arg0, Sound arg1, float arg2, float arg3) { + // TODO Auto-generated method stub + + } + + @Override + public void playSound(Location arg0, String arg1, float arg2, float arg3) { + // TODO Auto-generated method stub + + } + + @Override + public void removeAchievement(Achievement arg0) { + // TODO Auto-generated method stub + + } + + @Override + public void resetPlayerTime() { + // TODO Auto-generated method stub + + } + + @Override + public void resetPlayerWeather() { + // TODO Auto-generated method stub + + } + + @Override + public void saveData() { + // TODO Auto-generated method stub + + } + + @Override + public void sendBlockChange(Location arg0, Material arg1, byte arg2) { + // TODO Auto-generated method stub + + } + + @Override + public void sendBlockChange(Location arg0, int arg1, byte arg2) { + // TODO Auto-generated method stub + + } + + @Override + public boolean sendChunkChange(Location arg0, int arg1, int arg2, int arg3, + byte[] arg4) { + // TODO Auto-generated method stub + return false; + } + + @Override + public void sendMap(MapView arg0) { + // TODO Auto-generated method stub + + } + + @Override + public void sendRawMessage(String arg0) { + // TODO Auto-generated method stub + + } + + @Override + public void setAllowFlight(boolean arg0) { + // TODO Auto-generated method stub + + } + + @Override + public void setBedSpawnLocation(Location arg0) { + // TODO Auto-generated method stub + + } + + @Override + public void setBedSpawnLocation(Location arg0, boolean arg1) { + // TODO Auto-generated method stub + + } + + @Override + public void setCompassTarget(Location arg0) { + // TODO Auto-generated method stub + + } + + @Override + public void setDisplayName(String arg0) { + // TODO Auto-generated method stub + + } + + @Override + public void setExhaustion(float arg0) { + // TODO Auto-generated method stub + + } + + @Override + public void setExp(float arg0) { + // TODO Auto-generated method stub + + } + + @Override + public void setFlySpeed(float arg0) throws IllegalArgumentException { + // TODO Auto-generated method stub + + } + + @Override + public void setFlying(boolean arg0) { + // TODO Auto-generated method stub + + } + + @Override + public void setFoodLevel(int arg0) { + // TODO Auto-generated method stub + + } + + @Override + public void setHealthScale(double arg0) throws IllegalArgumentException { + // TODO Auto-generated method stub + + } + + @Override + public void setHealthScaled(boolean arg0) { + // TODO Auto-generated method stub + + } + + @Override + public void setLevel(int arg0) { + // TODO Auto-generated method stub + + } + + @Override + public void setPlayerListName(String arg0) { + // TODO Auto-generated method stub + + } + + @Override + public void setPlayerTime(long arg0, boolean arg1) { + // TODO Auto-generated method stub + + } + + @Override + public void setPlayerWeather(WeatherType arg0) { + // TODO Auto-generated method stub + + } + + @Override + public void setResourcePack(String arg0) { + // TODO Auto-generated method stub + + } + + @Override + public void setSaturation(float arg0) { + // TODO Auto-generated method stub + + } + + @Override + public void setScoreboard(Scoreboard arg0) throws IllegalArgumentException, + IllegalStateException { + // TODO Auto-generated method stub + + } + + @Override + public void setSleepingIgnored(boolean arg0) { + // TODO Auto-generated method stub + + } + + @Override + public void setSneaking(boolean arg0) { + // TODO Auto-generated method stub + + } + + @Override + public void setSprinting(boolean arg0) { + // TODO Auto-generated method stub + + } + + @Override + public void setStatistic(Statistic arg0, int arg1) + throws IllegalArgumentException { + // TODO Auto-generated method stub + + } + + @Override + public void setStatistic(Statistic arg0, Material arg1, int arg2) + throws IllegalArgumentException { + // TODO Auto-generated method stub + + } + + @Override + public void setStatistic(Statistic arg0, EntityType arg1, int arg2) { + // TODO Auto-generated method stub + + } + + @Override + public void setTexturePack(String arg0) { + // TODO Auto-generated method stub + + } + + @Override + public void setTotalExperience(int arg0) { + // TODO Auto-generated method stub + + } + + @Override + public void setWalkSpeed(float arg0) throws IllegalArgumentException { + // TODO Auto-generated method stub + + } + + @Override + public void showPlayer(Player arg0) { + // TODO Auto-generated method stub + + } + + @Override + public void updateInventory() { + // TODO Auto-generated method stub + + } + +} diff --git a/src/fr/moribus/ImageOnMap/TacheTraitementMap.java b/src/fr/moribus/ImageOnMap/TacheTraitementMap.java index d1e0e53..b23e5a4 100644 --- a/src/fr/moribus/ImageOnMap/TacheTraitementMap.java +++ b/src/fr/moribus/ImageOnMap/TacheTraitementMap.java @@ -15,7 +15,7 @@ import org.bukkit.scheduler.BukkitRunnable; public class TacheTraitementMap extends BukkitRunnable { int i; - Player joueur; + ImgPlayer joueur; ImageRendererThread renduImg; PlayerInventory inv; ItemStack map; @@ -25,7 +25,7 @@ public class TacheTraitementMap extends BukkitRunnable TacheTraitementMap(Player j, String u, ImageOnMap plug, boolean rs, boolean rn) { i = 0; - joueur = j; + joueur = new ImgPlayer(j); renduImg = new ImageRendererThread(u, rs); renduImg.start(); inv = joueur.getInventory();