jensjeflensje / websk

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

Small Ideas #27

Closed Norbiros closed 2 years ago

Norbiros commented 2 years ago

Add something like that: request method and request ip Becouse now we can use method of request

ItsTheSky commented 2 years ago

Not sure what will be ued with, could you give complete example code for these please?

Norbiros commented 2 years ago

Only easier way of doing that. For example when i look at skript and i found ip i tried request ip... IDK it is me, or a lot of skripters will do the same as me... Code Not tested:


    Skript.registerExpression(
        ExprRequestMethod.class,
        String.class,
        ExpressionType.SIMPLE,
        "%request% method",
        "method of %request%",
        "%request%'s method"
    );
Norbiros commented 2 years ago

It is stupid addition. Only I see problem with this, maybe becouse that I'm Polish so I took it from Polish grammar... Sorry for problem.