Jump to content

joran2805

Member
  • Posts

    2
  • Joined

  • Last visited

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

joran2805's Achievements

Lurker

Lurker (1/6)

0

Reputation

  1. yeah.. that won't work. variables are globally stored in the same file, therefor if one player was to type /toggledrop it'd disable it for all players, and if it was already disabled it'd enable it for all players. use either the player's ign or the player's uuid inside of the index of the variable (uuid in case the player changes their username.). //EDIT: I misread your original post, it would work, just not in the way he wanted it to. He asked for it to be player specific. You also shouldn't set the variable to false, what you should do is delete it when you're disabling it. this will save up space in the variables.csv file and is generally just a better habit. command /toggledrop: trigger: if {ToggleDrop::%player's uuid%} is set: delete {ToggleDrop::%player's uuid%} send "&3&lDrops &8| &bDropping items is now &aenabled." else: set {ToggleDrop::%player's uuid%} to true send "&3&lDrops &8| &bDropping items is now &cdisabled." on drop: if {ToggleDrop::%player's uuid%} is set: send "&3&lDrops &8| &cDropping items is current disabled! Please use &n/toggledrop&c to toggle this option." cancel event
  2. What unariginal just sent isn't really good tbh, you should never use `.` inside of your variable indices, using a double colon `::` turns the variable into a list allowing you to do tons more with it. commands have a built in Permissions: node so you can just use that, as for the command you can also just do `command x <player = %player%>:` where the arg object will default back to the player if the argument is not set. on first join: set {firstJoin::%uuid of player%} to now on join: set {lastJoin::%uuid of player%} to now command /lastjoin <offline-player=%player%>: permission: op trigger: send "%arg-1% last joined the server on %{lastJoin::%uuid of arg-1%}%." command /joindate [<offline-player=%player%>]: trigger: send ("%arg-1% first joined the server on %{firstJoin::%uuid of arg-1%}%." if player is op, else "You first joined the server on %{firstJoin::%uuid of player%}%.") also, for future reference please post any errors additional to your message saying "there are 2 errors" this allows people to troubleshoot it so much quicker.
×
×
  • Create New...