cObjective


Index:
Articles
Classes
Hooks

Quick navigation:
cArrowEntity
cBeaconEntity
cBlockArea
cBlockEntity
cBlockEntityWithItems
cBlockInfo
cBoundingBox
cBrewingstandEntity
cChatColor
cChestEntity
cChunkDesc
cClientHandle
cCommandBlockEntity
cCompositeChat
cCraftingGrid
cCraftingRecipe
cCryptoHash
cCuboid
cDispenserEntity
cDropperEntity
cDropSpenserEntity
cEnchantments
cEntity
cEntityEffect
cExpBottleEntity
cFile
cFireChargeEntity
cFireworkEntity
cFloater
cFlowerPotEntity
cFurnaceEntity
cGhastFireballEntity
cHangingEntity
cHopperEntity
cIniFile
cInventory
cItem
cItemFrame
cItemGrid
cItems
cJson
cJukeboxEntity
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
cStatManager
cStringCompression
cTCPLink
cTeam
cThrownEggEntity
cThrownEnderPearlEntity
cThrownSnowballEntity
cTNTEntity
cTracer
cUDPEndpoint
cUrlClient
cUrlParser
cWebAdmin
cWindow
cWitherSkullEntity
cWorld
HTTPFormData
HTTPRequest
HTTPTemplateRequest
ItemCategory
lxp
sqlite3
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 string, number 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 string 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 string Reset the score of the specified player.
SetDisplayName string Sets the display name of the objective.
SetScore string, Score Sets the score of the specified player.
SubScore string, number Score Subtracts a value from the score of the specified player and returns the new value.
Generated on 2016-08-22 23:53:06, Build ID Unknown, Commit approx: 2ed4af74edd14ae17e1c6c64d44caa7b7fc30d5a