Separate names with a comma.
Ik this is quite late but if your still lost this should help it's what helped me with this exact issue...
Is inventoryOpenEvent not called when a player opens his own inventory?
Noticed that every time I use the sphere command it crashes
our can use a plugin for that forget the name it's like stupid name or somthing