9
0
mirror of https://github.com/VolmitSoftware/Iris.git synced 2025-12-28 03:29:06 +00:00

Fix Parallax & update settings

This commit is contained in:
Daniel Mills
2021-01-01 22:54:17 -05:00
parent fcf8a80b0a
commit 9d634ba4d7
15 changed files with 42 additions and 103 deletions

View File

@@ -1,6 +1,5 @@
package com.volmit.iris.util;
import com.volmit.iris.Iris;
import com.volmit.iris.IrisSettings;
import org.bukkit.Sound;
@@ -60,7 +59,7 @@ public abstract class MortarCommand implements ICommand
return null;
}
if(sender.isPlayer() && IrisSettings.get().commandSounds)
if(sender.isPlayer() && IrisSettings.get().getGeneral().isCommandSounds())
{
sender.player().getWorld().playSound(sender.player().getLocation(), Sound.ENTITY_ITEM_FRAME_ROTATE_ITEM, 0.25f, 1.7f);
}
@@ -94,7 +93,7 @@ public abstract class MortarCommand implements ICommand
sender.sendMessage("There are either no sub-commands or you do not have permission to use them.");
}
if(sender.isPlayer() && IrisSettings.get().commandSounds)
if(sender.isPlayer() && IrisSettings.get().getGeneral().isCommandSounds())
{
sender.player().getWorld().playSound(sender.player().getLocation(), Sound.ITEM_BOOK_PAGE_TURN, 0.28f, 1.4f);
sender.player().getWorld().playSound(sender.player().getLocation(), Sound.ITEM_AXE_STRIP, 0.35f, 1.7f);

View File

@@ -1,13 +1,12 @@
package com.volmit.iris.util;
import java.lang.reflect.Field;
import com.volmit.iris.Iris;
import com.volmit.iris.IrisSettings;
import org.bukkit.Bukkit;
import org.bukkit.Sound;
import org.bukkit.command.CommandSender;
import com.volmit.iris.Iris;
import java.lang.reflect.Field;
/**
* Represents a virtual command. A chain of iterative processing through
@@ -108,7 +107,7 @@ public class VirtualCommand
c.remove(0);
if(cmd.hit(sender, c, vs.getCommand()))
{
if(vs.isPlayer() && IrisSettings.get().commandSounds)
if(vs.isPlayer() && IrisSettings.get().getGeneral().isCommandSounds())
{
vs.player().getWorld().playSound(vs.player().getLocation(), Sound.ITEM_AXE_STRIP, 0.35f, 1.8f);
}