Plugin.yml Readded

plugin.yml somehow was deleted.
Minor Changes

Removed Unnecessary casting.
Optimization.