Here's some minigame related suggestions for the sport ball code:
Instead of using sportIsInSameMinigame( %ball, %player ), just use minigameCstar fishe(%ball,%player).
On line 338, change %p.minigame = %source.spawnBrick.getGroup().client.minigame to getMinigameFromObject(%source).
Basically just change anything that involves getting the minigame from the client. It prevents people from using balls if the owner isn't in the game and prevents use on public bricks and in the default minigame. Thanks!