GithubHelp home page GithubHelp logo

New event "on any event:" about skript HOT 4 CLOSED

AlliSite avatar AlliSite commented on June 20, 2024 1
New event "on any event:"

from skript.

Comments (4)

Fusezion avatar Fusezion commented on June 20, 2024

Personally I'm against this, however I'd love to hear a further explanation why you'd like this.

from skript.

AlliSite avatar AlliSite commented on June 20, 2024

Лично я против этого, но хотел бы услышать более подробное объяснение, почему вам это нужно.

For example, for a script for registration and authorization, prohibiting all actions, rather than writing them manually and clogging up the script.
Example:

on any event:
if {not_authorized.%uuid of player%} is set:
cancel event
send "Please log in with the command /l [password]" to player

from skript.

ShaneBeee avatar ShaneBeee commented on June 20, 2024

This would break so many more things than you'd know.
A good example is:

  • events that can't be cancelled, how would that be handled
  • what about events that fire that are unrelated to a player?
  • how exactly would you handle event-player???

There isn't an easy or plausible way to handle this in Skript.
Something like this is just "syntax sugar" and in my opinion, a little lazy... while also causing more issues that you could imagine.

I personally vote no on this

from skript.

Pikachu920 avatar Pikachu920 commented on June 20, 2024

For many of the reasons outlined here, this isn't feasible to add to Skript

from skript.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.