9
0
mirror of https://github.com/HibiscusMC/HMCCosmetics.git synced 2025-12-19 15:09:19 +00:00

Fixed invalid token config

This commit is contained in:
Fisher2911
2022-03-06 17:16:30 -05:00
parent 16d516ef18
commit badc2f7b87
27 changed files with 5 additions and 27 deletions

2
.gitignore vendored
View File

@@ -1,5 +1,7 @@
# Project exclude paths # Project exclude paths
/.gradle/ /.gradle/
/gradle/
/.idea/
/build/ /build/
/build/classes/java/main/ /build/classes/java/main/
/common/build/ /common/build/

2
.idea/misc.xml generated
View File

@@ -9,7 +9,7 @@
<component name="FrameworkDetectionExcludesConfiguration"> <component name="FrameworkDetectionExcludesConfiguration">
<file type="web" url="file://$PROJECT_DIR$" /> <file type="web" url="file://$PROJECT_DIR$" />
</component> </component>
<component name="ProjectRootManager" version="2" languageLevel="JDK_16" default="true" project-jdk-name="openjdk-16" project-jdk-type="JavaSDK"> <component name="ProjectRootManager" version="2" languageLevel="JDK_16" project-jdk-name="openjdk-17" project-jdk-type="JavaSDK">
<output url="file://$PROJECT_DIR$/out" /> <output url="file://$PROJECT_DIR$/out" />
</component> </component>
</project> </project>

Binary file not shown.

View File

@@ -4,21 +4,6 @@ import com.comphenix.protocol.PacketType;
import com.comphenix.protocol.events.PacketContainer; import com.comphenix.protocol.events.PacketContainer;
import com.comphenix.protocol.wrappers.WrappedDataWatcher; import com.comphenix.protocol.wrappers.WrappedDataWatcher;
public class ArmorStandPackets_1_16_R3 implements ArmorStandPackets { public class ArmorStandPackets_1_16_R3 {
@Override
public PacketContainer getArmorStandMeta(final int armorStandId) {
final PacketContainer metaContainer = new PacketContainer(PacketType.Play.Server.ENTITY_METADATA);
WrappedDataWatcher metaData = new WrappedDataWatcher();
final WrappedDataWatcher.Serializer byteSerializer = WrappedDataWatcher.Registry.get(Byte.class);
metaData.setObject(new WrappedDataWatcher.WrappedDataWatcherObject(0, byteSerializer), (byte) (0x20));
metaData.setObject(new WrappedDataWatcher.WrappedDataWatcherObject(14, byteSerializer), (byte) (0x10));
metaContainer.getIntegers().write(0, armorStandId);
metaContainer.getWatchableCollectionModifier().write(0, metaData.getWatchableObjects());
return metaContainer;
}
} }

Binary file not shown.

Binary file not shown.

View File

@@ -4,4 +4,4 @@ tokens:
material: emerald material: emerald
name: "<green>Colorful hat token" name: "<green>Colorful hat token"
commands: commands:
- "lp user %player% permission set cosmetics.colorful_hat"op - "lp user %player% permission set cosmetics.colorful_hat"

Binary file not shown.

View File

@@ -1,9 +0,0 @@
package io.github.fisher2911.nms;
import com.comphenix.protocol.events.PacketContainer;
public interface DestroyPacket {
PacketContainer get(final int entityId);
}