ClassySK by novystxr

Object orientation for skript in the form of classes

Events

0

Expressions

0

Effects

0

Conditions

0

Types

0

Sections

0

Structures

0

Total

0

ClassySK 19 hours and 15 minutes ago

ClassySK is an addon that adds proper object orientation capabilities to skript in the form of classes. Allowing you to write powerful, defensive code and explore OOP concepts within skript!

Roadmap
Nothing here is set in stone but these are my future ambitions regarding the project (in no particular order)
- Inheritance: extending other classes
- Abstract classes: contains methods that must be implemented by inheritors, cannot be instantiated on its own
- Constant fields: fields that cant be changed after creation
- File specific access modifiers: local, folder
- Tables: looser, untyped data structures that can be passed around and used easily

Code Examples

class SmartActionBar:
public player: player
public refreshRate: integer = 1

private isActive: boolean = false
private values: strings

public play(value: string, duration: timespan):
add {_value} to self::values

if self::isActive is false:
self::start()

wait {_duration}
remove {_value} from self::values

public start():
set self::isActive to true

while self::isActive is true:
if size of self::values is 0:
exit loop

set {_text} to join self::values with "&7 | &r"
send action bar {_text} ? "" to self::player

wait self::refreshRate*1 tick

send action bar "" to self::player
set self::isActive to false


set {-actionBar::%player%} to new instance of SmartActionBar:
player: player
refreshRate: 1

{-actionBar::%player%}::play("<red>cool text", 3 seconds)

View Update

© Copyright 2014-2026 skUnity

All rights reserved.