List of Issues While Updating a Plugin

Discussion in 'Plugin Development' started by chernobyl360, May 16, 2011.

Thread Status:
Not open for further replies.
  1. Offline

    chernobyl360

    Ok ive got this Big Project Im working On. Its a Surprise for everyone. Im updating a plugin.all ill say its a *classic* or a *must have* :D. Anyways Most of it is corrected *i believe*.But i was wondering if someone could help.



    The Issues:
    The Permissions to match the newer API.
    Fix PLAYER_COMMAND
    import java.util.ArrayList;
    import org.bukkit.Location;
    import org.bukkit.World;
    import org.bukkit.block.Block;
    import org.bukkit.entity.Player;
    import java.util.HashMap;
    import org.bukkit.craftbukkit.CraftWorld;
    import org.bukkit.craftbukkit.block.CraftBlock;
    import org.bukkit.event.player.PlayerListener;
    import org.bukkit.event.player.PlayerMoveEvent;

    These Show Up As *Never Used* on Eclipse. Doesnt That mean there not on bukkit?

    How Would I correct These? ^^^ Ill Still Work On this While I wait im not gonna just wait and have it handed over :p...
     
  2. If they're warnings and underlined yellow then you can get rid of them. All it means is that you've imported the methods but never use them.
     
  3. Offline

    chernobyl360

    Thanks. but thats odd though becuase on one of the Classes its telling me the ONLY 2 imports havent been used.


    Code:
    package com.chernobyl.flash.mode;
    import org.bukkit.block.Block;
    import org.bukkit.entity.Player;
    
    public abstract class Mode
    {
    
        public Mode()
        {
        }
    
        public abstract org.bukkit.block.Block getCenterBlock(org.bukkit.entity.Player player);
    
        public org.bukkit.block.Block setCenterBlock(org.bukkit.entity.Player player)
        {
            return null;
        }
    
        private org.bukkit.block.Block centerBlock;
    }
    So this is how the Mode.java class is setup but its saying that the imports arent used...
     
  4. You used public org.bukkit.block.Block setCenterBlock() etc
    if you replace the underlined with Block , you're using the imports.
     
Thread Status:
Not open for further replies.

Share This Page