YML überabreitet und Befehl umbenannt
Dieser Commit ist enthalten in:
Ursprung
05d2ef4632
Commit
68e44aa670
@ -88,7 +88,7 @@ public class BauSystem extends JavaPlugin implements Listener {
|
|||||||
getCommand("skull").setExecutor(new CommandSkull());
|
getCommand("skull").setExecutor(new CommandSkull());
|
||||||
getCommand("loader").setExecutor(new CommandLoader());
|
getCommand("loader").setExecutor(new CommandLoader());
|
||||||
getCommand("lockschem").setExecutor(new CommandLockschem());
|
getCommand("lockschem").setExecutor(new CommandLockschem());
|
||||||
getCommand("gills").setExecutor(new CommandGills());
|
getCommand("watervision").setExecutor(new CommandGills());
|
||||||
|
|
||||||
Bukkit.getPluginManager().registerEvents(this, this);
|
Bukkit.getPluginManager().registerEvents(this, this);
|
||||||
Bukkit.getPluginManager().registerEvents(new RegionListener(), this);
|
Bukkit.getPluginManager().registerEvents(new RegionListener(), this);
|
||||||
|
@ -19,13 +19,13 @@ public class CommandGills implements CommandExecutor {
|
|||||||
|
|
||||||
for(PotionEffect effect : player.getActivePotionEffects()){
|
for(PotionEffect effect : player.getActivePotionEffects()){
|
||||||
if(effect.getType().equals(PotionEffectType.WATER_BREATHING)){
|
if(effect.getType().equals(PotionEffectType.WATER_BREATHING)){
|
||||||
player.sendMessage(BauSystem.PREFIX + "Kiemen deaktiviert");
|
player.sendMessage(BauSystem.PREFIX + "Wassersicht deaktiviert");
|
||||||
player.removePotionEffect(PotionEffectType.WATER_BREATHING);
|
player.removePotionEffect(PotionEffectType.WATER_BREATHING);
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
player.addPotionEffect(new PotionEffect(PotionEffectType.WATER_BREATHING, 1000000, 255, false, false));
|
player.addPotionEffect(new PotionEffect(PotionEffectType.WATER_BREATHING, 1000000, 255, false, false));
|
||||||
player.sendMessage(BauSystem.PREFIX + "Kiemen aktiviert");
|
player.sendMessage(BauSystem.PREFIX + "Wassersicht aktiviert");
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -26,4 +26,6 @@ commands:
|
|||||||
loader:
|
loader:
|
||||||
nightvision:
|
nightvision:
|
||||||
aliases: nv
|
aliases: nv
|
||||||
|
watervision:
|
||||||
|
aliases: wv
|
||||||
lockschem:
|
lockschem:
|
In neuem Issue referenzieren
Einen Benutzer sperren