Ursprung
c664e08fa6
Commit
169e4fd75f
@ -20,6 +20,7 @@
|
|||||||
package de.steamwar.schematicsystem;
|
package de.steamwar.schematicsystem;
|
||||||
|
|
||||||
import de.steamwar.message.Message;
|
import de.steamwar.message.Message;
|
||||||
|
import de.steamwar.schematicsystem.commands.AprilCommand;
|
||||||
import de.steamwar.schematicsystem.commands.DownloadCommand;
|
import de.steamwar.schematicsystem.commands.DownloadCommand;
|
||||||
import de.steamwar.schematicsystem.commands.schematiccommand.SchematicCommand;
|
import de.steamwar.schematicsystem.commands.schematiccommand.SchematicCommand;
|
||||||
import de.steamwar.schematicsystem.commands.schematiccommand.SchematicCommandInitializer;
|
import de.steamwar.schematicsystem.commands.schematiccommand.SchematicCommandInitializer;
|
||||||
@ -38,6 +39,7 @@ public class SchematicSystem extends JavaPlugin {
|
|||||||
|
|
||||||
SchematicCommandInitializer.init();
|
SchematicCommandInitializer.init();
|
||||||
new DownloadCommand();
|
new DownloadCommand();
|
||||||
|
new AprilCommand();
|
||||||
|
|
||||||
Bukkit.getPluginManager().registerEvents(new PlayerEventListener(), this);
|
Bukkit.getPluginManager().registerEvents(new PlayerEventListener(), this);
|
||||||
}
|
}
|
||||||
|
@ -17,12 +17,10 @@
|
|||||||
along with this program. If not, see <https://www.gnu.org/licenses/>.
|
along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
package de.steamwar.schematicsystem.commands.schematiccommand.parts;
|
package de.steamwar.schematicsystem.commands;
|
||||||
|
|
||||||
import de.steamwar.command.AbstractSWCommand;
|
|
||||||
import de.steamwar.command.SWCommand;
|
import de.steamwar.command.SWCommand;
|
||||||
import de.steamwar.schematicsystem.SchematicSystem;
|
import de.steamwar.schematicsystem.SchematicSystem;
|
||||||
import de.steamwar.schematicsystem.commands.schematiccommand.SchematicCommand;
|
|
||||||
import de.steamwar.sql.SchematicData;
|
import de.steamwar.sql.SchematicData;
|
||||||
import de.steamwar.sql.SchematicNode;
|
import de.steamwar.sql.SchematicNode;
|
||||||
import de.steamwar.sql.SteamwarUser;
|
import de.steamwar.sql.SteamwarUser;
|
||||||
@ -32,12 +30,11 @@ import java.io.IOException;
|
|||||||
import java.util.List;
|
import java.util.List;
|
||||||
import java.util.Random;
|
import java.util.Random;
|
||||||
|
|
||||||
@AbstractSWCommand.PartOf(SchematicCommand.class)
|
public class AprilCommand extends SWCommand {
|
||||||
public class AprilPart extends SWCommand {
|
|
||||||
private static final Random random = new Random();
|
private static final Random random = new Random();
|
||||||
|
|
||||||
public AprilPart() {
|
public AprilCommand() {
|
||||||
super(null);
|
super("ai");
|
||||||
}
|
}
|
||||||
|
|
||||||
@Register("prompt")
|
@Register("prompt")
|
@ -32,6 +32,5 @@ public class SchematicCommandInitializer {
|
|||||||
new SavePart().setMessage(SchematicSystem.MESSAGE);
|
new SavePart().setMessage(SchematicSystem.MESSAGE);
|
||||||
new SearchPart().setMessage(SchematicSystem.MESSAGE);
|
new SearchPart().setMessage(SchematicSystem.MESSAGE);
|
||||||
new ViewPart().setMessage(SchematicSystem.MESSAGE);
|
new ViewPart().setMessage(SchematicSystem.MESSAGE);
|
||||||
new AprilPart().setMessage(SchematicSystem.MESSAGE);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
In neuem Issue referenzieren
Einen Benutzer sperren