Skip to content

Commit 439fdfb

Browse files
committed
Add default impl class
1 parent 2986058 commit 439fdfb

File tree

1 file changed

+43
-0
lines changed

1 file changed

+43
-0
lines changed
Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
/*
2+
* This file is part of ViaRewind - https://github.com/ViaVersion/ViaRewind
3+
* Copyright (C) 2018-2026 ViaVersion and contributors
4+
*
5+
* This program is free software: you can redistribute it and/or modify
6+
* it under the terms of the GNU General Public License as published by
7+
* the 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,
11+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
12+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13+
* GNU General Public License 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+
package com.viaversion.viarewind;
19+
20+
import com.viaversion.viarewind.api.ViaRewindPlatform;
21+
import com.viaversion.viaversion.api.Via;
22+
import java.io.File;
23+
import java.util.logging.Logger;
24+
25+
public class ViaRewindPlatformImpl implements ViaRewindPlatform {
26+
27+
private final Logger logger;
28+
29+
public ViaRewindPlatformImpl(final Logger logger) {
30+
this.logger = logger;
31+
init(new File(getDataFolder(), "viarewind.yml"));
32+
}
33+
34+
@Override
35+
public Logger getLogger() {
36+
return logger;
37+
}
38+
39+
@Override
40+
public File getDataFolder() {
41+
return Via.getPlatform().getDataFolder();
42+
}
43+
}

0 commit comments

Comments
 (0)