Skip to content
This repository has been archived by the owner on Jan 26, 2022. It is now read-only.

Player data and Landlord support

Compare
Choose a tag to compare
@Tuke-Nuke Tuke-Nuke released this 28 Nov 17:15

Changes:

  • Added player data of %offlineplayer%. With this, you can get a offline player as if he was online. So you can check his money, inventory, ender chest, whatever. But, to edit some of theses things, you will have to use: save [player] data of %player%. If you don't use, the changes that you made (e.g. remove some money, give some item) won't apply. But keep in your mind: Don't use this to make some dangerous effects (as kill player, kick player, teleport player, etc.), it's unnecessary and probably, can do something that may not be good to your server (crash) or maybe send just an error ;).
    Example:
set {_offlineplayer} to "Tuke_Nuke" parsed as offline player
if {_offlineplayer} is not online:
      set {_player} to player data of {_offlineplayer} #Convert from %offlineplayer% to %player%
      add 100 to money of {_player}
      save data of {_player} #Doesn't need to be below of the change,
      #can be at the end of code too.
  • Added max durability of %itemstack%. It's obvius, returns the max durability.
  • Added support for Landlord.
    Syntaxes:
Expressions:

land[lord] claim at %location/chunk% #Returns %landclaim%.
land[lord] owner of %landclaim% #Returns %offlineplayer%.
landflag %landflag% of %landclaim% for (everyone|friends)
#Returns %boolean% and you can edit.
land[lord] friends of %landclaim% #Returns %offlineplayers%.
land[lord] location of %landclaim%. #Returns %location%.
land[lord] claims of %player%. #Returns a list of %landclaim%.

Effects:

claim land[lord] at %location/chunk% for %player%
unclaim land[lord] at %location/chunk%
  • Removed offline inventory of %player% because now you can use player data of %offlineplayer% to do this.