!points give not working


#1

PhantomBot Version: 2.3.8-NB-20170913 (Revision: cdade19)
OS and Java Version from Startup: Windows Server 2012, Java 8 Update 144
Browser and Version (for Panel Support): Google Chrome (does not matter)
Stock PhantomBot: Yes
Any Recent Changes to Your System: No

Description of Issue:
Giving users points with !points add [username] [amount] does not work. Response in bot console is:

[09-14-2017 @ 07:24:26.199 MESZ] [init.js:298] (hook.call, command, ./systems/pointSystem.js) InternalError: The choice of Java method java.lang.String.replace matching JavaScript argument types (function,string) is ambiguous; candidate methods are:
class java.lang.String replace(char,char)
class java.lang.String replace(java.lang.CharSequence,java.lang.CharSequence) (misc.js#69)

Best regards
cmdFlow


#2

Fixed:

points add
[09-14-2017 @ 09:18:19.651 MDT] [MUTED] @IllusionaryBot, Usage: !points add [name] [amount]
points add illusionaryone 10
[09-14-2017 @ 09:18:23.470 MDT] [MUTED] Sent 10 coins to IllusionaryOne. New balance is 78858 coins.
points add illusionaryone 10
[09-14-2017 @ 09:18:29.583 MDT] [MUTED] Sent 10 coins to IllusionaryOne. New balance is 78868 coins.

Will be in the next Nightly Build and in the next Stable Release.

https://github.com/PhantomBot/PhantomBot/pull/1669


#3

Great. Thanks a lot. Keep up the good work :slight_smile: <3


#4

This topic was automatically closed after 30 days. New replies are no longer allowed.