Beispiel #1
0
 public Score(ScoreboardObjective obj, string fakeplayer)
 {
     ScoreboardId = Scoreboard.RandomId();
     Objective    = obj;
     FakePlayer   = fakeplayer;
     IsFake       = true;
 }
Beispiel #2
0
 public Score(ScoreboardObjective obj, Entity entity)
 {
     ScoreboardId = Scoreboard.RandomId();
     Objective    = obj;
     Entity       = entity;
     Id           = entity.EntityId;
     IsFake       = false;
 }
Beispiel #3
0
        public ScoreboardObjective registerObjective(string name, ScoreboardCriteria criteria)
        {
            var obj = new ScoreboardObjective()
            {
                Name     = name,
                Criteria = criteria
            };

            objective = obj;
            return(objective);
        }