Infinite loop trying to copy blocks and paste them (imitating WorldEdit)

So I’m trying to make a plugin where the arena would be automatically generated depending on what is set by the admin.
Upon attempting to paste the stored blocks,it seems to be looping infinitely,am I doing something wrong?
Attached is the code for the paste command and the video demonstrating my issue

PasteCommand
Video