Signed-off-by: yoyosource <yoyosource@nidido.de>
Dieser Commit ist enthalten in:
Ursprung
348ed47d19
Commit
f2f204ca78
@ -1061,6 +1061,10 @@ TNT_CLICK_VELOCITY_X = §7Velocity §eX§8: §e{0}
|
|||||||
TNT_CLICK_VELOCITY_Y = §7Velocity §eY§8: §e{0}
|
TNT_CLICK_VELOCITY_Y = §7Velocity §eY§8: §e{0}
|
||||||
TNT_CLICK_VELOCITY_Z = §7Velocity §eZ§8: §e{0}
|
TNT_CLICK_VELOCITY_Z = §7Velocity §eZ§8: §e{0}
|
||||||
|
|
||||||
|
WATER_VISION_HELP = §8/§ewatervision §8- §7Schalte Watervision an oder aus.
|
||||||
|
WATER_VISION_DISABLE = §eWassersicht deaktiviert
|
||||||
|
WATER_VISION_ENABLE = §eWassersicht aktiviert
|
||||||
|
|
||||||
#Select Util
|
#Select Util
|
||||||
SELECT_GUI_CHOOSE_EXTENSION = Extension auswählen
|
SELECT_GUI_CHOOSE_EXTENSION = Extension auswählen
|
||||||
SELECT_GUI_CHOOSE_SELECTION = Auswahl auswählen
|
SELECT_GUI_CHOOSE_SELECTION = Auswahl auswählen
|
||||||
|
@ -19,11 +19,11 @@
|
|||||||
|
|
||||||
package de.steamwar.bausystem.features.util;
|
package de.steamwar.bausystem.features.util;
|
||||||
|
|
||||||
import de.steamwar.bausystem.SWUtils;
|
import de.steamwar.bausystem.BauSystem;
|
||||||
import de.steamwar.bausystem.config.ColorConfig;
|
|
||||||
import de.steamwar.bausystem.linkage.LinkageType;
|
import de.steamwar.bausystem.linkage.LinkageType;
|
||||||
import de.steamwar.bausystem.linkage.Linked;
|
import de.steamwar.bausystem.linkage.Linked;
|
||||||
import de.steamwar.command.SWCommand;
|
import de.steamwar.command.SWCommand;
|
||||||
|
import net.md_5.bungee.api.ChatMessageType;
|
||||||
import org.bukkit.entity.Player;
|
import org.bukkit.entity.Player;
|
||||||
import org.bukkit.potion.PotionEffect;
|
import org.bukkit.potion.PotionEffect;
|
||||||
import org.bukkit.potion.PotionEffectType;
|
import org.bukkit.potion.PotionEffectType;
|
||||||
@ -35,19 +35,14 @@ public class WaterVisionCommand extends SWCommand {
|
|||||||
super("watervision", "wv");
|
super("watervision", "wv");
|
||||||
}
|
}
|
||||||
|
|
||||||
@Register(help = true)
|
@Register(description = "WATER_VISION_HELP")
|
||||||
public void help(final Player p, final String... args) {
|
|
||||||
p.sendMessage(ColorConfig.OTHER + "/" + ColorConfig.HIGHLIGHT + "watervision " + ColorConfig.OTHER + "-" + ColorConfig.BASE + " Schalte Watervision an oder aus.");
|
|
||||||
}
|
|
||||||
|
|
||||||
@Register
|
|
||||||
public void genericCommand(Player p) {
|
public void genericCommand(Player p) {
|
||||||
if (p.hasPotionEffect(PotionEffectType.WATER_BREATHING)) {
|
if (p.hasPotionEffect(PotionEffectType.WATER_BREATHING)) {
|
||||||
p.removePotionEffect(PotionEffectType.WATER_BREATHING);
|
p.removePotionEffect(PotionEffectType.WATER_BREATHING);
|
||||||
SWUtils.sendToActionbar(p, ColorConfig.HIGHLIGHT + "Wassersicht deaktiviert");
|
BauSystem.MESSAGE.sendPrefixless("WATER_VISION_DISABLE", p, ChatMessageType.ACTION_BAR);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
p.addPotionEffect(new PotionEffect(PotionEffectType.WATER_BREATHING, 1000000, 255, false, false));
|
p.addPotionEffect(new PotionEffect(PotionEffectType.WATER_BREATHING, 1000000, 255, false, false));
|
||||||
SWUtils.sendToActionbar(p, ColorConfig.HIGHLIGHT + "Wassersicht aktiviert");
|
BauSystem.MESSAGE.sendPrefixless("WATER_VISION_ENABLE", p, ChatMessageType.ACTION_BAR);
|
||||||
}
|
}
|
||||||
}
|
}
|
In neuem Issue referenzieren
Einen Benutzer sperren