X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=src%2Fmain%2Fjava%2Fnet%2Fpterodactylus%2Fsonitus%2Fdata%2Fcontroller%2FSwitch.java;h=1b997d4b363604cfa16120305bc2cbcc4e55f22a;hb=b61d311f6fd16ccf65decf3b29e9b06bb58406cd;hp=cb853a3665999bee0b372297adbdbd3b39c9d2ea;hpb=f761d816f6e2f14bc80efb45e4cb5c130fa9a57f;p=sonitus.git diff --git a/src/main/java/net/pterodactylus/sonitus/data/controller/Switch.java b/src/main/java/net/pterodactylus/sonitus/data/controller/Switch.java index cb853a3..1b997d4 100644 --- a/src/main/java/net/pterodactylus/sonitus/data/controller/Switch.java +++ b/src/main/java/net/pterodactylus/sonitus/data/controller/Switch.java @@ -24,19 +24,26 @@ package net.pterodactylus.sonitus.data.controller; */ public abstract class Switch extends AbstractController { - /** Creates a new switch that is off. */ - public Switch() { - this(false); + /** + * Creates a new switch that is off. + * + * @param name + * The name of the switch + */ + public Switch(String name) { + this(name, false); } /** * Creates a new switch with the given state. * + * @param name + * The name of the switch * @param active * The state of the switch */ - public Switch(boolean active) { - super(false, true, false, active); + public Switch(String name, boolean active) { + super(name, false, true, false, active); } }