Coder Social home page Coder Social logo

mc_stoneskin_welcomeplugin's Introduction

My Welcome Message plugin for bukkit/spigot Minecraft server

Feature

I wrote the plugin because I can't find a simple welcome message plugin that support line break.

  • Split the msg into multiple lines with any splitter

screenshot

  • Could display the welcome message, and Op could reload the config

    • /welcome to display the welcome message
    • /welcome reload to reload the welcome message, (need op)
  • support 1.16.1, 1.15.x and lower version.

  • support multiple message sections

  • support delay display message sections.


example of config.yml

config.yml could be find in \plugins\welcome_plugin\

#config.yml
welcome:
    message: '&5Welcome, &r&2%p&r&5 to the Minecraft server! \n Enjoy~~'
    messages:
        - '&3 section1'
        - '&6 section2\ content....'
    linebreak: '\\n'
    delay: 2

for message color and format check Minecraft Formatting code.

todo: will support multiple line saved in array.


Installation

Download the plugin jar file and put in the plugins folder, After the first run, you will see the \welcome_plugin\ folder in the plugins you could update the config.yml to change the welcome message.


Release

Other download source


Build the project

Install Maven

for how to use Maven please read Maven in 5 min: http://maven.apache.org/guides/getting-started/maven-in-five-minutes.html

Set Maven path

set PATH=%PATH%;C:\tools\apache-maven-3.6.3\bin

Download the spigot.jar and add to dependency

option 1. save to lib folder and add to pow.html dependency

 <dependency>
      <groupId>spigot</groupId>
      <artifactId>spigot</artifactId>
      <scope>system</scope>
      <version>1.0</version>
      <systemPath>${basedir}\lib\spigot-1.15.2.jar</systemPath>
 </dependency>

option 2. import to maven repository check import-jars

    <repositories>
      <!-- This adds the Spigot Maven repository to the build -->
      <repository>
          <id>spigot-repo</id>
          <url>https://hub.spigotmc.org/nexus/content/repositories/snapshots/</url>
      </repository>
    </repositories>
   <dependency>
      <groupId>org.spigotmc</groupId>
      <artifactId>spigot-api</artifactId>
      <version>1.15.2-R0.1-SNAPSHOT</version>
      <!-- <version>1.16.1-R0.1-SNAPSHOT</version> -->
      <scope>provided</scope>
   </dependency>

run command in the folder with pom.xml

mvn package

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.