jensjeflensje / websk

Create websites using Skript!
MIT License
9 stars 4 forks source link

Convert session expression & effect as property #6

Closed ItsTheSky closed 2 years ago

ItsTheSky commented 2 years ago

This small pull request simply change the way to manage session property as a real (skript) property, which means the following code will work:

set session property "is_logged" of {_req} to "true"

if session property "is_logged" of {_req} parsed as boolean is true

set {_name} to session property "username" of {_req}

# etc...

And added basic documentation (description & example) to this property.

I also removed (you can undo that commit if you already planned to add a serializer) the empty serializer of the request type, since it caused some issue when Skript tried to load a variable with that entity.