Coder Social home page Coder Social logo

happyuky7 / languagepluginv1-deprecated-no-recomendated Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 25 KB

A plugin to change the language of your minecraft server.

Home Page: https://happyrogelio7.github.io/

Java 100.00%
minecraft spigot spigot-plugin minecraft-plugin language-resources system-language minecraft-server spigotmc-plugin spigot-plugins spigot-server

languagepluginv1-deprecated-no-recomendated's Introduction

LanguagepluginV1

A plugin to change the language of your minecraft server.

Information:

Versions Minecraft: 1.8.X, 1.9.X, 1.10.X, 1.11.X, 1.12.X, 1.13.X, 1.14.X, 1.15.X, 1.16.X, 1.17.X, 1.18.X.

Plugin Version: 1.0.1

Base Version MC: 1.12.2

JDK: 11

Servers JARS: Spigot, Paper.

Features

  • Setlang Command
  • Language Command
  • Basic API
  • Implement Methods API

Upcoming features

  • Add new Languages support.
  • Maven API
  • Languages Menus

COMPILE

git clone https://github.com/HappyRogelio7/LanguagepluginV1.git

mvn install

mvn package

API

Using API:

Maven API: COMMING SOON...

Methods

LanguagesManager.sendMsgLangString(player, "path", "plugin name")`
LanguagesManager.sendMsgLangStringList(player, "path", "plugin name")
LanguagesManager.getlanguage(player)
LanguagesManager.setlanguage(player, "lang file name")

Implement Methods Example:

Languages Files Example:

# EN_us.yml
MSG: "Send Message: EN_us"
# ES_latam.yml
MSG: "Enviar mensaje: ES_latam"

Method Command:

Method String:

package com.github.happyrogelio7.languagepluginv1.commandsexamplegithub;

import com.github.happyrogelio7.languagepluginv1.LanguagepluginV1;
import com.github.happyrogelio7.languagepluginv1.managers.LanguagesManager;
import org.bukkit.Bukkit;
import org.bukkit.ChatColor;
import org.bukkit.command.Command;
import org.bukkit.command.CommandExecutor;
import org.bukkit.command.CommandSender;
import org.bukkit.entity.Player;

public class ExampleStringCMD implements CommandExecutor {

    private LanguagepluginV1 plugin;

    public ExampleStringCMD(LanguagepluginV1 plugin){
        this.plugin = plugin;
    }

    public boolean onCommand(CommandSender sender, Command command, String label, String[] args) {

        if (!sender instanceof Player){

            Bukkit.getConsoleSender().sendMessage(ChatColor.RED + "This command can only be executed by a player.");
            return false;

        }else{

            Player player = (Player)sender;
            player.sendMessage(LanguagesManager.sendMsgLangString(player, "MSG", "your plugin name"));

        }

        return true;

    }
}
Result in EN_us.yml: `Send Message: EN_us`
Result in ES_latam.yml: `Enviar mensaje: ES_latam`

LEAVE CREDITS.

TERMS AND CONDITIONS.

1.- DO NOT UPLOAD THIS PLUGIN AS YOURS TO ANY PLATFORM OR WEB PAGE.

2.- DO NOT SELL THE COMPLETE BECAUSE IT IS FREE TO USE.

3.- LEAVE CREDITS IN CASE OF USING IT IN ANY CONFIGURED SERVER.

© copyright HappyRogelio7 2017-2022 © RIGHTS RESERVED

languagepluginv1-deprecated-no-recomendated's People

Contributors

happyuky7 avatar

Watchers

 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.