kill multiplayer api

Access kill bonus multiplier information.


Package

bg.pikz.shards.api.interfaces.KillMultiplayerAPI

Accessing KillMultiplayerAPI

import bg.pikz.shards.api.ShardsAPIProvider;
import bg.pikz.shards.api.interfaces.KillMultiplayerAPI;

ShardsAPI api = ShardsAPIProvider.getAPI();
KillMultiplayerAPI killMultiplier = api.getKillMultiplayer();

Methods

getKillMultiplayer()

Gets the kill multiplier permissions and their corresponding shard values.

HashMap<String, Long> getKillMultiplayer()

Returns: A map of permission node names to shard bonus amounts

Example:


isPreventAbuse()

Checks if abuse prevention is enabled for kill rewards.

Returns: true if abuse prevention is enabled (prevents farming by killing the same player repeatedly)

Example:


getKillShards(Player player)

Gets the highest kill shard bonus for a player based on their permissions.

Parameters:

  • player - The player to check

Returns: The highest shard bonus amount, or 0 if no permissions match

Example:


Complete Example


Kill Stats Display Example