Cops [API] [CopsAPI] [NametagEdit] - Cracked by Leon and T0R

NULLED Cops [API] [CopsAPI] [NametagEdit] - Cracked by Leon and T0R v1.10

No permission to download



Cops is a wanted level and player cop plugin, allowing players to gain wanted levels by killing players, or become a cop via /Cop (as long as they have the correct permission and a wanted level of 0).


- Every time a player kills another player their wanted level increases by one (excludes player cops)
- Killing a wanted player will reward you with a configurable amount of money (multiplied by your victims wanted level)
- Dying while wanted will result in the loss of a configurable amount of money (multiplied by your wanted level)
- Killing a cop rewards a (configurable) amount of money
- Dying while a cop rewards a (configurable) amount of money
- Players with a certain permission can become a /Cop (as long as they have a wanted level of 0)
- Player cops have a designated inventory (editable via /Cops Save)
- Blacklist specific commands while a player is a Cop
- Blacklist specific commands while a player is wanted
- Player cops can do /Wanted List to list the top online wanted players
- Player cops can /Wanted Select [Player] to target a wanted player with a compass
- Player cops can only attack players with a wanted level, or those who first attack a cop
- Setup wanted clear signs to allow wanted players to clear their wanted level (for a configurable price, per level)
- Cops can't pickup or drop items
- Toggle whether or not cops can move items to/from/around chests
- Set the Max_Cops_Percentage to limit the amount of cops to players ratio
- Toggle whether or not playercops will lose their /Cop status on death
- 30 second cooldown (configurable) for using the /Cop command


/Cops Help - Show help menu for this command
/Cops Save - Save your inventory as the player cops inventory
/Cops NPCop - Save your equipment as the NPCops equipment (Armor/Weapons)
/Cops SetCopSpawn - Set the spawn point for cops (disable this feature by not using it)
/Cops RemoveCopSpawn Remove respawn location for player cops
/Cops SetFromCopSpawn Set spawn location for when players leave cop mode (disable this feature by not using it)
/Cops RemoveFromCopSpawn Remove spawn location for when players leave cop mode
/Cops Reload - Reload Cops

/Cop
- Toggle Cop mode, requires a wanted level of 0
/Cop On - Enable Cop mode (If not already a Cop)
/Cop Enable - Enable Cop mode (If not already a Cop)
/Cop Off - Disable Cop mode (If a Cop)
/Cop Disable - Disable Cop mode (If a Cop)

/Wanted List
- List top online wanted players, must be a Cop
/Wanted Select [Player] - Select a wanted target, must be a Cop

/WantedLevels Add [Player] [Levels] - Add wanted levels to a player
/WantedLevels Remove [Player] [Levels] - Remove wanted levels from a player
/WantedLevels Reset [Player] - Reset a players wanted level

/WantedClearSigns - Used to setup wanted clear signs
/WCS - Alias for above command


The only thing you need to setup before you start using this plugin is the player cop inventory, however there are some other things in the config you can optionally setup or tweak for your server as well.

Player Cop Inventory
Arrange your inventory the way you want the player cops inventory to be
Run the command; /Cops Save
Thats it! You have setup the cop inventory

Player Cop Spawn Location
Go to where you want playercops to spawn when they die and/or become a /Cop
Run the command; /Cops SetCopSpawn

Wanted Clear Signs

Look at a sign (or a block!) that you want to setup as a clear sign
/WCS Add [ID] (The ID can be anything)
Thats it! You have created a wanted clear sign
Remember you can create as many as you want


The following plugins are required for Cops to run;
- NametagEdit; For colored nametags
- Vault and an economy handler (like essentials) to enable currency / bounties

Optionally, if you want to use any of Maximvdw's placeholder plugins you can install the following to enable that;
- This plugin (Cops)
- My CopsAPI plugin
- MVdWPlaceholderAPI


Cops has a fairly solid API which you can hook into to get access to various methods. Cops customers are welcome to lend their private developers the Cops.jar but only so they can access this API.
Code (Text):
Cops.getApi();
// Returns the API

Cops.getApi().isCop(player);
// Returns whether or not player is a Cop
Code (Text):
toCop(Player player);
// Sets a player as a Cop (If they are not a Cop)

fromCop(Player player);
// De-Cops a player (If they are a Cop)

