mirror of
https://github.com/TotalFreedomMC/TotalFreedomMod.git
synced 2025-08-04 11:35:39 +00:00
Allow admins to use lava/water buckets
This commit is contained in:
parent
b02764ddca
commit
7ac7b75ae6
1 changed files with 2 additions and 2 deletions
|
@ -53,7 +53,7 @@ public class TFM_PlayerListener implements Listener
|
|||
{
|
||||
case WATER_BUCKET:
|
||||
{
|
||||
if (TFM_ConfigEntry.ALLOW_WATER_PLACE.getBoolean())
|
||||
if (TFM_AdminList.isSuperAdmin(player) || TFM_ConfigEntry.ALLOW_WATER_PLACE.getBoolean())
|
||||
{
|
||||
break;
|
||||
}
|
||||
|
@ -66,7 +66,7 @@ public class TFM_PlayerListener implements Listener
|
|||
|
||||
case LAVA_BUCKET:
|
||||
{
|
||||
if (TFM_ConfigEntry.ALLOW_LAVA_PLACE.getBoolean())
|
||||
if (TFM_AdminList.isSuperAdmin(player) || TFM_ConfigEntry.ALLOW_LAVA_PLACE.getBoolean())
|
||||
{
|
||||
break;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue