Skip to content

Commit

Permalink
Add example
Browse files Browse the repository at this point in the history
  • Loading branch information
UnderscoreTud committed Oct 5, 2023
1 parent ea5fc23 commit a7cbe77
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/main/java/ch/njol/skript/effects/EffCopy.java
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,14 @@

@Name("Copy")
@Description("Copies objects into a variable. When copying a list over to another list, the source list and its sublists are also copied over.")
@Examples("")
@Examples({
"set {_foo::bar} to 1",
"set {_foo::sublist::foobar} to \"hey\"",
"copy {_foo::*} to {_copy::*}",
"broadcast indices of {_copy::*} # bar, sublist",
"broadcast {_copy::bar} # 1",
"broadcast {_copy::sublist::foobar} # \"hey!\""
})
@Since("INSERT VERSION")
@Keywords({"copy", "clone"})
public class EffCopy extends Effect {
Expand Down

0 comments on commit a7cbe77

Please sign in to comment.