Skip to content

Commit 04e0030

Browse files
committed
commented out QuickChatType: unused
1 parent 6d56d7a commit 04e0030

File tree

1 file changed

+71
-71
lines changed

1 file changed

+71
-71
lines changed
Lines changed: 71 additions & 71 deletions
Original file line numberDiff line numberDiff line change
@@ -1,72 +1,72 @@
1-
/*
2-
* This file is a part of project QuickShop, the name is QuickChatType.java
3-
* Copyright (C) PotatoCraft Studio and contributors
4-
*
5-
* This program is free software: you can redistribute it and/or modify it
6-
* under the terms of the GNU General Public License as published by the
7-
* Free Software Foundation, either version 3 of the License, or
8-
* (at your option) any later version.
9-
*
10-
* This program is distributed in the hope that it will be useful, but WITHOUT
11-
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
12-
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
13-
* for more details.
14-
*
15-
* You should have received a copy of the GNU General Public License
16-
* along with this program. If not, see <http://www.gnu.org/licenses/>.
17-
*
18-
*/
19-
20-
package org.maxgamer.quickshop.chat;
21-
22-
import org.jetbrains.annotations.NotNull;
23-
import org.maxgamer.quickshop.QuickShop;
24-
import org.maxgamer.quickshop.api.chat.QuickChat;
25-
import org.maxgamer.quickshop.chat.platform.minedown.BungeeQuickChat;
26-
27-
public enum QuickChatType {
28-
/*
29-
* BUNGEECHAT = Use the chat lib that Spigot offered.
30-
* ADVENTURE = Use the chat lib Adventure, it can resolve player disconnected issue but have no message output bug.
31-
*/
32-
BUNGEECHAT(0);
33-
//ADVENTURE(1);
34-
35-
private final int id;
36-
37-
QuickChatType(int id) {
38-
this.id = id;
39-
}
40-
41-
public static @NotNull QuickChatType fromID(int id) {
42-
for (QuickChatType type : QuickChatType.values()) {
43-
if (type.id == id) {
44-
return type;
45-
}
46-
}
47-
return BUNGEECHAT;
48-
}
49-
50-
public static int toID(@NotNull QuickChatType type) {
51-
return type.id;
52-
}
53-
54-
public static QuickChat createById(int id) {
55-
// QuickChatType type = fromID(id);
56-
// if (type == QuickChatType.ADVENTURE) {
57-
// return new AdventureQuickChat();
1+
///*
2+
// * This file is a part of project QuickShop, the name is QuickChatType.java
3+
// * Copyright (C) PotatoCraft Studio and contributors
4+
// *
5+
// * This program is free software: you can redistribute it and/or modify it
6+
// * under the terms of the GNU General Public License as published by the
7+
// * Free Software Foundation, either version 3 of the License, or
8+
// * (at your option) any later version.
9+
// *
10+
// * This program is distributed in the hope that it will be useful, but WITHOUT
11+
// * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
12+
// * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
13+
// * for more details.
14+
// *
15+
// * You should have received a copy of the GNU General Public License
16+
// * along with this program. If not, see <http://www.gnu.org/licenses/>.
17+
// *
18+
// */
19+
//
20+
//package org.maxgamer.quickshop.chat;
21+
//
22+
//import org.jetbrains.annotations.NotNull;
23+
//import org.maxgamer.quickshop.QuickShop;
24+
//import org.maxgamer.quickshop.api.chat.QuickChat;
25+
//import org.maxgamer.quickshop.chat.platform.minedown.BungeeQuickChat;
26+
//
27+
//public enum QuickChatType {
28+
// /*
29+
// * BUNGEECHAT = Use the chat lib that Spigot offered.
30+
// * ADVENTURE = Use the chat lib Adventure, it can resolve player disconnected issue but have no message output bug.
31+
// */
32+
// BUNGEECHAT(0);
33+
// //ADVENTURE(1);
34+
//
35+
// private final int id;
36+
//
37+
// QuickChatType(int id) {
38+
// this.id = id;
39+
// }
40+
//
41+
// public static @NotNull QuickChatType fromID(int id) {
42+
// for (QuickChatType type : QuickChatType.values()) {
43+
// if (type.id == id) {
44+
// return type;
45+
// }
5846
// }
59-
return new BungeeQuickChat(QuickShop.getInstance());
60-
}
61-
62-
public static QuickChat createByType(QuickChatType type) {
63-
// if (type == QuickChatType.ADVENTURE) {
64-
// return new AdventureQuickChat();
65-
// }
66-
return new BungeeQuickChat(QuickShop.getInstance());
67-
}
68-
69-
public int toID() {
70-
return id;
71-
}
72-
}
47+
// return BUNGEECHAT;
48+
// }
49+
//
50+
// public static int toID(@NotNull QuickChatType type) {
51+
// return type.id;
52+
// }
53+
//
54+
// public static QuickChat createById(int id) {
55+
//// QuickChatType type = fromID(id);
56+
//// if (type == QuickChatType.ADVENTURE) {
57+
//// return new AdventureQuickChat();
58+
//// }
59+
// return new BungeeQuickChat(QuickShop.getInstance());
60+
// }
61+
//
62+
// public static QuickChat createByType(QuickChatType type) {
63+
//// if (type == QuickChatType.ADVENTURE) {
64+
//// return new AdventureQuickChat();
65+
//// }
66+
// return new BungeeQuickChat(QuickShop.getInstance());
67+
// }
68+
//
69+
// public int toID() {
70+
// return id;
71+
// }
72+
//}

0 commit comments

Comments
 (0)