mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2025-01-18 08:25:27 +01:00
Revert regression, restoring material based salvage permissions (#5130)
* Revert regression. Fixes salvage permissions by material type --------- Signed-off-by: Momshroom <Momshroom@gmail.com>
This commit is contained in:
parent
dae66c7433
commit
b4d9337329
@ -78,6 +78,17 @@ public class SalvageManager extends SkillManager {
|
||||
}
|
||||
}
|
||||
|
||||
// Permissions checks on material and item types
|
||||
if (!Permissions.salvageItemType(player, salvageable.getSalvageItemType())) {
|
||||
NotificationManager.sendPlayerInformation(player, NotificationType.NO_PERMISSION, "mcMMO.NoPermission");
|
||||
return;
|
||||
}
|
||||
|
||||
if (!Permissions.salvageMaterialType(player, salvageable.getSalvageMaterialType())) {
|
||||
NotificationManager.sendPlayerInformation(player, NotificationType.NO_PERMISSION, "mcMMO.NoPermission");
|
||||
return;
|
||||
}
|
||||
|
||||
/*int skillLevel = getSkillLevel();*/
|
||||
int minimumSalvageableLevel = salvageable.getMinimumLevel();
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user