Skip to content

Commit

Permalink
put curly braces there, you psychopath
Browse files Browse the repository at this point in the history
  • Loading branch information
CJCrafter committed Aug 28, 2024
1 parent 056370d commit 59d4fb7
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,11 @@ public String getKeyword() {
// supports "faking" the crossbow for other players. I added this check
// since it is a commonly asked question, and this should save me some
// time in the long run.
if (weaponStack.getType().name().equals("CROSSBOW"))
if (weaponStack.getType().name().equals("CROSSBOW")) {
throw data.exception("Type", "You cannot use 'CROSSBOW' as a WeaponMechanics weapon!",
"YES! We know that you want weapons to be 'held up' like a minecraft crossbow",
"Purchase WMC to 'fake' the crossbow animation for other players: https://www.spigotmc.org/resources/104539/");
}

String weaponTitle = data.key.split("\\.")[0];

Expand Down

0 comments on commit 59d4fb7

Please sign in to comment.