Sharpjaws / SharpSK

An addon for Skript that adds lots of features and other features from your favourite plugins to skript. Supports 1.8 up to 1.12
https://forums.skunity.com/resources/72
MIT License
8 stars 12 forks source link

Mcmmo error #28

Closed Portanna closed 7 years ago

Portanna commented 7 years ago

You forgot to also set the "get" event of "[mcmmo] %skilltype% level of %offlineplayer%" syntax to be compatible with offlineplayers.

protected Integer[] get(Event e) { return new Integer[] { Integer.valueOf(ExperienceAPI.getLevel((Player)this.p.getSingle(e), ((SkillType)this.s.getSingle(e)).toString())) }; }

Stacktrace: https://pastebin.com/raw/7AawUbsE

I built the latest sharpsk ( McMMO: Added Offlineplayer support for most syntaxes.) with the latest mcmmo commit with maven.

Sharpjaws commented 7 years ago

Thanks, should be fixed with my next commit