Particles/src/main/java/com/alttd/gui/actions/ToggleSeeParticles.java
Teriuihi bc74d35faa Added GUI's
Added player settings
Added commands
2022-01-11 23:02:04 +01:00

24 lines
680 B
Java

package com.alttd.gui.actions;
import com.alttd.gui.GUIAction;
import com.alttd.gui.windows.OpenParticleGUI;
import com.alttd.storage.PlayerSettings;
import org.bukkit.entity.Player;
public class ToggleSeeParticles implements GUIAction {
OpenParticleGUI openParticleGUI;
PlayerSettings playerSettings;
public ToggleSeeParticles(OpenParticleGUI openParticleGUI, PlayerSettings playerSettings) {
this.openParticleGUI = openParticleGUI;
this.playerSettings = playerSettings;
}
@Override
public void click(Player player) {
playerSettings.toggleSeeingParticles();
openParticleGUI.updateSettingSlots(playerSettings);
}
}