Skript icon indicating copy to clipboard operation
Skript copied to clipboard

classes

Open ghost opened this issue 7 years ago • 3 comments

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}

ghost avatar Apr 28 '17 13:04 ghost

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

LamboCreeper avatar Apr 28 '17 14:04 LamboCreeper

I think the things he wrote is sarcasm.

Mervey7 avatar Apr 28 '17 15:04 Mervey7

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!

antoniojamore avatar Dec 28 '17 00:12 antoniojamore