13
0

Fix AI
Alle Prüfungen waren erfolgreich
SteamWarCI Build successful

Dieser Commit ist enthalten in:
Chaoscaot 2023-04-01 14:22:02 +02:00
Ursprung c664e08fa6
Commit 169e4fd75f
3 geänderte Dateien mit 6 neuen und 8 gelöschten Zeilen

Datei anzeigen

@ -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);
} }

Datei anzeigen

@ -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")

Datei anzeigen

@ -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);
} }
} }