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

Releases: Tuke-Nuke/TuSKe

Small fixes and new expression

28 Nov 17:30
Compare
Choose a tag to compare

[+] Added new expression:

R[ed, ]G[reen and ]B[blue] [colors] of %itemstack%
#This will return a list with 3 integers of RGB color of some item. 
#e.g. 255, 125 and 39. 

[#] Fixed some bugs in condition has a clan, expressions item's recipes and drops of block.

More about custom enchantments, new expression and events

28 Nov 17:28
Compare
Choose a tag to compare

[+] Added new easiest way to create custom enchantments. Now, all you have to do is register a custom enchantment and then set the values to it. Syntaxes:

(register|create) [a] [new] [custom] enchantment with id [name] %string%
unregister [the] [custom] enchantment %custom enchantment%
max level of %custom enchantment%
rarity of %custom enchantment%
[lore] name of %custom enchantment%
accepted items for %custom enchantment%
conflicts for %custom enchantment%
enabled for %custom enchantment%

See at top of thread to how to create a custom enchantment with these syntaxes.

[+] Added tag GlobalRarity, in configuration section of custom enchantments, thats will adjust the values of rarity. See more at top of thread.

[+] Added 3 new events, 1 condition and 1 expression:

#Expression:
leather (red|green|blue) color of %itemstack% 
#Returns a number of RGB color of any leather armor.

#Events:
[on] player starts (move|walk) #Returns %player% and %event-location%.
[on] player stops (move|walk) #Returns %player%
[on] [player] item damage #Returns %player%, %event-item% and %item-damage% 
#You can't cancel any of these events

#Condition:
%player% is (moving|walking|stopped)


[#] Fixed bugs with condition %itemstack% has custom enchantment, expression page %integer% of %objects% with %integer% lines, and the rarity of custom enchantments that was making rarity from 3 to 5 being too common.

Custom enchantments

28 Nov 17:25
Compare
Choose a tag to compare

[+] Added custom enchantments. Basically, you can create your own enchantments and use on enchantment tables and anvils. The tutorial on how to create one is at top of the topic.

#Expressions:
level of custom enchantment %custom enchantment% of %itemstack%
[all] custom enchantments of %itemstack% #You can add, remove, whatever, as your wish
%itemstack% with custom enchantment[s] %custom enchantments% #Returns a itemstack

#Condition:
%itemstack% has custom enchantment %custom enchantment%
#You can check if a item has a specific custom enchantment or
#custom enchantment and level

[+] Added chat tag for Legendchat.
Now you can have personalized tags to your chat. It's a feature of the plugin to set custom tags for a player. If you don't know about it, wait until I put these expressions at documentation with usage and examples.

#Expressions:
chat tag %string% of %player% #Return the value of some chat tag
chat tags of %player% #Returns all customized tags that used with expression above

[#] Temporary fix for Landlord. If you have issues after this update, please wait just a little. Else if you don't have it, just ignore it. ;)

[#] I'm quite sure that I fixed something that I don't remember now.

Player data and Landlord support

28 Nov 17:15
Compare
Choose a tag to compare

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.

Fixed a bug

28 Nov 17:04
Compare
Choose a tag to compare

Changes:

  • I forgot something in it that was causing console errors.

Added Recipes and removed GriefPrevention support.

28 Nov 17:00
Compare
Choose a tag to compare

Changes:

  • Added recipes of %itemstack%, ingredients of %recipe% and result item of %itemstacks%. More details about the at documentation.
  • Removed the support of GriefPrevention. I thought that the sKeeland forgot the GriefPrevention and that is why I made some expressions, so I decide to remove it for now.

Added some expressions for SimpleClans and ViaVersion support

28 Nov 16:57
Compare
Choose a tag to compare

Changes:

  • Added suppot for ViaVersion in (mc|minecraft) version of %player%.
  • Added offline inventory of %offlineplayer% and can have items added, removed, cleared...
  • Added experimental move %block% to (up[wards]|down|north|east|south|west). I intend to improve that to works exactly as piston does, to pull entities and move the block smoothly
  • Added new expressions and a effect for SimpleClans.
    clan (rival|neutral|civilian) kills of %player%
    clan deaths of %player%
    clan total (rival|neutral|civilian) kills of %clan%
    clan total K[ill ]D[eath ]R[atio] of %clan%
    clan total deaths of %clan%
    disband %clan%
  • Fixed some bugs (really, it's not just to saying that I fixed something... seriously).

First release

28 Nov 16:53
Compare
Choose a tag to compare

The first release for the addon.
The complet list of features:

types:
  legendchat:
    #The channels that was created in config of plugin. Values: global, local...
    - channel
  marriage:
    #The types of gender. Values: male, female and unknown.
    - gender
  simpleclans:
    #The informations of a clan. Values: none, can only be used with expressions.
    - clan
  griefprevention:
    #The informations of a claim. Values: the id of claim.
    - claim

expressions:
  legendchat:
    #Returns the remaining time of mute of player if he's muted. Returns %integer%.
    - mute (left|remaining) time of %player%
    - '%player%''[s] mute (left|remaining) time'

    #Returns the default channel of player in Legendchat. Can be set to %channel%. Returns %channel%.
    - default channel of %player%
    - '%player%''[s] default channel'

    #Returns the state of spy of player (true or false). Can be set to %boolean%. Returns %boolean%.
    - spy state of %player%
    - '%player%''[s] spy state'

    #Returns the state of hide of player (true or false). Can be se to %boolean%. Returns %boolean%.
    - hide state of %player%
    - '%player%''[s] hide state'


  marriage:
    #Returns the gender of player. Can be set to %gender%. Returns %gender%.
    - gender of %player%
    - '%player%''[s] gender'

    #Returns the partner of player. Returns %offlineplayer/player%.
    - partner of %player%
    - '%player%''[s] partner'

    #Returns the location of home. Can be cleared and set to %location%. Returns %location%.
    - marry home of %player%
    - '%player%''[s] marry home'

  simpleclans:
    #Returns the clan of player. Returns %clan%
    - clan of %player%
    - '%player%''[s] clan'

    #Returns the tag of clan. Can be set to %string%. Returns %string%. 
    - '[clan] tag of %clan%'
    - '%clan%''[s] [clan] tag'

    #Returns the KDR of player. Can be cleared. Returns %integer%.
    - K[ill ]D[eath ]R[atio] of %player%
    - '%player%''[s] K[ills ]D[eaths ]R[atio]'

    #Returns the clan using a tag. Returns %clan%.
    - clan from tag %string%

    #Returns a list of all members of clan. Returns %offlineplayer/player%.
    - clan members of %clan%
    - '%clan%''[s] clan members'

  griefprevention:
    #Returns the types of amount of claim blocks of player. Only 'accrued' and 'bonus' can edit. Returns %integer%.
    - (accrued|bonus|remaining|used|total) claim blocks of %player%
    - '%player%''[s] (accrued|bonus|remaining|used|total) claim blocks'

    #Returns a list of players that have a especific permission in a claim. Can add and remove %player%. Returns %offlineplayer/player%.
    - (manager|build|containers|access) perm[ission]s of %claim%
    - '%claim%''[s] (manager|build|containers|access) perm[ission]s'

    #Returns a list of claims of player. Returns %claim%.
    - claims of %player%
    - '%player%''[s] claims'

    #Returns a claim at especific location. Returns %claim%.
    - claim at %location%

    #Returns the owner of claim. Returns %offlineplayer/player%.
    - claim owner of %claim%
    - '%claim%''[s] claim owner'

    #Returns the claim from a ID. Returns %claim%.
    - claim [with id] %number%

    #Returns the locations of claim. Returns %location%.
    - location-(one|two) of %claim%
    - '%claim%''[s] location-(one|two)'

  protocolsupport:
    #Returns the minecraft version of player. Returns %string%.
    - (mc|minecraft) version of %player%
    - '%player%''[s] (mc|minecraft) version'

  general:
    #Returns the amount of xp orbs that player has. Can be edit. Returns %integer%.
    - '[total] [e]xp of %player%'
    - '%player%''[s] [total] [e]xp'

    #Returns a organized list of objects separated by pages. Returns %object%.
    - page %number% of %objects% with %number% lines

    #Ex: "loop page 1 of all players with 10 lines" will show the first 10 players.
    #If the page was 2, will show the players equivalent from 11 to 20.

    #Returns a list of objects in alphabetical order. Returns %object%.
    - alphabet order of %objects%

    #Returns the last/first login of player. Returns %date%.
    - (first|last) login of %player%
    - '%player%''[s] (first|last) login'

    #Returns the last damage of player. Returns %number%.
    - last damage of %player%
    - '%player%''[s] last damage'

    #Returns the last damage cause of player. Returns %damagecause%.
    - last damage cause %player%
    - '%player%''[s] last damage cause'

    #Returns the type of cat/ocelot. Can be edited. Returns %string%. Ex: red cat, black cat...
    - (cat|ocelot) type of %entity%
    - '%entity%''[s] (cat|ocelot) type'

    #Returns the type of rabbit. Can be edited. Returns %string%. Ex: black, black and white, the killer bunny...
    - rabbit type of %entity%
    - '%entity%''[s] rabbit type'

    #Returns the variant of horse. Can be edited. Returns %string%. Ex: mule, donkey, undeaded horse...
    - horse variant of %entity%
    - '%entity%''[s] horse variant'

    #Returns the color of horse. Can be edited. Returns %string%. Ex: white, brown, gray...
    - horse color of %entity%
    - '%entity%''[s] horse color'

    #Returns the style of horse. Can be edited. Returns %string%. Ex: whitefield, black dots...
    - horse style of %entity%
    - '%entity%''[s] horse style'

    #Returns the the time of player is online, since his logged at server. Can be edited. Returns %date%.
    - online time of %player%
    - '%player%''[s] online time'

    #Returns the default drop of block when it's broke, or using a specific item. Returns %itemstack%.
    - drops of %block% [(with|using) %itemstack%]
    - '%block%''[s] drops [(with|using) %itemstack%]'

    #Returns the inventory of offline player. Can be edited. Returns %inventory%.
    - offline inventory of %offlineplayer%
    - '%offlineplayer%''[s] offline inventory'

    #Returns the highiest block in a location that it's not air. Returns %block%.
    - highiest block at %location%

conditions:
  legendchat:
    #Returns if a player is muted.
    - '%player% is muted'
    - '%player% is(n''t| not) muted'

    #Returns if a player has permission to see/say in channel.
    - '%player% can (see|say in) [channel] %channel%'
    - '%player% can''t (see|say in) [channel] %channel%'

  marriage:
    #Returns if a player is married:
    - '%player% is married'
    - '%player% is(n''t| not) married'

  simpleclans:
    #Returns if a player has a clan.
    - '%player% (has|have) [a] clan'
    - '%player% (hasn''t|doesn''t have) [a] clan'

    #Returns if a player is leader of his clan.
    - '%player% is leader of his clan'
    - '%player% is(n''t| not) leader of his clan'

  general:
    #Returns if a block is a type or not.
    - '%itemstack% is [a] (placeable|solid|transparent|flammable|occluding) block'
    - '%itemstack% is(n''t| not) [a] (placeable|solid|transparent|flammable|occluding)'

      #placeable: if a item can be placed in world.
      #solid: if a entity can pass trough a block.
      #transparent: opposite of solid.
      #flammable: if a block can burn.
      #occluind: if a block blocks light.

    #Returns if a item can be eat by player.
    - '%itemstack% is edible'
    - '%itemstack% is(n''t| not) edible'

    #Returns if a block/item has gravity.
    - '%itemstack% has gravity'
    - '%itemstack% hasn''t gravity'


effects:
  legendchat:
    #Make a player send tell to another player.
    - '[make] %player% [send] tell %string% to %player%'

    #Mute a player for a minutes or forever (or until server restart).
    - mute %player% [for %integer% minute[s]]

    #Unmute the player.
    - unmute %player%

    #Make player say something in a channel.
    - make %player% say %string% in [channel] %channel%

  marriage:
    #Marry a player with another player
    - marry %player% with %player%

    #Send an invite of marry from player to another player.
    - '[make] %player% invite %player% to marry'
    - send invite of marry from %player% to %player%

    #Divorce a player.
    - divorce %player%
    - make %player% divorce

  simpleclans:
    #Create a clan with name and tag for a player.
    - create clan named %string% with tag %string% (to|for) %player%

    #Remove a player from his clan.
    - (remove|kick) %player% from his clan

    #Place a player in a clan. Like command '/clan place'
    - (add|place) %player% (in|to) [clan] %clan%

    #Send a invite to a clan from player to another player.
    - '[make] %player% invite %player% to his clan'
    - send invite of clan from %player% to %player%

  griefprevention:
    #Create a new claim from two locations and set the player as owner.
    - create new claim from %location% to %location% for %player%

    #Make a player (if have permission) expands the claim for two new locations.
    - make %player% (resize|expand) %claim% to %location% and %location

    #Abandon a claim.
    - (abandon|delete) %claim%

  general:  
    #Cancel the drop of experiences orbs or/and inventory of player in death event.
    #Only cancel for players.
    - cancel [the] drops [of (inventory|[e]xp[periences])]

    #Moves a block to diferents directions.
    - move %block% to (up[wards]|down|north|east|south|west)

    #Makes a player drops a item (only drops) or drops from his inventory (drops and remove item from player).
    - (make|force) %player% drops %itemstack% [from his inventory]

events:
  legendchat:
    #Called when a player say something.
    - '[On] l[egend]c[hat] chat'

      #Return:
      #The player %player%.
      #- player
      #The channel %channel%.
      #- l[legend]c[hat] channel
      #The message %string%. Can be cleared and set to %string%.
      #- l[egend]c[hat] message

    #Called when a player send a tell.
    - '[On] l[egend]c[hat] tell'

      #Return:
      #The sender %player%. Can be set to other player.
      #- [tell] sender
      #The receiver %player%. Can be set to other player.
      #- [tell] receiver
      #The message %string%.
      #-...
Read more