Git Product home page Git Product logo

sakul6499-2016's Introduction

Devathon Project

Author: @Sakul6499

I decided to make a small but kinda powerful plugin.
It will spawn a little cart (also known as Turtle).
You can easily control this cart by using a self coded Script (within Java).

Please Note: Due to lack of time not everything might work a 100%. I probably will continue this project in some time!

Project Layout

Name Description
Core The Plugin itself, it will load the scripts etc.
Test An Example Script

Commands

Name Function
/spawn <name> Will spawn a cart at your current position with the given name
/remove <name> Will delete the cart with the name
#<name> <script> Will assoc the script and the cart and execute the Script. The script know will be executed!

Scripts

To make your own Script, simply use the Core.jar as your API.
You know need to create any class (with any name) and add the three important @annotations:

Name Where Function
@script(name, author, version) Directly above the Class This is the most important one. It will set a name for the script, as well as the author and current version.
@startup Directly above the Method Will point to the startup method
@shutdown Directly above the Method Will point to the shutdown method

See more in the 'Test' folder (Example: Test/src/main/java/de/sakul6499/test/Test.java)

All Scripts will need to be in the 'SERVER_ROOT/scripts' folder.

Example work through:

  1. Create a own Script (like the Example).
  2. Build it and copy it into the 'SERVER_ROOT/scripts' folder.
  3. Start the Spigot Server with the Core.jar plugin.
  4. Join and execute:
    1. /spawn <name> [eg. /spawn Cake]
    2. #<name> <script> [eg. #Cake test]
  5. Watch it!

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.