Git Product home page Git Product logo

plugins-source's Introduction

OpenOSRS-external-example

You can use this repository as base for your external plugins, and host it on GitHub to make your external plugins available for everybody through the external manager plugin panel in the OpenOSRS client.

This has been updated for the new OPRS client version 4.0+.

First of all you need to build the client (refer to the steps in this guide) After building you need to upload all the artifacts to your local maven repository. You can do this within intellij by going to the gradle panel at the right hand side and click on OpenOSRS -> Tasks -> publishing -> publishToMavenLocal

In this repository you'll find two examples one is written in kotlin and the other one is written in java. Before you start you need to make a couple changes:

  1. Go to the file "build.gradle.kts" in the main folder
  2. Change the value of "project.extra["GithubUrl"]" to your github name and repository (only needed if you want to upload the plugins)
  3. Change the value of "project.extra["PluginProvider"]" to your name or your alias.
  4. Change the value of "project.extra["ProjectSupportUrl"]" to your discord channel or leave it empty.

The file "{project}/{projectname}.gradle.kts" (for example "javaexample/javaexample.gradle.kts") has two values you'll need to change "project.extra["PluginName"]" and "project.extra["PluginDescription"]"

After building your project you can find the plugin jar in the build/libs folder of that project. This jar can be used directly by copying it into the "plugins" folder in the ".openosrs" directory: USER/.openosrs/plugins.

If you want to bootstrap your plugins to make them available on GitHub you can just easily run the following task from the gradle panel in intellij Tasks -> other -> bootstrapPlugin This will copy your plugin to the release folder in the main directory and fill the plugins.json file with the needed information.

You should always run the clean task before running the bootstrapPlugins task! Before bootstrapping make sure you've changed the version number of your project, duplicate version numbers are not allowed and the bootstrap task will fail.

plugins-source's People

Contributors

owain94 avatar rivalosrs avatar srljustin avatar swazrgb avatar thatgamerblue avatar xkylee avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.