Skip to content
This repository has been archived by the owner on Feb 3, 2021. It is now read-only.

Marks Manager

yueyinqiu edited this page Sep 4, 2020 · 5 revisions

Everything goes around the class top.nololiyt.yueyinqiu.bukkitplugins.marksapi.MarksManager, a singleton class, whose static method getInstance() will return the instance.


To Get Marks:

You can invoke MarksManager's method getMark(String, MarkRelatedValues) to get a location by a key with its provider prefix, and getAllMarksKey(MarkRelatedValues) to get all keys with prefix.

Although we don't know how to get the key and the prefix separately, but the method getMark(String, String, MarkRelatedValues) is provided, so you can separately pass the key and the prefix.


To Provide Marks:

If you can provide marks, please implement a top.nololiyt.yueyinqiu.bukkitplugins.marksapi.MarksProvider, and invoke marksProviders() to get a list of providers.
Then you can invoke add(MarksProvider), a method of the list, to add your provider. And if your provider is disabled, please invoke remove(MarksProvider).

This list is an instance of a custom class, to which all the operations are thread-safe.

Contents

Server Owner Pages

View these pages if you don't know how to use this plugin on your server.

Development Pages

View these pages when you want to develop a plugin with this API.

Clone this wiki locally