# What is \`isCommand\` in an event descriptor?

**URL:** https://forums.creativeclouddeveloper.com/t/what-is-iscommand-in-an-event-descriptor/2564
**Category:** UXP Plugin API
**Created:** [February 21, 2021, 8:38pm UTC](https://forums.creativeclouddeveloper.com/t/what-is-iscommand-in-an-event-descriptor/2564 "2021-02-21T20:38:05Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![Karmalakas](https://sea1.discourse-cdn.com/flex015/user_avatar/forums.creativeclouddeveloper.com/karmalakas/32/1048_2.png) [@Karmalakas](https://forums.creativeclouddeveloper.com/u/Karmalakas)
#### Post date: [February 21, 2021, 8:38pm UTC](https://forums.creativeclouddeveloper.com/t/what-is-iscommand-in-an-event-descriptor/2564/1 "2021-02-21T20:38:06Z")

</div>

I have event listener in a plugin and usually it is called one time on each action. While developing at some point listener started recieving 2 events for each action. The only difference was `isCommand` property of the event descriptor - first time `false` and second time `true`. After I restarted Ps and loaded plugin again, it got back to one event per action with `isCommand: false`

What is this property? Do we need to pass it using `batchPlay()`? Why it event were triggered twice?

---

<div class="post-metadata">

### Author: ![simonhenke](https://sea1.discourse-cdn.com/flex015/user_avatar/forums.creativeclouddeveloper.com/simonhenke/32/957_2.png) [@simonhenke](https://forums.creativeclouddeveloper.com/u/simonhenke)
#### Post date: [February 21, 2021, 9:57pm UTC](https://forums.creativeclouddeveloper.com/t/what-is-iscommand-in-an-event-descriptor/2564/2 "2021-02-21T21:57:43Z")

</div>

You can leave it out, it will default to true. ([Here’s](http://forums.creativeclouddeveloper.com/t/bug-with-batchplay-copy-command/2175/8) an older comment about it)
