The actual system itself won't be java (as anyone in their right mind knows it's buggy).
The actual game itself isn't structured like minecraft - it'd be different in terms of api.
Plugins would work like they currently do - plug in to the server via an api such as bukkit/spigot.