cObjective


Index:
Articles
Classes
Hooks

Quick navigation:
BannerPattern
BossBarColor
BossBarDivisionType
cArrowEntity
cBeaconEntity
cBedEntity
cBlockArea
cBlockEntity
cBlockEntityWithItems
cBlockInfo
cBoat
cBoundingBox
cBrewingstandEntity
cChatColor
cChestEntity
cChunkDesc
cClientHandle
cColor
cCommandBlockEntity
cCompositeChat
cCraftingGrid
cCraftingRecipe
cCryptoHash
cCuboid
cDispenserEntity
cDropperEntity
cDropSpenserEntity
cEnchantments
cEnderCrystal
cEntity
cEntityEffect
cExpBottleEntity
cExpOrb
cFallingBlock
cFile
cFireChargeEntity
cFireworkEntity
cFloater
cFlowerPotEntity
cFurnaceEntity
cGhastFireballEntity
cHangingEntity
cHopperEntity
cIniFile
cInventory
cItem
cItemFrame
cItemGrid
cItems
cJson
cJukeboxEntity
cLeashKnot
cLineBlockTracer
cLuaWindow
cMap
cMapManager
cMobHeadEntity
cMobSpawnerEntity
cMojangAPI
cMonster
cNetwork
cNoteEntity
cObjective
cPainting
cPawn
cPickup
cPlayer
cPlugin
cPluginLua
cPluginManager
cProjectileEntity
cRankManager
cRoot
cScoreboard
cServer
cServerHandle
cSignEntity
cSplashPotionEntity
cStringCompression
cTCPLink
cTeam
cThrownEggEntity
cThrownEnderPearlEntity
cThrownSnowballEntity
cTNTEntity
cUDPEndpoint
cUrlClient
cUrlParser
CustomStatistic
cUUID
cWebAdmin
cWindow
cWitherSkullEntity
cWorld
EffectID
HTTPFormData
HTTPRequest
HTTPTemplateRequest
ItemCategory
lxp
SmokeDirection
sqlite3
StatisticsManager
TakeDamageInfo
tolua
Vector3d
Vector3f
Vector3i
Globals

Contents


cObjective class

This class represents a single scoreboard objective.


Constants

NameValueNotes
otAchievement 5
otDeathCount 1
otDummy 0
otHealth 4
otPlayerKillCount 2
otStat 6
otStatBlockMine 10
otStatEntityKill 11
otStatEntityKilledBy 12
otStatItemBreak 9
otStatItemCraft 7
otStatItemUse 8
otTotalKillCount 3

Functions

NameParametersReturn valueNotes
AddScore
stringstring
numbernumber
Score
Adds a value to the score of the specified player and returns the new value.
GetDisplayName
string
Returns the display name of the objective. This name will be shown to the connected players.
GetName
string
Returns the internal name of the objective.
GetScore
stringstring
Score
Returns the score of the specified player.
GetType
eType
Returns the type of the objective. (i.e what is being tracked)
Reset Resets the scores of the tracked players.
ResetScore
stringstring
Reset the score of the specified player.
SetDisplayName
stringstring
Sets the display name of the objective.
SetScore
stringstring
Score
Sets the score of the specified player.
SubScore
stringstring
numbernumber
Score
Subtracts a value from the score of the specified player and returns the new value.
Generated by APIDump on 2024-11-15 00:45:52, Build ID 68, Commit c0f6c97dcea08feb7d5cd1deefc0f6f76eb2cdbd