Code Monkey home page Code Monkey logo

classicconversations's Introduction

BetonQuest Classic Conversations

BQCC is an add-on for BetonQuest plugin. It adds the "classic" conversation style, where you can freely modify the syntax of the conversation.

Why an add-on?

BetonQuest 1.7 introduced the conversation interface, which allows to quickly and esily create new conversation output types. Tellraw and inventory implementation of this interface required unified system of coloring the text. That's the reason why the old, prefix based conversation messages were removed. This add-on aims to bring it back for those who need it.

Installation

To install this add-on just drop the Jar file into your plugins directory and restart/reload your server.

Usage

In the BetonQuest main config.yml fie set default_conversation_IO option to "classic" and reload the plugin with /q reload command.

By default the plugin is set to look exactly like the standard BetonQuest conversations do. Obviously you want to change that. Open the config.yml file from add-on's directory, not from BetonQuest, and edit the options in the way you want them:

  • npc-prefix - that's the prefix before the text said by the NPC. The %quester% keyword will be replaced by the NPC's name.
  • option-prefix - the prefix before the option text, the one which the player will be able to choose. %number% will be replaced by the number of the option.
  • answer-prefix - when the player chooses his answer, it will be printed using this prefix. %player% keyword will be replaced by his name.

classicconversations's People

Contributors

riledupcrow avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar

classicconversations's Issues

NoSuchMethodException for init function

Hi, i downloaded BetonQuestClassicConversations.jar from relase page of github(1.0 from https://github.com/Co0sh/ClassicConversations/releases
And used default config provided with BetonQuestClassicConversations.

After changing BetonQuest/config.yml
from:
default_conversation_IO: chest
to:
default_conversation_IO: classic
i got this kind of error on startup, and beton quest is not working (cannot talk to InnKeeper) that prevoiusly worked.
StackTrace provided in console:
[16:23:05 WARN]: java.lang.NoSuchMethodException: pl.betoncraft.bqcc.ClassicConv$ClassicConvIO.(pl.betoncraft.betonquest.conversation.Conversation, java.lang.String)
[16:23:05 WARN]: at java.base/java.lang.Class.getConstructor0(Unknown Source)
[16:23:05 WARN]: at java.base/java.lang.Class.getConstructor(Unknown Source)
[16:23:05 WARN]: at pl.betoncraft.betonquest.conversation.Conversation$Starter.run(Conversation.java:485)
[16:23:05 WARN]: at org.bukkit.craftbukkit.v1_12_R1.scheduler.CraftTask.run(CraftTask.java:71)
[16:23:05 WARN]: at org.bukkit.craftbukkit.v1_12_R1.scheduler.CraftAsyncTask.run(CraftAsyncTask.java:52)
[16:23:05 WARN]: at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
[16:23:05 WARN]: at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
[16:23:05 WARN]: at java.base/java.lang.Thread.run(Unknown Source)
[16:23:05 ERROR]: [BetonQuest] Error when loading conversation IO

After changing it back to default_conversation_IO: chest converations work normally (with GUI)

BetonQuest\logs\error.log content:
[22.02.2018 16:23:05] ERROR: Error when loading conversation IO
[22.02.2018 16:26:43] ERROR: Conversation IO is not loaded, conversation will end for player Rafal

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.