Skip to content
This repository was archived by the owner on May 6, 2018. It is now read-only.
This repository was archived by the owner on May 6, 2018. It is now read-only.

classes #383

@ghost

Description

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}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions