View difference between Paste ID: 2F473vLS and sidmGvJK
SHOW: | | - or go back to the newest paste.
1
	@EventHandler
2
	 public void onSoup(PlayerInteractEvent e) {
3
		Player player = e.getPlayer();
4-
		if(e.getAction() == Action.RIGHT_CLICK_AIR || e.getAction() == Action.RIGHT_CLICK_BLOCK) {
4+
		if(e.getAction().equals(Action.RIGHT_CLICK_AIR) || e.getAction().equals(Action.RIGHT_CLICK_BLOCK)) {
5-
			if(player.getItemInHand() == null) {
5+
6
					if(player.getHealthScale() > 13) {
7
						player.setHealth(20);
8-
						player.setHealth(13);
8+
9
					}else{
10
						player.setHealth(player.getHealthScale() + 7);
11
						player.getItemInHand().setType(Material.BOWL);
12-
					}
12+
13
			}
14
		}
15
	}
16
}