Available POST data

Note: This information is outdated. Use the documentation found here for version 2.5 and higher.

When you send a websend command from in game, certain items are send with the request. You can obtain them through $_POST Here is a list:
POST Item Comment
authKey Used for password checking.
args[] Arguments from the websend command (in "/ws arg1", "arg1" is args[0])
player The player who sent the command.
playerWorld The world the player is in.
playerX The x coordinate of the players position.
playerY The y coordinate of the players position.
playerZ The z coordinate of the players position.
playerYaw The pitch of the players position. Check bukkit javadoc for more info.
playerPitch The yaw of the players position. Check bukkit javadoc for more info.
playerXP The XP amount of the player
playerXPLevel The XP amount of the player
playerExhaustion The exhaustion amount of the player
playerFoodLevel The food level of the player
playerGameMode The gamemode the player is in.
playerHealth The amount of health the player has.
playerIP The ip of the player.
playerIsOP "true" if player is OP.
playerCurrentItemID Item ID of the item the player is currently holding.
playerCurrentItemIndex Place in the inventory of the item the player is currently holding.
playerInventoryTypes[] The inventory of the player, as an array. Each item represents an item id of the item in that slot
playerInventoryAmounts[] The inventory of the player, as an array. Each item represents an the amount of items in that slot
playerInventoryEnchantments[] The inventory of the player, as an array. Each item represents the enchantments of the item in that slot
playerInventoryEnchantmentsLevels[] The inventory of the player, as an array. Each item represents the levels of the enchantments of the item in that slot
playerInventoryData[] The inventory of the player, as an array. Each item represents the item data of the item in that slot. http://www.minecraftwiki.net/wiki/Data_values#Data
onlinePlayers Array of players who are currently online.
availableMemory Amount of RAM free for the java environment
maxMemory Total amount of RAM available to the java environment
pluginList Array of currently installed plugins.
bukkitBuild Bukkit build version (not minecraft version.)
bukkitPort Port on which the minecraft game runs.
curPlayers Amount of players currently playing on the server
maxPlayers Maximum amount of players on the server
serverName The name of the server.
netherEnabled Returns a string interpretation of a boolean which indicates whether the Nether is enabled or not.
flyingEnabled Returns a string interpretation of a boolean which indicates whether flying is enabled or not.
defaultGameMode Returns the default gamemode.
onlineMode Returns the online mode, as described in the server.properties
isResponse boolean whether this POST is a response from ExecuteConsole(Bukkit)CommandAndReturn

Comments

Posts Quoted:
Reply
Clear All Quotes