Skip to content

Commit 2786d97

Browse files
author
magiclu550
committed
Merge remote-tracking branch 'origin/master'
2 parents 839fb14 + 784d928 commit 2786d97

1 file changed

Lines changed: 2 additions & 70 deletions

File tree

README.md

Lines changed: 2 additions & 70 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ down on the separatists’ ban on issuing anti-state peace speeches and prohibit
2020

2121
우리는 중화 인민 공화국의 주권을지지합니다 대만, 홍콩, 마카오는 중화 인민 공화국의 일부이며 홍콩의 독립과 대만 독립 요소의 폭동에 반대하며, 분리 주의자들의 반 국가 평화 발언 금지, 반 국가 평화 발언 금지, 지구 문제에 대한 프로젝트 금지, 지구 문제에 대한 분쟁을 단호히 단속하고 있습니다. 기여 과정에서 커밋 정보는 분리되어 있으며 분리를 촉구하는 단어는 발견되면 합법적 또는 도덕적으로 추방됩니다.
2222

23-
2423
> Copyright: JSmod2 LICENSE
2524
```java
2625
/*
@@ -72,6 +71,8 @@ you can refer to [JSmod2-design](https://github.com/jsmod2-java-c/jsmod2-design)
7271
Welcome to our [discord](https://discord.gg/Qjzvb2a)
7372

7473
> How to start?
74+
* Download: [release](https://github.com/jsmod2-java-c/JSmod2-Core/releases)
75+
7576
* We recommended you to set up in Windows Server 2008-2016 / Ubuntu Server 18.04.2 LTS
7677

7778
* [Environment](https://www.oracle.com/technetwork/java/javase/downloads/index.html)
@@ -146,72 +147,3 @@ public class TestListener implements Listener{
146147

147148
}
148149
```
149-
> Old Method
150-
151-
this method can also create a plugin:
152-
153-
1. First you need to create a plugin.yml
154-
155-
[@Deprecated]
156-
`now you can not create this file for the plugin,and use @Main instead`
157-
```yaml
158-
159-
name: pluginName
160-
main: Package.MainClass
161-
description: Description of the plugin.
162-
version: The version of the plugin.
163-
164-
```
165-
2. Create JSmod2 main class, and the main class you had been set in plugin.yml:
166-
```java
167-
package Package;
168-
/**
169-
* This is the main class
170-
*/
171-
public class MainClass extends PluginBase{
172-
173-
public void onLoad(){
174-
//The server is officially started before it can be registered.
175-
}
176-
177-
public void onEnable(){
178-
//The contents of the server startup, can be registered, initialized, etc.
179-
180-
}
181-
182-
public void onDisable(){
183-
//Running content when the server is shut down
184-
}
185-
}
186-
187-
```
188-
189-
190-
3.Register the Command and Listener:
191-
192-
[@Deprecated]
193-
`now you can not register the listener and command,use @EnableRegister instead`
194-
```java
195-
package Package;
196-
/**
197-
* This is the main class
198-
*/
199-
public class MainClass extends PluginBase{
200-
201-
public void onLoad(){
202-
//The server is officially started before it can be registered.
203-
}
204-
205-
public void onEnable(){
206-
//The contents of the server startup, can be registered, initialized, etc.
207-
this.getServer().getPluginManager().registerEvents(new TestListener(),this);
208-
this.getServer().getPluginManager().registerCommand(new TestCommand(this));
209-
}
210-
211-
public void onDisable(){
212-
//Running content when the server is shut down
213-
}
214-
}
215-
216-
```
217-

0 commit comments

Comments
 (0)