Skip to content
This repository has been archived by the owner on Nov 5, 2020. It is now read-only.

Latest commit

 

History

History
53 lines (39 loc) · 1008 Bytes

README.md

File metadata and controls

53 lines (39 loc) · 1008 Bytes

CustomHeads [Project is closed down!]

Installation

  1. Download the Jar here.
  2. Put the Jar into your plugins folder.
  3. Start your nukkit server, and have fun.

Features to be added soon

  • Load head from a png file.
  • Get head from a player who's offline.
  • Config
  • Update checker

Commands

  • /head < name >

Permissions

  • For command: customheads.admin

Events

There are two events, so you can use them:

1. HeadDestroyEvent

@EventHandler
public void onDestroy( HeadDestroyEvent e ) {
  Player player = e.getPlayer();
  
  if(!player.hasPermission("example.test") {
    e.setCancelled( true );
  }
}

2. HeadPlaceEvent

 @EventHandler
 public void onPlace( HeadPlaceEvent e ) {
   Player player = e.getPlayer();
  
   if(!player.hasPermission("example.test") {
     e.setCancelled( true );
   }
 }

Contact