org.bukkit.event.player.PlayerSkinPartsChangeEvent Java Examples
The following examples show how to use
org.bukkit.event.player.PlayerSkinPartsChangeEvent.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: TabManager.java From PGM with GNU Affero General Public License v3.0 | 5 votes |
@EventHandler(priority = EventPriority.MONITOR, ignoreCancelled = true) public void onSkinPartsChange(PlayerSkinPartsChangeEvent event) { TabEntry entry = this.getPlayerEntryOrNull(event.getPlayer()); if (entry instanceof PlayerTabEntry) { ((PlayerTabEntry) entry).onSkinPartsChange(event); } }
Example #2
Source File: TabManager.java From ProjectAres with GNU Affero General Public License v3.0 | 5 votes |
@EventHandler(priority = EventPriority.MONITOR, ignoreCancelled = true) public void onSkinPartsChange(PlayerSkinPartsChangeEvent event) { TabEntry entry = this.getPlayerEntryOrNull(event.getPlayer()); if(entry instanceof PlayerTabEntry) { ((PlayerTabEntry) entry).onSkinPartsChange(event); } }
Example #3
Source File: PlayerTabEntry.java From PGM with GNU Affero General Public License v3.0 | 4 votes |
protected void onSkinPartsChange(PlayerSkinPartsChangeEvent event) { if (this.player == event.getPlayer()) { this.updateFakeEntity(); } }
Example #4
Source File: PlayerTabEntry.java From ProjectAres with GNU Affero General Public License v3.0 | 4 votes |
protected void onSkinPartsChange(PlayerSkinPartsChangeEvent event) { if(this.player == event.getPlayer()) { this.updateFakeEntity(); } }
Example #5
Source File: TabList.java From CardinalPGM with MIT License | 4 votes |
@EventHandler public void onPlayerChangeSkinParts(PlayerSkinPartsChangeEvent event) { getPlayer(event.getPlayer()).setHat(event.getPlayer().getSkinParts().contains(Skin.Part.HAT)); }