Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

resolve mistake in #49 #51

Merged
merged 2 commits into from
Jan 22, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ public void onInteract(PlayerInteractEntityEvent e) {
Player target = (Player) targetEntity;
Player source = e.getPlayer();
PlayerInfo targetInfo = getPlayerInfo(target.getUniqueId());
if (targetInfo == null) return; // it can happen when the player model is used for an NPC
if (targetInfo == null || targetInfo.getName() == null) return; // it can happen when the player model is used for an NPC
String description = ChatColor.WHITE+targetInfo.getName()+ChatColor.GRAY+": * "+ChatColor.ITALIC+
targetInfo.getDescription("Une personne comme une autre") +ChatColor.RESET+ChatColor.GRAY+" *";
source.sendMessage(ChatColor.translateAlternateColorCodes('&', description));
Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/plugin.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: AquilonThings
version: 3.1.0
version: 3.1.1
api-version: "1.15"
description: AquilonThings est le framework plugin d'Aquilon
website: https://github.com/aquilon-fr/AquilonThings
Expand Down
Loading