mirror of
https://github.com/Zrips/Jobs.git
synced 2025-02-18 05:11:32 +01:00
Lets check NPE
This commit is contained in:
parent
f02902fb1e
commit
b568195624
@ -126,6 +126,7 @@ public class editquests implements Cmd {
|
||||
|
||||
String objName = target.toLowerCase().replace('_', ' ');
|
||||
objName = Character.toUpperCase(objName.charAt(0)) + objName.substring(1);
|
||||
if (o != null)
|
||||
objName = Jobs.getNameTranslatorManager().Translate(objName, o.getAction(), o.getTargetId(),
|
||||
o.getTargetMeta(), target);
|
||||
objName = org.bukkit.ChatColor.translateAlternateColorCodes('&', objName);
|
||||
|
Loading…
Reference in New Issue
Block a user