Skip to content

Commit 1ab2057

Browse files
author
wuksow
committed
Import plugin
0 parents  commit 1ab2057

File tree

10 files changed

+145
-0
lines changed

10 files changed

+145
-0
lines changed

.idea/.gitignore

Lines changed: 3 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/compiler.xml

Lines changed: 13 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/discord.xml

Lines changed: 7 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/jarRepositories.xml

Lines changed: 25 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/misc.xml

Lines changed: 14 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pom.xml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<project xmlns="http://maven.apache.org/POM/4.0.0"
3+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
4+
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
5+
<modelVersion>4.0.0</modelVersion>
6+
7+
<groupId>org.example</groupId>
8+
<artifactId>ChatClear</artifactId>
9+
<version>1.0-SNAPSHOT</version>
10+
11+
<properties>
12+
<maven.compiler.source>17</maven.compiler.source>
13+
<maven.compiler.target>17</maven.compiler.target>
14+
</properties>
15+
16+
<repositories>
17+
<repository>
18+
<id>spigotmc-repo</id>
19+
<url>https://hub.spigotmc.org/nexus/content/repositories/snapshots/</url>
20+
</repository>
21+
</repositories>
22+
23+
<dependencies>
24+
<dependency>
25+
<groupId>org.spigotmc</groupId>
26+
<artifactId>spigot-api</artifactId>
27+
<version>1.8-R0.1-SNAPSHOT</version>
28+
<scope>provided</scope>
29+
</dependency>
30+
</dependencies>
31+
32+
</project>

src/main/java/rcode/chat/Main.java

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
package rcode.chat;
2+
3+
import org.bukkit.Bukkit;
4+
import org.bukkit.plugin.java.JavaPlugin;
5+
6+
import java.util.logging.Level;
7+
import java.util.logging.Logger;
8+
9+
public class Main extends JavaPlugin {
10+
11+
private final Logger wiad = Bukkit.getLogger();
12+
13+
@Override
14+
public void onEnable() {
15+
super.onEnable();
16+
wiad.log(Level.INFO, "Enable plugin for Chat!");
17+
wiad.log(Level.INFO, "RCode plugin!");
18+
}
19+
20+
@Override
21+
public void onDisable() {
22+
super.onDisable();
23+
wiad.log(Level.INFO, "Disable plugin for Chat!");
24+
wiad.log(Level.INFO, "RCode plugin!");
25+
}
26+
27+
28+
public static Main getInstance() {
29+
return Main.getPlugin(Main.class);
30+
}
31+
}
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
package rcode.chat.cmd;
2+
3+
import org.bukkit.command.Command;
4+
import org.bukkit.command.CommandExecutor;
5+
import org.bukkit.command.CommandSender;
6+
7+
public class ChatCMD implements CommandExecutor {
8+
@Override
9+
public boolean onCommand(CommandSender sender, Command cmd, String s, String[] strings) {
10+
boolean zwrot = true;
11+
return zwrot;
12+
}
13+
}

src/main/resources/config.yml

Whitespace-only changes.

src/main/resources/plugin.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
main: rcode.chat.Main
2+
author: RCODE
3+
name: RChat
4+
api-version: 1.13
5+
commands:
6+
chat:
7+
aliases: [messages]

0 commit comments

Comments
 (0)