Jump to content

Recommended Posts

Posted (edited)

hi, im trying to check if a player uses a totem. i asumed a totem use would be tied to the PlayerItemConsumeEvent, but i appear to be incorrect

is there an event that can check for this or do i have to approch this in another way? cheers,

the code i tried is this:

@EventHandler
	public void on_player_consume(PlayerItemConsumeEvent event) {
		
		Player p = (Player) event.getPlayer();
		
		p.sendMessage("item used");
		
	}

and it doesnt fire upon consuming a totem.

Edited by MarkNutt0
Guest
This topic is now closed to further replies.

Announcements



×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.