ArmorStand head rotate

Discussion in 'Plugin Development' started by MinecraftDorado, Jun 17, 2016.

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

    MinecraftDorado

    @I Al Istannen
    It does not work this part of the code. You know how I can fix this?
    Code:
        public void onEnable() {
            Bukkit.getServer().getLogger().info("Head enable!");
        }
      
        public void eye(Player b, ArmorStand as) {
            Player player = b.getPlayer();
            player.sendMessage("hi");
    }
     
  2. Offline

    I Al Istannen

    @MinecraftDorado
    When do you call this method? We will need to see the whole class. From this snippet you never even call the method.
    Also "b.getPlayer()" is redundant. Just use b.
     
  3. Offline

    MinecraftDorado

    @I Al Istannen
    Not like calling this method, it does not leave me the way you do.
     
  4. Offline

    I Al Istannen

    @MinecraftDorado
    Could you rephrase this? I don't understand what you meant.
     
  5. Offline

    MrGeneralQ

    You probably think you are using an event no? In order to execute any of The code it should look Mike this

    eye(playerinstance,amorstand);

    If you don't have it , then The code just won't run.

    If you have it, then The code doesn't reach Your method and so there are no debug messages
     
Thread Status:
Not open for further replies.

Share This Page