}
String id = binding.getId();
Plugin plugin = binding.getPlugin();
if (pressed) {
try {
binding.getDelegate().keyPressed(new KeyBindingEvent(player, binding));
} catch (Exception e) {
System.out.println("Could not execute Key Press Delegate of plugin [" + plugin.getDescription().getName() + "] for action [" + id + "]!");
e.printStackTrace();
}
} else {
try {
binding.getDelegate().keyReleased(new KeyBindingEvent(player, binding));
} catch (Exception e) {
System.out.println("Could not execute Key Release Delegate of plugin [" + plugin.getDescription().getName() + "] for action [" + id + "]!");
e.printStackTrace();
}
}