Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

setBlockSkin method always returns false #15

Open
4 tasks done
Cat956 opened this issue Aug 30, 2021 · 1 comment
Open
4 tasks done

setBlockSkin method always returns false #15

Cat956 opened this issue Aug 30, 2021 · 1 comment

Comments

@Cat956
Copy link

Cat956 commented Aug 30, 2021

Bug Report Template:

Required Information section:

ALL FIELDS IN THIS SECTION ARE REQUIRED, and must contain appropriate information

HeadDatabase version:

4.12.6

Server build info:

This server is running Paper version git-Paper-778 (MC: 1.16.5) (Implementing API version 1.16.5-R0.1-SNAPSHOT)
You are 10 version(s) behind
Previous version: git-Paper-771 (MC: 1.16.5)

Description of the problem:

The setBlockSkin() method always returns false despite the block containing a playerhead and the ID being accurate.

How to replicate:

Placed a regular player_head on the ground. Tried to convert to a particular hdb head using an ID, but failed.

Additional Information:

The information here is optional for you to provide, however it may help us to more readily diagnose any compatibility and bug issues.

Other plugins being used on the server:

Relevant console output, log lines, and/or screenshots:

@EventHandler
    public void PlayerRightClickBlock(PlayerInteractEvent e) {
    	if(e.getHand() == EquipmentSlot.HAND) return;
        Player p = e.getPlayer();
        Block b = e.getClickedBlock();
        if (b.getType() == Material.PLAYER_HEAD) {
			HeadDatabaseAPI hdbApi = new HeadDatabaseAPI();
			Bukkit.getLogger().info(Boolean.toString(hdbApi.isHead("29431")));
			Bukkit.getLogger().info(Boolean.toString(hdbApi.setBlockSkin(b, "29431")));
			return;
		}
}

prints
true
false

(using api version 1.2 maven dependency)

Additional relevant comments/remarks:

Using Shockbyte

AFFIRMATION OF COMPLETION:

  • I included all information required in the sections above
  • I made sure there are no duplicates of this report (Use Search)
  • I made sure I am using an up-to-date version of HeadDatabase & HeadDatabaseAPI
  • I made sure the bug/error is not caused by any other plugin
@Aurelien30000
Copy link

Most likely unrelated to API layer, you should consider reporting on the main plugin linking this issue ofc.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants