Skip to content

Commit 881dec1

Browse files
committed
Merge branch 'master' of github.com:sk89q/commandhelper
2 parents 77bf064 + dffc82b commit 881dec1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/com/laytonsmith/core/functions/Commands.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -299,7 +299,7 @@ public ExampleScript[] examples() throws ConfigCompileException {
299299
+ "\t'aliases':array('hugg', 'hugs'),\n"
300300
+ "\t'executor': closure(@alias, @sender, @args) {\n"
301301
+ "\t\t\tif(array_size(@args) == 1) {\n"
302-
+ "\t\t\t\tif(!ponline(@args[0])) {\n"
302+
+ "\t\t\t\tif(ponline(@args[0])) {\n"
303303
+ "\t\t\t\t\tbroadcast(colorize('&4'.@sender.' &6hugs &4'.@args[0]));\n"
304304
+ "\t\t\t\t} else {\n"
305305
+ "\t\t\t\t\ttmsg(@sender, colorize('&cThe given player is not online.'));\n"

0 commit comments

Comments
 (0)