mirror of
https://github.com/Zrips/Jobs.git
synced 2024-12-01 15:03:36 +01:00
Extra information when material is not a desired block
This commit is contained in:
parent
ec383bb28a
commit
eccd0f506a
@ -258,7 +258,7 @@ public class ConfigManager {
|
|||||||
if (actionType == ActionType.BREAK || actionType == ActionType.PLACE || actionType == ActionType.STRIPLOGS) {
|
if (actionType == ActionType.BREAK || actionType == ActionType.PLACE || actionType == ActionType.STRIPLOGS) {
|
||||||
if (!material.isBlock()) {
|
if (!material.isBlock()) {
|
||||||
Jobs.getPluginLogger().warning("Job " + jobName + " has an invalid " + actionType.getName() + " type property: " + material
|
Jobs.getPluginLogger().warning("Job " + jobName + " has an invalid " + actionType.getName() + " type property: " + material
|
||||||
+ "(" + myKey + ")! Material must be a block!");
|
+ "(" + myKey + ")! Material must be a block! Use \"/jobs blockinfo\" on a target block");
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -1044,7 +1044,7 @@ public class ConfigManager {
|
|||||||
if (actionType == ActionType.BREAK || actionType == ActionType.PLACE || actionType == ActionType.STRIPLOGS) {
|
if (actionType == ActionType.BREAK || actionType == ActionType.PLACE || actionType == ActionType.STRIPLOGS) {
|
||||||
if (!material.isBlock()) {
|
if (!material.isBlock()) {
|
||||||
Jobs.getPluginLogger().warning("Job " + jobKey + " has an invalid " + actionType.getName() + " type property: " + material
|
Jobs.getPluginLogger().warning("Job " + jobKey + " has an invalid " + actionType.getName() + " type property: " + material
|
||||||
+ " (" + key + ")! Material must be a block!");
|
+ " (" + key + ")! Material must be a block! Use \"/jobs blockinfo\" on a target block");
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user