Sueta

PlayerActions

1.0

PlayerActions is a Flexible plugin for players to interact with each other!

·Plugin

PlayerActions
PlayerActions is a Flexible plugin for players to interact with each other!

Important!! The plugin needs TNK API to work (https://www.spigotmc.org/resources/tnk-api.72966/), also it is automatically DOWNLOADING at the first time of the server with this plugin.

This plugin is designed for interaction between players, such as transferring money, adding a player to the region (there are already developments) and all other actions that can be done with each other and much easier!

Features:

  • Customization
    This plugin has a very, very large customization. Configure language, menus, own commands, permissions and many other things! Also all settings are well documented.
    Default configs: https://gist.github.com/Tankonyako/6cef8f3fecbacd467fc80d7a96a3597e
  • API
    We support API and deep integration of your plugin into our plugin, at the end of the description there will be a description about developers and API for them.
  • Simple & Fun
    A plugin that simplifies life and adds a drop of roleplay to your server! As for example: transfer of money near. Also in the future we plan to make separate Addons for our plugin which will be very tasty!
  • Multilanguage
    The plugin has support for English, Russian, Ukrainian, Japanese, Germany, Romanian, French languages at once!

This plugin currently supports these methods of interactions:

  • Command
    This trigger is called when writing a command in a game chat.
  • Click's
    This trigger is triggered when you click on a player.
  • List menu
    Add's list menu (opened from command), also can replace /list command

Permissions:

  • pa.updater.notify
    Notify player about new plugin update..
  • pa.use.command
    Use /paction (or custom) command.
  • pa.use.admin
    Use /padmin admin command.
  • pa.list.command
    Use /list (or custom) command.

---- SMALL DEMONSTRATION ----

Developer API:

Expand

You must add PlayerActions.jar in dependencies before using our API!
Also in plugin.yml add PlayerActions to depend:

depend:

  - PlayerActions

JavaDoc's: https://www.bohdanchik.com/javadoc/playeractions1_0/
Examples:

Making own addon
import org.bitbucket.fudotsu.playeractions.addons.PAddon;
import org.bitbucket.fudotsu.playeractions.events.PlayerActionAddonPrepareItemEvent;
import org.bukkit.Bukkit;
import org.bukkit.event.EventHandler;

public class ExampleAddon extends PAddon {
    JavaPlugin plugin;
    public ExampleAddon(JavaPlugin plugin) {
        super("Example Addon");
        this.plugin = plugin;
    }

    public void init() {
        Bukkit.getPluginManager().registerEvents(this, plugin); // Listener
    }

    public void uninit() {

    }

    @EventHandler
    public void prepareItem(PlayerActionAddonPrepareItemEvent event) { // Listener for preparing item's
        if (event.getAddonID().equalsIgnoreCase("object1")) { // If item 'addon' setting == "object1"
            event.setEvent((e) -> {
                if (event.getArguments().getVar("close", Boolean.class, false)) e.getWhoClicked().closeInventory();

            });
        }else if (event.getAddonID().equalsIgnoreCase("object2")) { // If item 'addon' setting == "object2"
            event.setEvent((e) -> {
                if (event.getArguments().getVar("close", Boolean.class, false)) e.getWhoClicked().closeInventory();

            });
        }
    }
}
Register addon in PlayerActions
PApi.getAddonManager().register(new ExampleAddon(plugin));

Similar projects

Plugin →