diff --git a/src/main/java/hu/jgj52/wolfFFA/Commands/WolfFfaCommand.java b/src/main/java/hu/jgj52/wolfFFA/Commands/WolfFfaCommand.java index 598a46c..e9b1f5e 100644 --- a/src/main/java/hu/jgj52/wolfFFA/Commands/WolfFfaCommand.java +++ b/src/main/java/hu/jgj52/wolfFFA/Commands/WolfFfaCommand.java @@ -1,7 +1,9 @@ package hu.jgj52.wolfFFA.Commands; import org.bukkit.Bukkit; +import org.bukkit.Location; import org.bukkit.Material; +import org.bukkit.World; import org.bukkit.command.Command; import org.bukkit.command.CommandExecutor; import org.bukkit.command.CommandSender; @@ -26,6 +28,7 @@ public class WolfFfaCommand implements CommandExecutor, TabCompleter { if (args.length > 1) { Player target = Bukkit.getPlayer(args[1]); if (target instanceof Player player) { + player.getInventory().clear(); ItemStack helmet = new ItemStack(Material.DIAMOND_HELMET); ItemStack chestplate = new ItemStack(Material.DIAMOND_CHESTPLATE); ItemStack leggings = new ItemStack(Material.DIAMOND_LEGGINGS); @@ -39,7 +42,16 @@ public class WolfFfaCommand implements CommandExecutor, TabCompleter { sword.addEnchantment(Enchantment.UNBREAKING, 3); player.getInventory().setArmorContents(new ItemStack[]{boots, leggings, chestplate, helmet}); - player.getInventory().addItem(sword); + player.getInventory().setItem(0, sword); + + World world = Bukkit.getWorld("world"); + double x = 0; + double y = 1; + double z = 1000; + float yaw = (float) 0; + float pitch = (float) 0; + Location loc = new Location(world, x, y, z, yaw, pitch); + player.teleport(loc); } } break; diff --git a/target/WolfFFA-1.0.jar b/target/WolfFFA-1.0.jar new file mode 100644 index 0000000..26b8059 Binary files /dev/null and b/target/WolfFFA-1.0.jar differ diff --git a/target/classes/hu/jgj52/wolfFFA/Commands/WolfFfaCommand.class b/target/classes/hu/jgj52/wolfFFA/Commands/WolfFfaCommand.class new file mode 100644 index 0000000..679558b Binary files /dev/null and b/target/classes/hu/jgj52/wolfFFA/Commands/WolfFfaCommand.class differ diff --git a/target/classes/hu/jgj52/wolfFFA/WolfFFA.class b/target/classes/hu/jgj52/wolfFFA/WolfFFA.class new file mode 100644 index 0000000..4392bcf Binary files /dev/null and b/target/classes/hu/jgj52/wolfFFA/WolfFFA.class differ diff --git a/target/classes/plugin.yml b/target/classes/plugin.yml new file mode 100644 index 0000000..9e97df9 --- /dev/null +++ b/target/classes/plugin.yml @@ -0,0 +1,8 @@ +name: WolfFFA +version: '1.0' +main: hu.jgj52.wolfFFA.WolfFFA +api-version: '1.21' +commands: + tptoffa: + permission: wolfffa.admin.tptoffa + usage: /tptoffa \ No newline at end of file diff --git a/target/maven-archiver/pom.properties b/target/maven-archiver/pom.properties new file mode 100644 index 0000000..f23e5aa --- /dev/null +++ b/target/maven-archiver/pom.properties @@ -0,0 +1,3 @@ +artifactId=WolfFFA +groupId=hu.jgj52 +version=1.0 diff --git a/target/maven-status/maven-compiler-plugin/compile/default-compile/createdFiles.lst b/target/maven-status/maven-compiler-plugin/compile/default-compile/createdFiles.lst new file mode 100644 index 0000000..2e230be --- /dev/null +++ b/target/maven-status/maven-compiler-plugin/compile/default-compile/createdFiles.lst @@ -0,0 +1,2 @@ +hu/jgj52/wolfFFA/WolfFFA.class +hu/jgj52/wolfFFA/Commands/WolfFfaCommand.class diff --git a/target/maven-status/maven-compiler-plugin/compile/default-compile/inputFiles.lst b/target/maven-status/maven-compiler-plugin/compile/default-compile/inputFiles.lst new file mode 100644 index 0000000..79c5076 --- /dev/null +++ b/target/maven-status/maven-compiler-plugin/compile/default-compile/inputFiles.lst @@ -0,0 +1,2 @@ +/home/jgj52/IdeaProjects/WolfFFA/src/main/java/hu/jgj52/wolfFFA/Commands/WolfFfaCommand.java +/home/jgj52/IdeaProjects/WolfFFA/src/main/java/hu/jgj52/wolfFFA/WolfFFA.java diff --git a/target/original-WolfFFA-1.0.jar b/target/original-WolfFFA-1.0.jar new file mode 100644 index 0000000..e80a57b Binary files /dev/null and b/target/original-WolfFFA-1.0.jar differ