Home›Java›Mods›PlayerActions
PlayerActions
ModsJava

PlayerActions

Java mod listed for Minecraft 1.11–1.16. Downloads from the MC Java Mods app on Android.

⬇ Download on Spigot
[​IMG]

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:

This plugin currently supports these methods of interactions:

Permissions:

---- SMALL DEMONSTRATION ----​

[​IMG]

Developer API:
Spoiler: Expand
You must add PlayerActions.jar in dependencies before using our API!
Also in plugin.yml add PlayerActions to depend:
Code (YAML):
depend :

  - PlayerActions
 

JavaDoc's: https://www.bohdanchik.com/javadoc/playeractions1_0/
Examples:
Spoiler: Making own addon
Code (Java):
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 ( ) ;

            } ) ;
        }
    }
}
Spoiler: Register addon in PlayerActions
Code (Java):
PApi. getAddonManager ( ). register ( new ExampleAddon (plugin ) ) ;

Commands

Plugin details

Read from the plugin's own plugin.yml.

Quick facts

Install steps are the general flow for this file type — How to install Minecraft Java mods & modpacks walks through it step by step.

PlayerActions is a free Minecraft Java mod. Compatible with Minecraft 1.11, 1.12, 1.13, 1.14 and newer. Downloaded 277 times (via Spigot). Download it and open it directly in the game.

Explore more