public void run(int id) {
SpoutPlayer player = SpoutManager.getPlayerFromId(id);
if (player != null) {
player.updateKeys(settingKeys);
if (pressDown) {
Bukkit.getServer().getPluginManager().callEvent(new KeyPressedEvent(this.key, player, ScreenType.getType(screenType)));
} else {
Bukkit.getServer().getPluginManager().callEvent(new KeyReleasedEvent(this.key, player, ScreenType.getType(screenType)));
}
}
}