added launchStick mechanic
This commit is contained in:
parent
1b9efb1987
commit
86b28773a5
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
build/classes/java/main/CoswayUtil/LaunchStick.class
Normal file
BIN
build/classes/java/main/CoswayUtil/LaunchStick.class
Normal file
Binary file not shown.
BIN
build/libs/CoswayUtil-1.10-RELEASE.jar
Normal file
BIN
build/libs/CoswayUtil-1.10-RELEASE.jar
Normal file
Binary file not shown.
@ -1,5 +1,5 @@
|
||||
name: CoswayUtil
|
||||
version: '1.9-RELEASE'
|
||||
version: '1.10-RELEASE'
|
||||
main: CoswayUtil.CoswayUtil
|
||||
description: "utility plugin for Cosway servers, a yescraft network server"
|
||||
api-version: '1.21'
|
||||
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -99,7 +99,7 @@ public final class CoswayUtil extends JavaPlugin implements Listener {
|
||||
setScale(player, Float.parseFloat(args[0]));
|
||||
}
|
||||
}
|
||||
if (cmd.getName().equalsIgnoreCase("throw") && sender instanceof Player player) {
|
||||
if (cmd.getName().equalsIgnoreCase("launchstick") && sender instanceof Player player) {
|
||||
player.getInventory().addItem(LaunchStick.createLaunchStick());
|
||||
}
|
||||
if (cmd.getName().equalsIgnoreCase("throw") && sender instanceof Player player) {
|
||||
|
@ -20,4 +20,8 @@ commands:
|
||||
getwand:
|
||||
description: "Gives player a levitation wand"
|
||||
usage: "/getwand"
|
||||
permission: CoswayUtil.wand
|
||||
permission: CoswayUtil.wand
|
||||
launchstick:
|
||||
description: give player a stick to use for launching themselves
|
||||
usage: /launchstick
|
||||
permission: CoswayUtil.launchStick
|
Loading…
Reference in New Issue
Block a user