예제 #1
0
        public void HandleScoreboardObjectvice(MinecraftClient client, IPacket packet) {
            var myPacket = (CBScoreboardObjective)packet;

            if (myPacket.Create == 0)
                client.RaiseScoreboardAdd(myPacket.Objectivename, myPacket.Objectivevalue);
            else if (myPacket.Create == 1)
                client.RaiseScoreboardUpdate(myPacket.Objectivename, myPacket.Objectivevalue);
            else if (myPacket.Create == 2)
                client.RaiseScoreboardRemove(myPacket.Objectivename);
        }