I already had that setting to true and I was more focused on an any item dupe but thanks for the help it is appreciated.Yes you can use this plaugin: https://forums.papermc.io/threads/gravitycontrol-sand-dupe-enabler-for-paper-servers.12/
or does the "allow-piston-duplication: false" (to disable it) also work?