Awesome. BUT what if I wanted to remove all weapons starting with Test/ except for Test/One for example? I tried this but it didn't work..
PHP Code:
for (temp.w: player.weapons) {
if (temp.w.starts("Test/")) player.removeWeapon(temp.w);
}
sleep(0.05);
addWeapon("Test/One");