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:
parent
f02902fb1e
commit
b568195624
@ -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);
|
||||||
|
Loading…
Reference in New Issue
Block a user