Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package com.fryslan.plugins.core;
- import com.fryslan.plugins.actions.PluginAction;
- import com.runeflex.api.*;
- import com.runeflex.api.methods.Skills;
- import com.runeflex.api.wrapper.chat.ChatboxMessage;
- import java.awt.image.BufferedImage;
- import java.util.ArrayList;
- /**
- * Created with IntelliJ IDEA.
- * User: Piet Jetse
- * Date: 18-4-2015
- * Time: 18:18
- */
- @PluginInfo(author = "Fryslan", version = "1.0",name = "Fryslan Plugins")
- public class Core extends Plugin implements GameSettingListener,ChatboxListener,ExperienceListener,VarpListener{
- private static ArrayList<PluginAction> actions;
- public Core(){
- actions = new ArrayList<PluginAction>();
- }
- @Override
- public BufferedImage getIcon() {
- return null;
- }
- @Override
- public PluginType getType() {
- return null;
- }
- @Override
- public void construct(int i, int i1) {
- }
- @Override
- public void run() {
- for(PluginAction action : actions){
- if(action != null){
- if(action.activate()){
- action.execute();
- }
- }
- }
- }
- @Override
- public void chatboxMessageReceived(ChatboxMessage chatboxMessage) {
- System.out.printf("Message Added In Chatbox : %s",chatboxMessage);
- }
- @Override
- public void experienceGained(Skills skills, int i) {
- System.out.printf("Experience Added : %s - %s",skills.skillName(),i);
- }
- @Override
- public void settingChanged(int i, int i1, int i2) {
- System.out.printf("Setting Changed : setting %s from %s to %s",i,i1,i2);
- }
- @Override
- public void varpChanged(int i, int i1, int i2) {
- System.out.printf("Varp Changed : varp %s from %s to %s",i,i1,i2);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement