Giter Site home page Giter Site logo

jsmod2-java-c / jsmod2-core Goto Github PK

View Code? Open in Web Editor NEW
9.0 3.0 2.0 4.91 MB

The Java SCP: Secret Laboratory server project depends on Smod2

Home Page: https://jsmod2.cn

License: GNU General Public License v3.0

Java 95.66% Scala 0.62% Batchfile 0.30% Shell 0.16% Python 3.26% ANTLR 0.01%
smod2 java scp scpsl

jsmod2-core's Introduction

JSMod2

avatar LICENSE

JSmod2 Docs Writer Wanted!!!!

        We need a person who writes a document. If you are interested, you can contact us by email.

Copyright: JSmod2 LICENSE

/*
JSmod2 is a java-based SCP: Secret Laboratory server initiated by jsmod2.cn.
It needs to rely on Smod2 and the ProxyHandler. JSmod2 is an open source
free software that is released under the GNU license. Please read
the GNU open source license before using the software. To understand
the appropriateness, if infringement, will be handled in accordance
with the law, @Copyright JSmod2 China,more can see <a href="http://jsmod2.cn">that<a>
 */

About Us

Hi there!

We are JSmod2 developing team. This project is pure, public....and in an sense, it's welfare. ;) Most of us are high school students, we don't have enough time to find and fix all of the bugs, please forget it and create an issue :P Feel free to point out any omissions, thank you! If you are willing to help this project, there are three ways that you can do:

  1. Send an email to: [email protected] (Advice, questions, anyway.)
  2. Create an issue!
  3. Join our Discord Server and......: Hey, tap here! :P

Thanks for your supporting!

What is JSmod2?

JSmod2 is a java extension server. It's based on Smod2 and ProxyHandler

The aim of JSmod2 is to make Java developers develop in Java easily.

Also, it provides APIs that most of them are the same as Smod2.

JSmod2 needs Smod2, and you need to install ProxyHandler correctly (Grab it into \sm_plugins). In the future, JSmod2 will support connecting multiple Smod2 servers.

How's the project now?

Currently JSmod2 is still developing, issues, prs, criticsim and suggestions are welcomed!

If you want to participate in the development of JSmod2, you can refer to JSmod2-design for further information.

How to get start it?

Before you do it, please note that:

  • We recommend you to set up on Windows 2008 - the latest / Ubuntu Server 18.04.2 LTS

  • If you want to install automatically, Python and Pip are required

> Auto-install JSmod2:

* Download: release

If there's no problem, please enter the following text in the terminal:

cd /path/to/jsmod2 & python3 -m pip install requirement.txt

And launch:

cd /path/to/jsmod2 & python3 -m jsmod2manager.py

Manual install JSmod2:

After finished installing JRE, you need to put ProxyHandler.dll into (Where your server is)\sm_plugins, then start LocalAdmin.exe / MultiAdmin.exe. If there's no problem, then launch JSmod2.jar: java -jar jsmod2.jar

Import the DevelopmentKit

Connect Repository

<repositories>
        <repository>
            <id>nexus</id>
            <name>Team Neux Repository</name><url>http://repo.noyark.net/nexus/content/groups/public/</url>
        </repository>
    </repositories>

Import Dependency

        <dependency>
            <groupId>cn.jsmod2</groupId>
            <artifactId>jsmod2-dk</artifactId>
            <version>1.0.3</version>
        </dependency>

How to develop a plugin?

you can study in bilibili

  1. New API can register the Listeners and Commands of JSmod2's;
package com.magiclu.plugin;

import cn.jsmod2.core.annotations.EnableRegister;
import cn.jsmod2.core.annotations.Main;
import cn.jsmod2.core.plugin.PluginBase;

@Main(name="exmaple")

@EnableRegister
public class Main extends PluginBase{
    public void onLoad(){
    }
    public void onEnable(){
    }
    public void onDisable(){
    }
}
  1. Create a Command:
package com.magiclu.plugin.command;

import cn.jsmod2.api.player.IPlayer;
import cn.jsmod2.core.CommandSender;
import cn.jsmod2.core.command.Command;
import cn.jsmod2.core.plugin.Plugin;

public class TestCommand extends Command{
    
   
    public TestCommand(Plugin plugin){
        super("test","CONSOLE", "hello,jsmod2",plugin);
    }
    //override the method
    public boolean execute(CommandSender commandSender, String[] args){
        //Processing when executing instructions
    }
}
  1. Create a Listener:
package com.magiclu.plugin.listener;

import cn.jsmod2.api.event.player.IPlayerJoinEvent;
import cn.jsmod2.core.annotations.EventManager;
import cn.jsmod2.core.event.Listener;


public class TestListener implements Listener{
    //EventManager has a listener priority, see the note
    @EventManager
    public void joinEvent(PlayerJoinEvent e){
        //Trigger corresponding event will run
    }
    
}

jsmod2-core's People

Contributors

3zeroed avatar dependabot[bot] avatar fafa-junhe avatar gunveda avatar kevinkvj avatar magiclu550 avatar yorokobimaster avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

jsmod2-core's Issues

Bugs will be fixed

以下以中文版:
1.Linux下,控制台的行分离的诡异问题
2.Windows下,不支持的彩色字符和乱码问题
3.其他问题如果被发现,请上传(尽量使用中英双语版)

The following is in English:
1.Under the Linux, the problem of the separation of the console line
2.Unsupported color characters and garbled problems under Windows
3. If other issues are found, please upload (try to use Chinese and English bilingual versions)

ui does not match the actual

Describe the bug
ui does not match the actual

To Reproduce
Steps to reproduce the behavior:

  1. Open the jsmod2

Expected behavior
to be expected:
_DPQRGW5YC XI@_S$GA 5(E

actual:
7(Z~N 6BTR%28FAXI(H (KU

and the border can be dragged
Desktop (please complete the following information):

  • OS: Linux
  • Version : qqgrouptestversion

描述错误
ui与实际不符

重现
重现行为的步骤:
1.打开jsmod2

预期行为
预期:
_DPQRGW5YC XI@_S$GA 5(E

实际:
7(Z~N 6BTR%28FAXI(H (KU

并且可以拖动边框
桌面(请填写以下信息):
  - 操作系统:Linux
  - 版本: qqgrouptestversion

JDR 001 About JSmod2Manager one-button start and ProxyHandler Plugin

This is JSmod2 Design Request No.001

What is called JSmod2DesignRequest is the request rule set up by the JSmod2 development team

to provide other developers and users to publish JSmod2 design proposals. Reasonable requests

will be recorded in the JSmod2DesignRequestCommons table.

About JSmod2Manager

  • Add a key to start the part
  • Click Start, start MultiAdmin/LocalAdmin and then start JSmod2
  • Click stop, then close JSmod2 first, then close MultiAdmin /LocalAdmin
  • Users do not need to care about this process, but directly managed by JSmod2Manager

About ProxyHandler Plugin

  • ProxyHandler will support plugin functionality and can customize the data manager

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.