Njol / Skript

Skript is a Bukkit plugin which allows server admins to customize their server easily, but without the hassle of programming a plugin or asking/paying someone to program a plugin for them.
http://njol.ch/projects/skript
104 stars 60 forks source link

classes #383

Open ghost opened 7 years ago

ghost commented 7 years ago

I know that you guys are trying to add more functionality into Skript. The functions were really good idea but we need something better for making Skript greater. Syntax of the plugin is almost look same with Python so lets get inspired by that programming language! Also lets put some PHP and Java! It would be perfect if skript was object oriented.

class NewPlayerClass extends Player:
    function define($super):
        set {this} to $super

    function kill():
        say "no" to {this}

on join:
    set {david} to a instance of NewPlayerClass with parameter player

    call kill from {david}
LamboCreeper commented 7 years ago

I'd suggest this over at skUnity Forums. It has a higher chance of being added.

Mervey7 commented 7 years ago

I think the things he wrote is sarcasm.

antoniojamore commented 6 years ago

Hey there!

This version of Skript is unsupported and outdated. If you would like to join an awesome Skript community that has a forums and Discord chat, check out skunity.com they also have an updated database of Skript addons and documentation there too!