KoxSosen / SimpleVoiceBans

SimpleVoiceBans provides a simple LibertyBans and SimpleVoiceChat integration.
MIT License
7 stars 1 forks source link

Move platform specific methods to the common package, and convert logic to use abstract methods. #7

Closed KoxSosen closed 1 month ago

KoxSosen commented 1 month ago

This PR creates a new interface AbstractPlaform that is implemented on every supported platform. This new interface allows for writing abstract logic in the common package. Using this interface, the plugin messaging logic, as well as the punishment events logic has been re-written, and re-implemented in the common package. This allows for the ease of maintainability, and much more readable code.

Additionally, this PR makes the plugin: