Skip to content

Commit d62189a

Browse files
committed
Added missing permissions to permissions.md
1 parent 0b85c74 commit d62189a

3 files changed

Lines changed: 7 additions & 3 deletions

File tree

Plugin/src/main/java/dev/lrxh/neptune/feature/cosmetics/impl/cosmetics/shieldpatterns/ShieldPatternPackage.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,6 @@ public ShieldPatternPackage(
2525
}
2626

2727
public String permission() {
28-
return "neptune.cosmetics.killmessages." + name.toLowerCase();
28+
return "neptune.cosmetics.shieldpatterns." + name.toLowerCase();
2929
}
3030
}

Plugin/src/main/java/dev/lrxh/neptune/providers/placeholder/PlaceholderUtil.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@
55

66
import dev.lrxh.neptune.API;
77
import dev.lrxh.neptune.configs.impl.MessagesLocale;
8+
import dev.lrxh.neptune.feature.customkit.CustomKit;
9+
import dev.lrxh.neptune.feature.customkit.queue.CustomKitQueueService;
810
import dev.lrxh.neptune.feature.party.Party;
911
import dev.lrxh.neptune.feature.queue.QueueEntry;
1012
import dev.lrxh.neptune.feature.queue.QueueService;
@@ -83,8 +85,7 @@ else if (profile.hasState(ProfileState.IN_GAME, ProfileState.IN_SPECTATOR) && ma
8385
);
8486
}
8587
if (kit == null && profile.hasState(ProfileState.IN_QUEUE)) {
86-
dev.lrxh.neptune.feature.customkit.CustomKit customKit =
87-
dev.lrxh.neptune.feature.customkit.queue.CustomKitQueueService.get().getListings().get(profile.getPlayerUUID());
88+
CustomKit customKit = CustomKitQueueService.get().getListings().get(profile.getPlayerUUID());
8889
if (customKit != null) placeholders = TagResolver.resolver(placeholders,
8990
Placeholder.parsed("kit", customKit.getDisplayName()));
9091
}

docs/permissions.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,10 @@ These are the permissions a player needs to do specific things with the plugin.
1111
| `neptune.admin` | Access arena & kit management menu |
1212
| `neptune.cosmetics.kill-effects.[name]` | Use a specific kill effect |
1313
| `neptune.cosmetics.killmessages.[name]` | Use a specific kill message |
14+
| `neptune.cosmetics.armortrims.[name]` | Use a specific armor trim |
15+
| `neptune.cosmetics.shieldpatterns.[name]` | Use a specific shield pattern |
1416
| `neptune.party.advertise` | Advertise party publicly |
1517
| `neptune.silent-spectate` | Spectate someone silently |
1618
| `neptune.arenaselector` | Access to duel arena selector menu |
1719
| `neptune.party.max.<number>` | Change max member limit for any party created by the player |
20+
| `neptune.customkit` | Create custom kits |

0 commit comments

Comments
 (0)