From 62bd90a56378113f69bbb427fa1ecd92736c6476 Mon Sep 17 00:00:00 2001 From: carlrobert Date: Sat, 14 Feb 2015 22:22:03 +0100 Subject: [PATCH] Call updateCapabilities() after setMayFly With CanaryMod, this appears to be required for capabilities to take effect. --- src/docs/templates/ypgpm.md | 1 + 1 file changed, 1 insertion(+) diff --git a/src/docs/templates/ypgpm.md b/src/docs/templates/ypgpm.md index a04909d..7263fcb 100644 --- a/src/docs/templates/ypgpm.md +++ b/src/docs/templates/ypgpm.md @@ -859,6 +859,7 @@ var utils = require('utils'); var players = utils.players(); utils.foreach( players, function( player ) { player.capabilities.setMayFly(true); + player.updateCapabilities(); } ); ```