1
0
mirror of https://github.com/Zrips/Jobs.git synced 2024-11-26 04:25:15 +01:00

Lets check NPE

This commit is contained in:
Zrips 2019-09-22 11:19:54 +03:00
parent f02902fb1e
commit b568195624

View File

@ -126,6 +126,7 @@ public class editquests implements Cmd {
String objName = target.toLowerCase().replace('_', ' '); String objName = target.toLowerCase().replace('_', ' ');
objName = Character.toUpperCase(objName.charAt(0)) + objName.substring(1); objName = Character.toUpperCase(objName.charAt(0)) + objName.substring(1);
if (o != null)
objName = Jobs.getNameTranslatorManager().Translate(objName, o.getAction(), o.getTargetId(), objName = Jobs.getNameTranslatorManager().Translate(objName, o.getAction(), o.getTargetId(),
o.getTargetMeta(), target); o.getTargetMeta(), target);
objName = org.bukkit.ChatColor.translateAlternateColorCodes('&', objName); objName = org.bukkit.ChatColor.translateAlternateColorCodes('&', objName);