resetLevel(Player player);
// Sets a players wanted level to 0

addLevel(Player player);
// Adds 1 wanted level to player

addLevel(Player player, int levels);
// Adds specified wanted levels to player

removeLevel(Player player);
// Remove 1 wanted level from player

removeLevel(Player player, int levels);
// Remove specified wanted levels from player

setLevel(Player player, int level);
// Set a players wanted level

isCop(Player player);
// Returns whether or not player is a Cop

isWanted(Player player);
// Returns whether or not a player is Wanted

getWantedLevel(Player player);
// Returns players wanted level

totalCops();
// Returns amount of player cops online

totalWanted();
// Returns amount of wanted players online

getTablistPrefix(Player player);
// Returns specified players tablist prefix

getTablistSuffix(Player player);
// Returns specified players tablist suffix

getNametagPrefix(Player player);
// Returns specified players nametag prefix

getNametagSuffix(Player player);
// Returns specified players nametag suffix


Code (Text):
# Color
Color_1: '&6'
Color_2: '&e'
#
# Settings
Use_Alternate_Time_Format: false
Do_OPs_Bypass: # OPs have all permissions, so set their permissions status on these permissions here
cops.copcooldown.bypass: true
cops.wanted.bypass: false
#
# Bounty
Wanted_Kill_Bounty: 10 # Money (multiplied by level) received for killing a wanted player
Wanted_Death_Money: 10 # Money (multiplied by level) lost when dieing while wanted
Cop_Kill_Bounty: 100 # Money received for killing a cop
Cop_Death_Bounty: 100 # Money lost for dying as a cop
Clear_Cost_Per_Level: 100 # Money (multiplied by level) it costs to clear wanted levels using wanted clear signs
#
# Compass
Give_Compass: true # Whether or not to give a compass to a cop when they select a target (If they don't already have a compass)
Top_Wanted_Players_To_Show: 10 # Amount of wanted players to list when a cop does '/Wanted List'
Compass_Tick: 1 # How often (In ticks, 20 = 1 second) the compass is updated with cop target locations
#
# Tablist
Tablist:
Override: true # Override player Tablist with prefix and suffix
Cop_Prefix: "&9"
Wanted_Prefix: "&c"
Citizen_Prefix: "&f"
Cop_Suffix: ""
Wanted_Suffix: " %wantedlevel%"
Citizen_Suffix: ""
#
# Nametags
Nametag:
Override: true # Override player Nametags with prefix and suffix
Cop_Prefix: "&9"
Wanted_Prefix: "&c"
Citizen_Prefix: "&f"
Cop_Suffix: ""
Wanted_Suffix: " %wantedlevel%"
Citizen_Suffix: ""
#
# Cops
Max_Cops_Percentage: 0.25 # Maximum percentage of cops (to players) allowed
Cops_Can_Move_Items_Around_Chests: true # Whether or not Cops can move items to/from/around chests
De_Cop_On_Death: false # Whether or not to 'de-Cop' player cops when they die
Cop_Cooldown: 30 # How long a player must wait between using the /Cop command
Blacklisted_Cop_Commands: # Commands that cannot be run by a player while in Cop mode
- "command1"
- "command2"
- "command3"
#
# Wanted Players
Blacklisted_Wanted_Commands: # Commands that cannot be run by a player while they are wanted
- "command1"
- "command2"
- "command3"





cops.commands.cop Access to the toggle /Cop command

cops.commands.cops
Access to the admin setup /Cops command

cops.commands.wanted.* Access to all /Wanted commands
cops.commands.wanted.list Access to /Wanted List
cops.commands.wanted.select
Access to /Wanted Select

cops.commands.wantedlevels.* Access to all /WantedLevels commands
cops.commands.wantedlevels.add Access to /WantedLevels Add
cops.commands.wantedlevels.remove
Access to /WantedLevels Remove
cops.commands.wantedlevels.reset
Access to /WantedLevels Reset

cops.commands.wantedclearsigns Access to the /WantedClearSigns setup command

cops.copcooldown.bypass Ability to bypass the command cooldown for /Cop
cops.wanted.bypass
Ability to bypass becoming wanted

https://www.spigotmc.org/resources/cops-api-copsapi-nametagedit.34624/
  • Like
Reactions: TechGaming1
Top