diff --git a/common/src/main/java/org/geysermc/floodgate/module/CommonModule.java b/common/src/main/java/org/geysermc/floodgate/module/CommonModule.java index 6bcf3edc..a7cc2f91 100644 --- a/common/src/main/java/org/geysermc/floodgate/module/CommonModule.java +++ b/common/src/main/java/org/geysermc/floodgate/module/CommonModule.java @@ -121,7 +121,7 @@ public final class CommonModule extends AbstractModule { @Singleton @Named("playerAttribute") public AttributeKey playerAttribute() { - return AttributeKey.newInstance("floodgate-player"); + return AttributeKey.valueOf("floodgate-player"); } @Provides diff --git a/velocity/src/main/java/org/geysermc/floodgate/module/VelocityPlatformModule.java b/velocity/src/main/java/org/geysermc/floodgate/module/VelocityPlatformModule.java index cb4755bd..d3971fe3 100644 --- a/velocity/src/main/java/org/geysermc/floodgate/module/VelocityPlatformModule.java +++ b/velocity/src/main/java/org/geysermc/floodgate/module/VelocityPlatformModule.java @@ -151,6 +151,6 @@ public final class VelocityPlatformModule extends AbstractModule { @Singleton @Named("kickMessageAttribute") public AttributeKey kickMessageAttribute() { - return AttributeKey.newInstance("floodgate-kick-message"); + return AttributeKey.valueOf("floodgate-kick-message"); } }