changed pattern replacing to normal string replacing.
-added onPlayerJoin event.