-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
c699e8c
commit 0481191
Showing
21 changed files
with
106 additions
and
82 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
package src.main.java.com.m196.projects.commands; | ||
|
||
import org.bukkit.Bukkit; | ||
import org.bukkit.command.Command; | ||
import org.bukkit.command.CommandExecutor; | ||
import org.bukkit.command.CommandSender; | ||
import org.bukkit.entity.Player; | ||
|
||
import src.main.java.com.m196.projects.backend.runcommand; | ||
|
||
public class adminstick implements CommandExecutor{ | ||
runcommand commandthing = new runcommand(); //use to run commands | ||
@Override | ||
public boolean onCommand(CommandSender sender, Command cmd, String label, String[] args) | ||
{ | ||
if (sender instanceof Player){ | ||
if (cmd.getName().equalsIgnoreCase("adminstick")){ | ||
adminstickHandler(sender); | ||
return true; | ||
} | ||
return false; | ||
} | ||
return false; | ||
} | ||
public void adminstickHandler(CommandSender sender){ | ||
String target = sender.getName(); | ||
commandthing.runMinecraftCommand("minecraft:give " + target + " stick[minecraft:attribute_modifiers=[{id:\"attack_damage\", type:\"generic.attack_damage\",amount:10000, operation:\"add_value\"}], minecraft:custom_name=\"'Admin Stick'\", minecraft:enchantments={levels:{channeling:1}}, minecraft:unbreakable={unbreaking:1}] 1", sender); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
package src.main.java.com.m196.projects.commands; | ||
|
||
import org.bukkit.Bukkit; | ||
import org.bukkit.command.Command; | ||
import org.bukkit.command.CommandExecutor; | ||
import org.bukkit.command.CommandSender; | ||
import org.bukkit.entity.Player; | ||
|
||
import src.main.java.com.m196.projects.backend.runcommand; | ||
|
||
public class nm implements CommandExecutor{ | ||
runcommand commandthing = new runcommand(); //use to run commands | ||
@Override | ||
public boolean onCommand(CommandSender sender, Command cmd, String label, String[] args) | ||
{ | ||
if (sender instanceof Player){ | ||
if (cmd.getName().equalsIgnoreCase("nm")){ | ||
nutritionalMaceHandler(sender); | ||
return true; | ||
} | ||
return false; | ||
} | ||
return false; | ||
} | ||
public void nutritionalMaceHandler(CommandSender sender){ | ||
String target = sender.getName(); | ||
commandthing.runMinecraftCommand("minecraft:give " + target + " mace[food={nutrition:20, saturation:1}]", sender); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,14 @@ | ||
name: m196stylecommands | ||
version: 1.3-beta | ||
version: 1.4 | ||
main: src.main.java.com.m196.projects.m196stylecommands | ||
api-version: 1.21 | ||
commands: | ||
dropanvil: | ||
description: "drop an anvil on a player :)" | ||
usage: "/dropanvil <player>" | ||
usage: "/dropanvil <player>" | ||
adminstick: | ||
description: "obtain a stick that does 10,000 damage" | ||
usage: "/adminstick" | ||
nm: | ||
description: "obtain 'nutritional mace' that is actually very healthy, while also dealing damage" | ||
usage: "/nm" |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,14 @@ | ||
name: m196stylecommands | ||
version: 1.3-beta | ||
version: 1.4 | ||
main: src.main.java.com.m196.projects.m196stylecommands | ||
api-version: 1.21 | ||
commands: | ||
dropanvil: | ||
description: "drop an anvil on a player :)" | ||
usage: "/dropanvil <player>" | ||
usage: "/dropanvil <player>" | ||
adminstick: | ||
description: "obtain a stick that does 10,000 damage" | ||
usage: "/adminstick" | ||
nm: | ||
description: "obtain 'nutritional mace' that is actually very healthy, while also dealing damage" | ||
usage: "/nm" |
Binary file added
BIN
+2.15 KB
target/classes/src/main/java/com/m196/projects/commands/adminstick.class
Binary file not shown.
Binary file modified
BIN
+373 Bytes
(120%)
target/classes/src/main/java/com/m196/projects/commands/dropanvil.class
Binary file not shown.
Binary file not shown.
Binary file modified
BIN
+191 Bytes
(120%)
target/classes/src/main/java/com/m196/projects/m196stylecommands.class
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
#Created by Apache Maven 3.9.9 | ||
artifactId=m196-style-commands | ||
groupId=com.m196.projects | ||
version=1.3-beta | ||
version=1.4 |
2 changes: 2 additions & 0 deletions
2
target/maven-status/maven-compiler-plugin/compile/default-compile/createdFiles.lst
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
src\main\java\com\m196\projects\commands\adminstick.class | ||
src\main\java\com\m196\projects\commands\dropanvil.class | ||
src\main\java\com\m196\projects\commands\nm.class | ||
src\main\java\com\m196\projects\backend\runcommand.class | ||
src\main\java\com\m196\projects\m196stylecommands.class |
2 changes: 2 additions & 0 deletions
2
target/maven-status/maven-compiler-plugin/compile/default-compile/inputFiles.lst
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
F:\minecraft stuff\m196-style-commands-plugin\src\main\java\com\m196\projects\m196stylecommands.java | ||
F:\minecraft stuff\m196-style-commands-plugin\src\main\java\com\m196\projects\commands\adminstick.java | ||
F:\minecraft stuff\m196-style-commands-plugin\src\main\java\com\m196\projects\commands\dropanvil.java | ||
F:\minecraft stuff\m196-style-commands-plugin\src\main\java\com\m196\projects\backend\runcommand.java | ||
F:\minecraft stuff\m196-style-commands-plugin\src\main\java\com\m196\projects\commands\nm.java |
Oops, something went wrong.