From 324fbee2e5983288849607db9c8a30aa30beff3a Mon Sep 17 00:00:00 2001 From: coding Date: Wed, 30 May 2018 13:11:28 +0000 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8Dpapi=E6=95=B0=E7=BB=84?= =?UTF-8?q?=E5=A4=84=E7=90=86=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/resources/modules/papi.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/resources/modules/papi.js b/src/main/resources/modules/papi.js index aaef111..690b8b0 100644 --- a/src/main/resources/modules/papi.js +++ b/src/main/resources/modules/papi.js @@ -8,7 +8,7 @@ var server = require('api/server'); PlaceholderAPI = { setPlaceholders: function () { - return arguments[1].replace(/&([1-9a-fA-F])/, '§$1'); + return arguments[1].replace(/&([0-9a-fk-orA-FK-OR])/, '§$1'); } }; @@ -38,7 +38,7 @@ try { function replace() { var player = arguments[0]; - var line = []; + var line = arguments[1]; if (arguments.length === 1) { player = null; line = player;