fix: 修复papi数组处理错误

This commit is contained in:
coding 2018-05-30 13:11:28 +00:00
parent c955670658
commit 324fbee2e5

View File

@ -8,7 +8,7 @@ var server = require('api/server');
PlaceholderAPI = { PlaceholderAPI = {
setPlaceholders: function () { 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() { function replace() {
var player = arguments[0]; var player = arguments[0];
var line = []; var line = arguments[1];
if (arguments.length === 1) { if (arguments.length === 1) {
player = null; player = null;
line = player; line = player;