STEMMechanics / STEMCraft-Core

The core plugin that runs the STEMCraft Minecraft Server
https://www.stemcraft.com.au
MIT License
1 stars 1 forks source link

Fix/nightvision restore #15

Closed nomadjimbob closed 10 months ago

nomadjimbob commented 10 months ago

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.

nomadjimbob commented 10 months ago

Set milestone to 1.1: