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