Clear on join #4
@ -35,7 +35,7 @@ import com.redstoner.modules.webtoken.WebToken;
|
||||
/** Main class. Duh.
|
||||
*
|
||||
* @author Pepich */
|
||||
@Version(major = 1, minor = 4, revision = 0, compatible = -1)
|
||||
@Version(major = 1, minor = 4, revision = 1, compatible = -1)
|
||||
public class Main extends JavaPlugin
|
||||
{
|
||||
public static JavaPlugin plugin;
|
||||
|
@ -7,6 +7,7 @@ import org.bukkit.potion.PotionEffectType;
|
||||
|
||||
import com.nemez.cmdmgr.Command;
|
||||
import com.redstoner.annotations.Version;
|
||||
import com.redstoner.misc.Utils;
|
||||
import com.redstoner.modules.Module;
|
||||
|
||||
@Version(major = 1, minor = 0, revision = 0, compatible = 1)
|
||||
@ -20,9 +21,11 @@ public class Illumination implements Module{
|
||||
Player player = (Player) sender;
|
||||
if(player.hasPotionEffect(PotionEffectType.NIGHT_VISION)) {
|
||||
player.removePotionEffect(PotionEffectType.NIGHT_VISION);
|
||||
Utils.sendMessage(sender, null, "Night Vision Disabled.");
|
||||
}
|
||||
else {
|
||||
player.addPotionEffect(effect, true);
|
||||
Utils.sendMessage(sender, null, "Night Vision Enabled.");
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user