This PR adds an action (toggle|enable|disable) parameter to the command as well as a player name to perform in the command on another player. (default)
Now enforces a player and action when run from the console.
Will restore previous night vision effect when disabled, if one was present when the player enabled it.
Nightvision methods within the class are now public to allow other features to manipulate player states. This plugin now requires the SMPersistent feature (#14) to be enabled to store states across server restarts.
BREAKING CHANGES
The permission has been changed from stemcraft.nightvision to stemcraft.command.nightvision to be inline with other permission structures used in the plugin.
This PR adds an action (toggle|enable|disable) parameter to the command as well as a player name to perform in the command on another player. (default)
Now enforces a player and action when run from the console.
Will restore previous night vision effect when disabled, if one was present when the player enabled it.
Nightvision methods within the class are now public to allow other features to manipulate player states. This plugin now requires the SMPersistent feature (#14) to be enabled to store states across server restarts.
BREAKING CHANGES The permission has been changed from
stemcraft.nightvision
tostemcraft.command.nightvision
to be inline with other permission structures used in the plugin.