2018-09-22 18:30:32 +02:00
|
|
|
package main.extensions.examples.blockreplacepackets;
|
|
|
|
|
|
|
|
import javafx.fxml.FXMLLoader;
|
|
|
|
import javafx.scene.Parent;
|
|
|
|
import javafx.scene.Scene;
|
|
|
|
import javafx.stage.Stage;
|
|
|
|
import main.extensions.ExtensionForm;
|
2018-09-25 18:58:58 +02:00
|
|
|
import main.extensions.ExtensionInfo;
|
2018-09-22 18:30:32 +02:00
|
|
|
import main.ui.GEarthController;
|
|
|
|
|
|
|
|
import java.net.URL;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Created by Jonas on 22/09/18.
|
|
|
|
*/
|
2018-09-25 18:58:58 +02:00
|
|
|
|
|
|
|
|
|
|
|
@ExtensionInfo(
|
|
|
|
Title = "iManipulate",
|
|
|
|
Description = "Block &/ replace packets",
|
|
|
|
Version = "0.1",
|
|
|
|
Author = "sirjonasxx"
|
|
|
|
)
|
2018-09-22 18:30:32 +02:00
|
|
|
public class BlockAndReplacePackets extends ExtensionForm {
|
|
|
|
|
|
|
|
public static void main(String[] args) {
|
|
|
|
ExtensionForm.args = args;
|
|
|
|
launch(args);
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
protected void initExtension() {
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public void setStageData(Stage primaryStage) throws Exception {
|
|
|
|
FXMLLoader loader = new FXMLLoader(BlockAndReplacePackets.class.getResource("blockreplace.fxml"));
|
|
|
|
Parent root = loader.load();
|
|
|
|
|
|
|
|
primaryStage.setTitle("Packet blocker and replacer");
|
|
|
|
primaryStage.setScene(new Scene(root, 565, 262));
|
|
|
|
}
|
|
|
|
}
|