Giter VIP home page Giter VIP logo

formcreator's Introduction

FormCreator (NEW)

A simple plugin for creating simple forms through config

Info

This is a simple plugin to create simple forms using config, if you want to create forms easly then this is the plugin for you.

The way you use it is, you open config (You can also edit the system messages in there) and under forms: you can create your forms, there is already an example form in there.

If you find any bugs report them here.

Example

  example:
  
    command:
      label: "openexample"
      description: "Opens the example ui"
      permission: "example.command.use"

    title: "&eHello world"
    content: "&aHello {PLAYER}! :) {LINE} &bOnline players&7: &l&3{ONLINE_PLAYERS}&8/&3{MAX_PLAYERS} {LINE}{LINE} This plugin is cool :)"

    buttons:

      "&eButton 1{LINE}&eClick me!!":

        image-type: 0
        image-path: "textures/ui/MashupIcon"

        commands:
          - label: "title {player} title Welcome!"
            sender: "console"
            
          - label: "say &bHello {player}!"
            sender: "player"


      "&cButton 2":
        commands:
          - label: "title {player} title Awesome!"
            sender: "console"

          - label: "say &bThis plugin is cool!"
            sender: "player" 

Wild-Cards

WildCard Description
{PLAYER} Opening player name
{LINE} Line break
{ONLINE_PLAYERS} Current online player count
{MAX_PLAYERS} Maximum online player count

API

This will open the form with the name $formname to the player $player

$this->getServer()->getPluginManager("FormCreator")->openForm($player, $formname);

If you wish to add any more wild cards (string replacements e.g. "{PLAYER}" will replace to the player name)

$this->getServer()->getPluginManager("FormCreator")->addWildCard("{FIND}", "{REPLACE}");

TODO

  • Custom forms
  • Advanced output cases
  • Code cleanup

Thanks

This plugin was fully hand coded by WolfDen133, so come to me for help, my discord is here.

All of the code is commented so feel free to look at the code.

formcreator's People

Contributors

poggit-bot avatar wolfden133 avatar

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.